TASK [Remove container hostkeys from known_hosts file on LXD host via IP Address] **************************************************************************************************************************
fatal: [ansible-ubuntu-12 -> localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/ssh-keygen -R 10.245.28.137 -f /home/ubuntu/.ssh/known_hosts", "msg": "link /home/ubuntu/.ssh/known_hosts to /home/ubuntu/.ssh/known_hosts.old: File exists", "rc": 255, "stderr": "link /home/ubuntu/.ssh/known_hosts to /home/ubuntu/.ssh/known_hosts.old: File exists\r\n", "stderr_lines": ["link /home/ubuntu/.ssh/known_hosts to /home/ubuntu/.ssh/known_hosts.old: File exists"], "stdout": "", "stdout_lines": []}
SUDO password:
PLAY [Login to all hosts (in inventory) in order to collect Ansible Facts] *********************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************************
ok: [ansible-centos-2]
ok: [ansible-centos-3]
ok: [ansible-centos-4]
ok: [ansible-centos-5]
ok: [ansible-centos-1]
ok: [ansible-centos-6]
ok: [ansible-centos-7]
ok: [ansible-centos-8]
ok: [ansible-ubuntu-10]
ok: [ansible-ubuntu-12]
ok: [ansible-ubuntu-9]
ok: [ansible-ubuntu-11]
ok: [ansible-ubuntu-13]
TASK [Create dynamic host groups based on their OS distribution] *******************************************************************************************************************************************
ok: [ansible-centos-1]
ok: [ansible-centos-2]
ok: [ansible-centos-3]
ok: [ansible-centos-4]
ok: [ansible-centos-5]
ok: [ansible-centos-6]
ok: [ansible-centos-7]
ok: [ansible-centos-8]
ok: [ansible-ubuntu-10]
ok: [ansible-ubuntu-12]
ok: [ansible-ubuntu-9]
ok: [ansible-ubuntu-11]
ok: [ansible-ubuntu-13]
PLAY [Prune SSH host key entries] **************************************************************************************************************************************************************************
TASK [Remove container hostkeys from known_hosts file on LXD host via IP Address] **************************************************************************************************************************
fatal: [ansible-ubuntu-12 -> localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/ssh-keygen -R 10.245.28.137 -f /home/ubuntu/.ssh/known_hosts", "msg": "link /home/ubuntu/.ssh/known_hosts to /home/ubuntu/.ssh/known_hosts.old: File exists", "rc": 255, "stderr": "link /home/ubuntu/.ssh/known_hosts to /home/ubuntu/.ssh/known_hosts.old: File exists\r\n", "stderr_lines": ["link /home/ubuntu/.ssh/known_hosts to /home/ubuntu/.ssh/known_hosts.old: File exists"], "stdout": "", "stdout_lines": []}
changed: [ansible-ubuntu-11 -> localhost]
changed: [ansible-ubuntu-9 -> localhost]
changed: [ansible-ubuntu-10 -> localhost]
changed: [ansible-ubuntu-13 -> localhost]
changed: [ansible-centos-1 -> localhost]
changed: [ansible-centos-2 -> localhost]
changed: [ansible-centos-3 -> localhost]
changed: [ansible-centos-4 -> localhost]
changed: [ansible-centos-5 -> localhost]
changed: [ansible-centos-6 -> localhost]
changed: [ansible-centos-7 -> localhost]
changed: [ansible-centos-8 -> localhost]
TASK [Remove container hostkeys from known_hosts file on LXD host via hostname] ****************************************************************************************************************************
ok: [ansible-ubuntu-10 -> localhost]
ok: [ansible-ubuntu-9 -> localhost]
ok: [ansible-ubuntu-11 -> localhost]
ok: [ansible-ubuntu-13 -> localhost]
ok: [ansible-centos-1 -> localhost]
ok: [ansible-centos-2 -> localhost]
ok: [ansible-centos-3 -> localhost]
ok: [ansible-centos-4 -> localhost]
ok: [ansible-centos-5 -> localhost]
ok: [ansible-centos-6 -> localhost]
ok: [ansible-centos-7 -> localhost]
ok: [ansible-centos-8 -> localhost]
PLAY [Remove our LXD containers] ***************************************************************************************************************************************************************************
TASK [Stop containers] *************************************************************************************************************************************************************************************
changed: [localhost] => (item=ansible-centos-1)
changed: [localhost] => (item=ansible-centos-2)
changed: [localhost] => (item=ansible-centos-3)
changed: [localhost] => (item=ansible-centos-4)
changed: [localhost] => (item=ansible-centos-5)
changed: [localhost] => (item=ansible-centos-6)
changed: [localhost] => (item=ansible-centos-7)
changed: [localhost] => (item=ansible-centos-8)
changed: [localhost] => (item=ansible-ubuntu-9)
changed: [localhost] => (item=ansible-ubuntu-10)
changed: [localhost] => (item=ansible-ubuntu-11)
changed: [localhost] => (item=ansible-ubuntu-12)
changed: [localhost] => (item=ansible-ubuntu-13)
TASK [Delete containers] ***********************************************************************************************************************************************************************************
changed: [localhost] => (item=ansible-centos-1)
changed: [localhost] => (item=ansible-centos-2)
changed: [localhost] => (item=ansible-centos-3)
changed: [localhost] => (item=ansible-centos-4)
changed: [localhost] => (item=ansible-centos-5)
changed: [localhost] => (item=ansible-centos-6)
changed: [localhost] => (item=ansible-centos-7)
changed: [localhost] => (item=ansible-centos-8)
changed: [localhost] => (item=ansible-ubuntu-9)
changed: [localhost] => (item=ansible-ubuntu-10)
changed: [localhost] => (item=ansible-ubuntu-11)
changed: [localhost] => (item=ansible-ubuntu-12)
changed: [localhost] => (item=ansible-ubuntu-13)
TASK [Remove container entries from hosts file on LXD host] ************************************************************************************************************************************************
changed: [localhost] => (item=ansible-ubuntu-10)
changed: [localhost] => (item=ansible-ubuntu-12)
changed: [localhost] => (item=ansible-ubuntu-9)
changed: [localhost] => (item=ansible-ubuntu-11)
changed: [localhost] => (item=ansible-ubuntu-13)
changed: [localhost] => (item=ansible-centos-1)
changed: [localhost] => (item=ansible-centos-2)
changed: [localhost] => (item=ansible-centos-3)
changed: [localhost] => (item=ansible-centos-4)
changed: [localhost] => (item=ansible-centos-5)
changed: [localhost] => (item=ansible-centos-6)
changed: [localhost] => (item=ansible-centos-7)
changed: [localhost] => (item=ansible-centos-8)
to retry, use: --limit @/home/ubuntu/Desktop/ansible-playbooks-public/lxd-testenv/lxd-remove.retry
PLAY RECAP *************************************************************************************************************************************************************************************************
ansible-centos-1 : ok=4 changed=1 unreachable=0 failed=0
ansible-centos-2 : ok=4 changed=1 unreachable=0 failed=0
ansible-centos-3 : ok=4 changed=1 unreachable=0 failed=0
ansible-centos-4 : ok=4 changed=1 unreachable=0 failed=0
ansible-centos-5 : ok=4 changed=1 unreachable=0 failed=0
ansible-centos-6 : ok=4 changed=1 unreachable=0 failed=0
ansible-centos-7 : ok=4 changed=1 unreachable=0 failed=0
ansible-centos-8 : ok=4 changed=1 unreachable=0 failed=0
ansible-ubuntu-10 : ok=4 changed=1 unreachable=0 failed=0
ansible-ubuntu-11 : ok=4 changed=1 unreachable=0 failed=0
ansible-ubuntu-12 : ok=2 changed=0 unreachable=0 failed=1
ansible-ubuntu-13 : ok=4 changed=1 unreachable=0 failed=0
ansible-ubuntu-9 : ok=4 changed=1 unreachable=0 failed=0
localhost : ok=3 changed=3 unreachable=0 failed=0