From 9fc68c155ef62e6f6403c579afc42d4b086796af Mon Sep 17 00:00:00 2001 From: root Date: Mon, 8 Jun 2020 15:41:05 +0000 Subject: [PATCH] SSH fix --- roles/lxc_swarm/tasks/lxc_nodes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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