Testei com a interface de rede enp1s0f1:
ansible-playbook provisioning.yml -i hosts
PLAY [wordpress] ***************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [172.17.177.40]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 172.17.177.40 port 22: No route to host\r\n", "unreachable": true}
to retry, use: --limit @/home/fgsl/wordpress_com_ansible/provisioning.retry
PLAY RECAP *********************************************************************
172.17.177.40 : ok=0 changed=0 unreachable=1 failed=0
Testei com a interface de rede docker0:
ansible-playbook provisioning.yml -i hosts
PLAY [wordpress] ***************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [172.17.177.40]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 172.17.177.40 port 22: No route to host\r\n", "unreachable": true}
to retry, use: --limit @/home/fgsl/wordpress_com_ansible/provisioning.retry
PLAY RECAP *********************************************************************
172.17.177.40 : ok=0 changed=0 unreachable=1 failed=0
É estranho que a mensagem seja que ele não consiga conectar via SSH uma vez que eu consigo executar o vagrant ssh sem problemas.