--- - name: mkdir ~/.ssh connection: local delegate_to: localhost raw: "lxc exec {{ inventory_hostname }} -- mkdir -p /root/.ssh" - name: get authorized_keys connection: local delegate_to: localhost raw: "lxc exec {{ inventory_hostname }} -- wget -O /root/.ssh/authorized_keys https://git.br0tkasten.de/br0tkasten/configs/raw/branch/master/dotfiles/authorized_keys" - name: fix file permissions connection: local delegate_to: localhost raw: "lxc exec {{ inventory_hostname }} -- chmod 0600 /root/.ssh/authorized_keys"