Hello group,
I would like to share this strange behavior.
PLAY [Update pi-hole servers] ************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************
ok: [zeropi.morelos.lan]
ok: [opizero.morelos.lan]
TASK [Update pi-hole] ********************************************************************************************************
changed: [zeropi.morelos.lan]
changed: [opizero.morelos.lan]
PLAY [Reconfigure DHCP to give both DNS servers] *****************************************************************************
TASK [Gathering Facts] *******************************************************************************************************
fatal: [zeropi.morelos.lan]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: root@zeropi.morelos.lan: Permission denied (publickey,password).”, “unreachable”: true}
to retry, use: --limit @/etc/ansible/playbooks/pi-hole_update.retry
PLAY RECAP *******************************************************************************************************************
opizero.morelos.lan : ok=2 changed=1 unreachable=0 failed=0
zeropi.morelos.lan : ok=2 changed=1 unreachable=1 failed=0
This is the Playbook
root@monitor ~# cat /etc/ansible/playbooks/pi-hole_update.yml