diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 8e4c796..c39051a 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -57,6 +57,7 @@ -onboot {{ container_onboot }} \ -protection {{ container_protection }} \ -unprivileged {{ container_unprivileged }} \ + -timezone: "{{ localization_timezone }}" \ -tags "{{ container_tags | join(',') }}" \ -features {{ container_features }} args: @@ -70,24 +71,6 @@ register: start_result changed_when: "'started' in start_result.stdout or start_result.rc == 0" - # - name: Wait for the container to get an IP address - # ansible.builtin.shell: "pct exec {{ container_id }} -- hostname -I" - # register: container_ip - # until: container_ip.stdout != "" - # retries: 10 - # delay: 5 - - # - name: Get container IP - # ansible.builtin.shell: "pct exec {{ container_id }} -- hostname -I | awk '{print $1}'" - # register: lxc_ip - # changed_when: false - - # - name: Add container to in-memory inventory - # ansible.builtin.add_host: - # name: "{{ container_hostname }}" - # ansible_host: "{{ lxc_ip.stdout }}" - # ansible_user: root - - name: Provision dc1 LXC hosts: dc1 gather_facts: false