chore 📦: Update setupacdc.yml with new LXC provision and package management tasks

Updated the LXC provision task to include SSH authorized keys and updated package management to install useful packages like nano, tzdata, and openssh-server. This change improves the overall setup process for the DC1 LXC.
This commit is contained in:
2025-11-02 09:53:07 +01:00
parent deb7676cce
commit 4537dcd27a

View File

@@ -78,7 +78,24 @@
# ansible_host: "{{ lxc_ip.stdout }}"
# ansible_user: root
- name: Provision inside {{ addc_hostname }} LXC
- name: Provision dc1 LXC
hosts: dc1
gather_facts: false
become: true
tasks:
- 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
- openssh-server
state: present