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 }}