diff options
Diffstat (limited to 'playbooks')
| -rw-r--r-- | playbooks/lxc.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/playbooks/lxc.yml b/playbooks/lxc.yml index 3fb1b18..666cfb3 100644 --- a/playbooks/lxc.yml +++ b/playbooks/lxc.yml @@ -55,18 +55,18 @@ shell: "lxc-info -iH debian-lxc" register: ip_debian - - name: ssh-keyscan ip debian - remote_user: "jerome" - become: no - local_action: shell ssh-keyscan -H {{ip_debian.stdout}} >> ~/.ssh/known_hosts - - - name: ssh-keyscan ip rocky + - name: inventaire remote_user: "jerome" become: no - local_action: shell ssh-keyscan -H {{ip_rocky.stdout}} >> ~/.ssh/known_hosts + copy: + content: "[containers]\n{{ip_rocky.stdout}}\n{{ip_debian.stdout}}" + dest: "hosts" + delegate_to: localhost - - name: inventaire + - name: ssh-keyscan remote_user: "jerome" become: no - local_action: copy content="[containers]\n{{ip_rocky.stdout}}\n{{ip_debian.stdout}}" dest="hosts" + shell: + cmd: ssh-keyscan -H -f hosts >> ~/.ssh/known_hosts + delegate_to: localhost |
