*Inventory:*
[R2]
10.10.10.74
[all:vars]
ansible_user= administrator
ansible_password= password
ansible_port = 5986
ansible_connection = winrm
ansible_winrm_transport = basic
ansible_winrm_server_cert_validation = ignore
*Ansible Information from VM Ubuntu*
ansible 2.7.10
config file= /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules',
u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
*Ansible Information from Cloud Fedora*
ansible 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules',
u'/usr/share/ansible/plugins/modules']
ansible python module location =
/usr/lib/python2.7/site-packages/ansible-2.9.0.dev0-py2.7.egg/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Apr 9 2019, 14:30:50) [GCC 4.8.5
20150623 (Red Hat 4.8.5-36)]
*Ansible win_ping command in VM Ubuntu*
root@cteng-VirtualBox:~# ansible 10.10.10.74 -. win_ping
10.10.10.74 | SUCCESS => {
"changed": false,
"ping": "pong"
}
*Ansible win_ping command in Cloud Fedora*
[root@ansible-tm ~]# ansible 10.10.10.74 -m win_ping -vvv
ansible 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules',
u'/usr/share/ansible/plugins/modules']
ansible python module location =
/usr/lib/python2.7/site-packages/ansible-2.9.0.dev0-py2.7.egg/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Apr 9 2019, 14:30:50) [GCC 4.8.5
20150623 (Red Hat 4.8.5-36)]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass it's
verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass it's
verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass it's
verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
META: ran handlers
Using module file
/usr/lib/python2.7/site-packages/ansible-2.9.0.dev0-py2.7.egg/ansible/modules/windows/win_ping.ps1
Pipelining is enabled.
<10.10.10.74> ESTABLISH WINRM CONNECTION FOR USER: administrator on PORT
5986 TO 10.56.2.74
10.10.10.74 | UNREACHABLE! => {
"changed": false,
"msg": "ssl: HTTPSConnectionPool(host='10.56.2.74', port=5986): Max
retries exceeded with url: /wsman (Caused by ProxyError('Cannot connect to
proxy.', error('Tunnel connection failed: 504 Gateway Timeout',)))",
"unreachable": true
}
*But when inventory for Fedora was changed to*
Inventory:
[R2]
10.10.10.74
[all:vars]
ansible_user= administrator
ansible_password= password
ansible_connection = local
*Output for normal ping is:*
ansible 10.10.10.74 -m ping
10.10.10.74 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"ping": "pong"
}
*Note:*
*Cloud Fedora:*
python version 2.7
pywinrm 0.3.0
Can anyone give insights on what could possible mistake in my Cloud Fedora
setup of ansible where win_* modules are failing and cannot connect to
windows hosts?
Thank you very much for the help.
--
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/6c8cd31c-7b29-45d4-8315-7e0acde9ba67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.