diff --git a/roles/lxc_swarm/tasks/lxc_nodes.yml b/roles/lxc_swarm/tasks/lxc_nodes.yml index 74e1f82..c730d0b 100644 --- a/roles/lxc_swarm/tasks/lxc_nodes.yml +++ b/roles/lxc_swarm/tasks/lxc_nodes.yml @@ -9,7 +9,7 @@ template_options: --release stretch -a amd64 container_command: | if [ ! -d ~/.ssh ]; then - mkdir ~/.ssh + mkdir /root/.ssh echo "{{ lookup('file', my_ssh_key) }}" | tee -a /root/.ssh/authorized_keys systemctl restart sshd fi