--- - name: install basics connection: local delegate_to: localhost raw: "lxc exec {{ inventory_hostname }} -- /usr/sbin/pacman -Syu --noconfirm python3 openssh wget" - name: setup ssh include: ssh.yml - name: enable sshd connection: local delegate_to: localhost raw: "lxc exec {{ inventory_hostname }} -- systemctl enable sshd" - name: start dropbear connection: local delegate_to: localhost raw: "lxc exec {{ inventory_hostname }} -- systemctl restart sshd" - name: install software pacman: name={{ archlinux_software }} state=present update_cache=yes