Hi folks, I have a WEIRD problem.
After running cygwin ssh-host-config on my PC, which starts sshd and rsync
services, suddenly I can no longer run ansible.
I get this error:
root@Raspi_Ctrl:/ansible/playbook/nuc# ansible -i /ansible/hosts nuc -m
win_ping
* [WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
last): File*
*"/usr/local/lib/python2.7/dist-packages/ansible/plugins/connection/winrm.py",
line 276, in _winrm_exec*
*self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
eof=is_last) File*
*"/usr/local/lib/python2.7/dist-packages/ansible/plugins/connection/winrm.py",
line 256, in _winrm_send_input*
*protocol.send_message(xmltodict.unparse(rq)) File
"/usr/local/lib/python2.7/dist-*
*packages/winrm/protocol.py", line 207, in send_message return
self.transport.send_message(message) File*
*"/usr/local/lib/python2.7/dist-packages/winrm/transport.py", line 202, in
send_message raise*
*WinRMTransportError('http', error_message) WinRMTransportError: (u'http',
u'Bad HTTP response returned from*
*server. Code 500')*
100.126.255.201 | FAILED! => {
"msg": "winrm send_input failed"
}
root@Raspi_Ctrl:/ansible/playbook/nuc# ansible -i /ansible/hosts nuc -m
win_ping
*100.126.255.201 | UNREACHABLE! => {*
* "changed": false, *
* "msg": "basic: HTTPSConnectionPool(host='100.126.255.201', port=5986):
Max retries exceeded with url: /wsman (Caused by
ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at
0x749335b0>, 'Connection to 100.126.255.201 timed out. (connect
timeout=30)'))", *
* "unreachable": true*
*}*
*When I run system restore to before this ssd-host-config, I can reach it
again. *
*rsync uses port 873, sshd uses 22, and I believe ansible uses 5986 so
there should be no conflict. *
*Has anyone else had this issue?*
*By the way, this is the script that does the config. I do have this set to
become: so i dont think it's a privelege thing.*
#!/bin/bash
#::Configure sshd service
if ! ssh-host-config --yes --pwd "foo"; then
echo "ERROR: Failed to configure sshd"
exit 1
fi
#echo db_home: /cygdrive/c/home/YRunner > C:\cygwin\etc\nsswitch.conf ||
exit /b 1
if ! net start sshd; then
echo "ERROR: Failed to start sshd service."
exit 1
fi
#configure the rsyncd service
cat <<EOF > /etc/rsyncd.conf
use chroot = yes
[yrunner_rsyncer]
#path = /cygdrive/c/home/YRunner
comment = YRunner Rsyncer
auth users = YRunner
secrets file = /etc/rsyncd.secrets
write only = false
read only = false
list = true
strict modes = false
hosts allow = *
EOF
/usr/bin/cygrunsrv.exe --install "rsyncd" --path /usr/bin/rsync --args
"--daemon --no-detach" -f "Rsync daemon service"
if [[ "$?" -ne 0 ]]; then
echo "ERROR: Failed to install rsyncd service"
exit 1
fi
net start rsyncd
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/3902d288-fb78-4635-a734-ea40319ff606%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.