chore 📦: Update setupacdc.yml with new container configuration and timezone settings

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.
This commit is contained in:
2025-11-02 11:04:30 +01:00
parent 52b4abee8c
commit af9a1417d4

View File

@@ -57,7 +57,6 @@
-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:
@@ -71,6 +70,7 @@
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: Provision dc1 LXC - name: Provision dc1 LXC
hosts: dc1 hosts: dc1
gather_facts: false gather_facts: false
@@ -78,17 +78,21 @@
tasks: tasks:
- name: Ensure SSH authorized keys are present # - name: Ensure SSH authorized keys are present
ansible.posix.authorized_key: # ansible.posix.authorized_key:
user: root # user: root
key: "{{ item }}" # key: "{{ item }}"
state: present # state: present
loop: "{{ ssh_public_keys }}" # loop: "{{ ssh_public_keys }}"
- name: Update and install useful packages - name: Update and install useful packages
ansible.builtin.package: ansible.builtin.package:
name: name:
- nano - nano
# - tzdata - tzdata
# - openssh-server # - openssh-server
state: present state: present
- name: Set timezone to {{ localization_timezone }}
community.general.timezone:
name: {{ localization_timezone }}