1
resposta

comando : ansible -vvvv wordpress -u vagrant --private-key .vagrant/machines/wordpress/virtualbox/private_key -i hosts -m shell -a 'echo Hello, World' //// esse retorno

Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
<172.17.177.40> ESTABLISH SSH CONNECTION FOR USER: vagrant
<172.17.177.40> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=".vagrant/machines/wordpress/virtualbox/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/renatocouto/.ansible/cp/ansible-ssh-%h-%p-%r 172.17.177.40 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1560360308.44-173004587035785 `" && echo ansible-tmp-1560360308.44-173004587035785="` echo ~/.ansible/tmp/ansible-tmp-1560360308.44-173004587035785 `" ) && sleep 0'"'"''
172.17.177.40 | UNREACHABLE! => {
    "changed": false, 
    "msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1 Debian-10+deb9u4, OpenSSL 1.0.2q  20 Nov 2018\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket \"/home/renatocouto/.ansible/cp/ansible-ssh-172.17.177.40-22-vagrant\" does not exist\r\ndebug2: resolving \"172.17.177.40\" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to 172.17.177.40 [172.17.177.40] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: connect to address 172.17.177.40 port 22: Connection timed out\r\nssh: connect to host 172.17.177.40 port 22: Connection timed out\r\n", 
    "unreachable": true
1 resposta

Oi, Renato, tudo bem?

Você poderia compartilhar seu arquivo de hosts e o Vagrantfile. E quais as versões do virtualbox, vagrant,a nsible você utilizou?

E vê se esse suporte te ajuda: https://github.com/ansible/ansible/issues/41243