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