chore 📦: Update timezone in setupacdc.yml

Updated the timezone parameter in the setupacdc.yml file to include localization_timezone, allowing for more flexible container configuration. This change enables the use of a custom timezone for containers, improving overall flexibility and customization options.
This commit is contained in:
2025-11-02 10:47:57 +01:00
parent 2eedffd23c
commit 13d07f31b6

View File

@@ -57,6 +57,7 @@
-onboot {{ container_onboot }} \ -onboot {{ container_onboot }} \
-protection {{ container_protection }} \ -protection {{ container_protection }} \
-unprivileged {{ container_unprivileged }} \ -unprivileged {{ container_unprivileged }} \
-timezone: "{{ localization_timezone }}" \
-tags "{{ container_tags | join(',') }}" \ -tags "{{ container_tags | join(',') }}" \
-features {{ container_features }} -features {{ container_features }}
args: args:
@@ -70,24 +71,6 @@
register: start_result register: start_result
changed_when: "'started' in start_result.stdout or start_result.rc == 0" 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 - name: Provision dc1 LXC
hosts: dc1 hosts: dc1
gather_facts: false gather_facts: false