From af9a1417d48eaa2986a5f0f9f609342dd9f4fcdd Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 2 Nov 2025 11:04:30 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Update=20setupacdc.yml?= =?UTF-8?q?=20with=20new=20container=20configuration=20and=20timezone=20se?= =?UTF-8?q?ttings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the setupacdc.yml file to include a new provision for dc1 LXC, added a task to set the timezone using community.general.timezone, and updated package installation. This change enables more flexible container configurations and timezone management. --- tasks/setupacdc.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index aa7642c..24cc0a1 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -57,7 +57,6 @@ -onboot {{ container_onboot }} \ -protection {{ container_protection }} \ -unprivileged {{ container_unprivileged }} \ - -timezone: "{{ localization_timezone }}" \ -tags "{{ container_tags | join(',') }}" \ -features {{ container_features }} args: @@ -71,6 +70,7 @@ register: start_result changed_when: "'started' in start_result.stdout or start_result.rc == 0" + - name: Provision dc1 LXC hosts: dc1 gather_facts: false @@ -78,17 +78,21 @@ tasks: - - name: Ensure SSH authorized keys are present - ansible.posix.authorized_key: - user: root - key: "{{ item }}" - state: present - loop: "{{ ssh_public_keys }}" + # - 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 + - tzdata # - openssh-server state: present + + - name: Set timezone to {{ localization_timezone }} + community.general.timezone: + name: {{ localization_timezone }}