SSH connection issue

I’m running a playbook where tasks are failing with error message → “SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh”, “unreachable”: true
The weird thing is that I have around 11 tasks in the play and I’d get the error on the 1st, sometimes on the 9th or 11th task while the other tasks succeed.

I’m running the playbook against a server in AWS EC2. I’m specifying my PEM file in ansible_ssh_private_key_file from the inventory. I can also ansible ping the server. Any advise would be appreciated. Thanks.

Executed:

ansible-playbook -vvv -i inventory --limit 172.28.4.35 log-forwarder-aggregator-playbook.yml

Here’s a snippet of the logs:

{ provisioning } » ansible-playbook -vvv -i inventory --limit 172.28.4.35 log-forwarder-aggregator-playbook.yml
Using /home/abernardino/.ansible.cfg as config file

PLAYBOOK: log-forwarder-aggregator-playbook.yml ********************************
1 plays in log-forwarder-aggregator-playbook.yml

PLAY [172.28.4.35] *************************************************************

TASK [setup] *******************************************************************
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp 172.28.4.35 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1471641313.0-107908747465979” && echo ansible-tmp-1471641313.0-107908747465979=“echo $HOME/.ansible/tmp/ansible-tmp-1471641313.0-107908747465979” ) && sleep 0’“'”‘’
<172.28.4.35> PUT /tmp/tmpo_6Ley TO /home/centos/.ansible/tmp/ansible-tmp-1471641313.0-107908747465979/setup
<172.28.4.35> SSH: EXEC sftp -b - -C -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp ‘[172.28.4.35]’
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp -tt 172.28.4.35 ‘/bin/sh -c ‘"’“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-xafywjotlomjhgfcgyibqprwhyzmezro; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/centos/.ansible/tmp/ansible-tmp-1471641313.0-107908747465979/setup; rm -rf “/home/centos/.ansible/tmp/ansible-tmp-1471641313.0-107908747465979/” > /dev/null 2>&1’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’
ok: [172.28.4.35]

TASK [td-agent : Include OS-specific variables.] *******************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/main.yml:3
ok: [172.28.4.35] => {“ansible_facts”: {}, “changed”: false, “invocation”: {“module_args”: {“_raw_params”: “RedHat.yml”}, “module_name”: “include_vars”}}

TASK [td-agent : Install the libselinux-python package] ************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/setup-RedHat.yml:2
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp 172.28.4.35 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1471641315.47-171746927920961” && echo ansible-tmp-1471641315.47-171746927920961=“echo $HOME/.ansible/tmp/ansible-tmp-1471641315.47-171746927920961” ) && sleep 0’“'”‘’
<172.28.4.35> PUT /tmp/tmpghFnQu TO /home/centos/.ansible/tmp/ansible-tmp-1471641315.47-171746927920961/yum
<172.28.4.35> SSH: EXEC sftp -b - -C -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp ‘[172.28.4.35]’
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp -tt 172.28.4.35 ‘/bin/sh -c ‘"’“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-nzyzfhuakjoumyuzfxrvkxqhkdzwqrfw; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/centos/.ansible/tmp/ansible-tmp-1471641315.47-171746927920961/yum; rm -rf “/home/centos/.ansible/tmp/ansible-tmp-1471641315.47-171746927920961/” > /dev/null 2>&1’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’
ok: [172.28.4.35] => {“changed”: false, “invocation”: {“module_args”: {“conf_file”: null, “disable_gpg_check”: false, “disablerepo”: null, “enablerepo”: null, “exclude”: null, “install_repoquery”: true, “list”: null, “name”: [“libselinux-python”], “state”: “installed”, “update_cache”: false, “validate_certs”: true}, “module_name”: “yum”}, “msg”: “”, “rc”: 0, “results”: [“libselinux-python-2.2.2-6.el7.x86_64 providing libselinux-python is already installed”]}

TASK [td-agent : Add TreasureData repository] **********************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/setup-RedHat.yml:5
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp 172.28.4.35 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1471641317.69-246654487671675” && echo ansible-tmp-1471641317.69-246654487671675=“echo $HOME/.ansible/tmp/ansible-tmp-1471641317.69-246654487671675” ) && sleep 0’“'”‘’
<172.28.4.35> PUT /tmp/tmp7biiEx TO /home/centos/.ansible/tmp/ansible-tmp-1471641317.69-246654487671675/stat
<172.28.4.35> SSH: EXEC sftp -b - -C -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp ‘[172.28.4.35]’
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp -tt 172.28.4.35 ‘/bin/sh -c ‘"’“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-onrdwixccwqjkiyjhafeiumwqfmanfll; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/centos/.ansible/tmp/ansible-tmp-1471641317.69-246654487671675/stat’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’
<172.28.4.35> PUT /tmp/tmpg_TJMb TO /home/centos/.ansible/tmp/ansible-tmp-1471641317.69-246654487671675/file
<172.28.4.35> SSH: EXEC sftp -b - -C -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp ‘[172.28.4.35]’
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp -tt 172.28.4.35 ‘/bin/sh -c ‘"’“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-sxcdldybsfbljwsjqmcnaqhvtgxrutqq; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/centos/.ansible/tmp/ansible-tmp-1471641317.69-246654487671675/file’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp 172.28.4.35 ‘/bin/sh -c ‘"’“‘rm -f -r /home/centos/.ansible/tmp/ansible-tmp-1471641317.69-246654487671675/ > /dev/null 2>&1 && sleep 0’”’"‘’
ok: [172.28.4.35] => {“changed”: false, “diff”: {“after”: {“path”: “/etc/yum.repos.d/td.repo”}, “before”: {“path”: “/etc/yum.repos.d/td.repo”}}, “gid”: 0, “group”: “root”, “invocation”: {“module_args”: {“backup”: null, “content”: null, “delimiter”: null, “dest”: “/etc/yum.repos.d/td.repo”, “diff_peek”: null, “directory_mode”: null, “follow”: true, “force”: false, “group”: “root”, “mode”: 420, “original_basename”: “treasuredata.repo.j2”, “owner”: “root”, “path”: “/etc/yum.repos.d/td.repo”, “recurse”: false, “regexp”: null, “remote_src”: null, “selevel”: null, “serole”: null, “setype”: null, “seuser”: null, “src”: null, “state”: null, “validate”: null}}, “mode”: “0644”, “owner”: “root”, “path”: “/etc/yum.repos.d/td.repo”, “secontext”: “system_u:object_r:system_conf_t:s0”, “size”: 183, “state”: “file”, “uid”: 0}

TASK [td-agent : Install td-agent package] *************************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/setup-RedHat.yml:13
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp 172.28.4.35 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1471641321.66-274486370804699” && echo ansible-tmp-1471641321.66-274486370804699=“echo $HOME/.ansible/tmp/ansible-tmp-1471641321.66-274486370804699” ) && sleep 0’“'”‘’
<172.28.4.35> PUT /tmp/tmp9TrcMo TO /home/centos/.ansible/tmp/ansible-tmp-1471641321.66-274486370804699/yum
<172.28.4.35> SSH: EXEC sftp -b - -C -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp ‘[172.28.4.35]’
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp -tt 172.28.4.35 ‘/bin/sh -c ‘"’“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-zdyspwqvlbavsllghoivkzpiyprydirk; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/centos/.ansible/tmp/ansible-tmp-1471641321.66-274486370804699/yum; rm -rf “/home/centos/.ansible/tmp/ansible-tmp-1471641321.66-274486370804699/” > /dev/null 2>&1’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’
ok: [172.28.4.35] => {“changed”: false, “invocation”: {“module_args”: {“conf_file”: null, “disable_gpg_check”: false, “disablerepo”: null, “enablerepo”: “treasuredata”, “exclude”: null, “install_repoquery”: true, “list”: null, “name”: [“td-agent-2*”], “state”: “installed”, “update_cache”: false, “validate_certs”: true}, “module_name”: “yum”}, “msg”: “”, “rc”: 0, “results”: [“td-agent-2.3.2-0.el7.x86_64 providing td-agent-2* is already installed”]}

TASK [td-agent : Install apt key for TreasureData repository] ******************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/setup-Debian.yml:2
skipping: [172.28.4.35] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}

TASK [td-agent : Add TreasureData repository] **********************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/setup-Debian.yml:6
skipping: [172.28.4.35] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}

TASK [td-agent : Install td-agent package] *************************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/setup-Debian.yml:11
skipping: [172.28.4.35] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}

TASK [td-agent : Check version of td-agent-gem] ********************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/rubygems-2.4.8-patch.yml:4
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp 172.28.4.35 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1471641324.86-61364125547649” && echo ansible-tmp-1471641324.86-61364125547649=“echo $HOME/.ansible/tmp/ansible-tmp-1471641324.86-61364125547649” ) && sleep 0’“'”‘’
<172.28.4.35> PUT /tmp/tmplSAwUJ TO /home/centos/.ansible/tmp/ansible-tmp-1471641324.86-61364125547649/command
<172.28.4.35> SSH: EXEC sftp -b - -C -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp ‘[172.28.4.35]’
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp -tt 172.28.4.35 ‘/bin/sh -c ‘"’“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-fbpfaidbhczmcnfyhhtknmgzwofvyhjs; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/centos/.ansible/tmp/ansible-tmp-1471641324.86-61364125547649/command; rm -rf “/home/centos/.ansible/tmp/ansible-tmp-1471641324.86-61364125547649/” > /dev/null 2>&1’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’
ok: [172.28.4.35] => {“changed”: false, “cmd”: [“/usr/sbin/td-agent-gem”, “–version”], “delta”: “0:00:00.119980”, “end”: “2016-08-19 21:15:26.638234”, “invocation”: {“module_args”: {“_raw_params”: “/usr/sbin/td-agent-gem --version”, “_uses_shell”: false, “chdir”: null, “creates”: null, “executable”: null, “removes”: null, “warn”: true}, “module_name”: “command”}, “rc”: 0, “start”: “2016-08-19 21:15:26.518254”, “stderr”: “”, “stdout”: “2.4.8”, “stdout_lines”: [“2.4.8”], “warnings”: }

TASK [td-agent : Update rubygems version of td-agent from 2.2.1 to 2.4.8] ******
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/rubygems-2.4.8-patch.yml:9
skipping: [172.28.4.35] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}

TASK [td-agent : Install td-agent plugins] *************************************
task path: /cygdrive/d/P4/logging/dev/provisioning/roles/td-agent/tasks/main.yml:16
<172.28.4.35> ESTABLISH SSH CONNECTION FOR USER: centos
<172.28.4.35> SSH: EXEC ssh -C -q -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp 172.28.4.35 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1471641327.08-147095300347298” && echo ansible-tmp-1471641327.08-147095300347298=“echo $HOME/.ansible/tmp/ansible-tmp-1471641327.08-147095300347298” ) && sleep 0’“'”‘’
<172.28.4.35> PUT /tmp/tmpOpgom9 TO /home/centos/.ansible/tmp/ansible-tmp-1471641327.08-147095300347298/gem
<172.28.4.35> SSH: EXEC sftp -b - -C -o ControlPersist=60s -q -o ‘IdentityFile=“D:/DOCUMENTS/CLOUD/aaron-engg-keypair.pem”’ -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=centos -o ConnectTimeout=15 -o ControlPath=/tmp ‘[172.28.4.35]’
failed: [172.28.4.35] (item={u’version’: u’1.6.0’, u’name’: u’fluent-plugin-elasticsearch’}) => {“item”: {“name”: “fluent-plugin-elasticsearch”, “version”: “1.6.0”}, “msg”: “SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh”, “unreachable”: true}
fatal: [172.28.4.35]: UNREACHABLE! => {“changed”: false, “msg”: “All items completed”, “results”: [{“_ansible_item_result”: true, “item”: {“name”: “fluent-plugin-elasticsearch”, “version”: “1.6.0”}, “msg”: “SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh”, “unreachable”: true}]}
[WARNING]: Could not create retry file ‘log-forwarder-aggregator-playbook.retry’. [Errno 2] No such file or directory: ‘’

PLAY RECAP *********************************************************************
172.28.4.35 : ok=6 changed=0 unreachable=1 failed=0

This is running under Cygwin by the look of it, that's not supported.

Can you install a small VM to run Ansible from?

Thanks for the feedback. I tried from my CentOS vagrant box and it worked. Provisioning using Cygwin does work though when I am just using Vagrant on Cygwin to create and configure a VM locally.

FYI, I am seeing that on AWS as well. Very intermittent but happens every 50 deployments or so for us.
In our case it’s all Debian running against other Debian machines all within AWS.