Browse Source

SSH fix

dev
root 5 years ago
parent
commit
9fc68c155e
  1. 2
      roles/lxc_swarm/tasks/lxc_nodes.yml

2
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

Loading…
Cancel
Save