From 4537dcd27aac86439ae0c83212ddde6df0ece466 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 2 Nov 2025 09:53:07 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Update=20setupacdc.yml?= =?UTF-8?q?=20with=20new=20LXC=20provision=20and=20package=20management=20?= =?UTF-8?q?tasks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the LXC provision task to include SSH authorized keys and updated package management to install useful packages like nano, tzdata, and openssh-server. This change improves the overall setup process for the DC1 LXC. --- tasks/setupacdc.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 42e94bc..698fb19 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -78,7 +78,24 @@ # ansible_host: "{{ lxc_ip.stdout }}" # ansible_user: root -- name: Provision inside {{ addc_hostname }} LXC +- name: Provision dc1 LXC hosts: dc1 gather_facts: false - become: true \ No newline at end of file + become: true + + tasks: + + - name: Ensure SSH authorized keys are present + ansible.posix.authorized_key: + user: root + key: "{{ item }}" + state: present + loop: "{{ ssh_public_keys }}" + + - name: Update and install useful packages + ansible.builtin.package: + name: + - nano + - tzdata + - openssh-server + state: present