diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 42e94bc..698fb19 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -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 \ No newline at end of file + 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