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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user