# Windows integration

**URL:** <https://forum.ansible.com/t/windows-integration/18968>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 7, 2015, 12:31pm UTC](https://forum.ansible.com/t/windows-integration/18968 "2015-08-07T12:31:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephane\_jean](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@stephane\_jean](https://forum.ansible.com/u/stephane_jean)\
**Post date:** [August 7, 2015, 12:31pm UTC](https://forum.ansible.com/t/windows-integration/18968/1 "2015-08-07T12:31:36Z")

</div>

In my company i have a set of CentOS, MAC and Windows machines, i want to use Ansible mainly to deploy packages and scripts (bash, powershell).  
I’ve been trying to make it work for my windows machines, i have used the powershell scripts from [ansible.com](http://ansible.com) to enable winrm.

But when i test the connection to my windows host i get this error:

TASK: [Run powershell script] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [192.168.0.37] =\> 500 WinRMTransport. [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed (\_ssl.c:581)  
FATAL: all hosts have already failed – aborting

Do you know how to solve this ?

I have installed ansible with pip on a debian machine.  
i had to create the files in /etc/ansible  
maybe i’ve forgot something ?

tree /etc/ansible/  
├── ansible.cfg  
├── group\_vars  
│ └── windows.yml  
├── handlers  
│ └── httpd.yml  
├── hosts  
├── playbooks  
│ ├── examples  
│ ├── run-bash.yml  
│ └── run-powershell.yml  
├── roles

Sorry for my bad english i’m french

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [August 7, 2015, 2:46pm UTC](https://forum.ansible.com/t/windows-integration/18968/2 "2015-08-07T14:46:22Z")

</div>

It looks like you're running into this issue:  
[https://github.com/ansible/ansible/issues/10294](https://github.com/ansible/ansible/issues/10294)

I'm guessing you are running Python 2.7.9+. The current workaround is  
using a callback plugin to disable SSL verification; we'll hopefully have a  
better fix by v2.

---

<div class="post-metadata">

**Author:** ![stephane\_jean](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@stephane\_jean](https://forum.ansible.com/u/stephane_jean)\
**Post date:** [August 8, 2015, 7:00pm UTC](https://forum.ansible.com/t/windows-integration/18968/3 "2015-08-08T19:00:01Z")

</div>

Yes i am running python 2.7.9+ , i did create a folder callback\_plugin with fix.ssl in my playbooks directory but i have the same error:

3[root@Debian]:ansible-playbook /etc/ansible/playbooks/run-powershell.yml

PLAY [Run powershell script] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK: [Run powershell script] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [192.168.0.37] =\> 500 WinRMTransport. [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed (\_ssl.c:581)

FATAL: all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/root/run-powershell.retry

192.168.0.37 : ok=0 changed=0 unreachable=1 failed=0

my directory:

/etc/ansible/

├── ansible.cfg  
├── group\_vars  
│ └── windows.yml  
├── handlers  
│ └── httpd.yml  
├── hosts  
├── info.txt  
├── playbooks  
│ ├── callback-plugins  
│ │ └── fix-ssl.py  
│ ├── examples  
│ ├── run-bash.yml  
│ └── run-powershell.yml  
├── roles  
└── test.py

i should see a fix-ssl.pyc in the callbacks-pluins directory if it’s load ?

I did not change anything /usr/local/lib/python2.7/dist-packages/ansible.

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [August 8, 2015, 7:22pm UTC](https://forum.ansible.com/t/windows-integration/18968/4 "2015-08-08T19:22:37Z")

</div>

Try callback\_plugins (with an underscore) instead of callback-plugins.

---

<div class="post-metadata">

**Author:** ![stephane\_jean](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@stephane\_jean](https://forum.ansible.com/u/stephane_jean)\
**Post date:** [August 9, 2015, 8:19pm UTC](https://forum.ansible.com/t/windows-integration/18968/5 "2015-08-09T20:19:51Z")

</div>

oops thanks it’s now working with ‘ansible-playbook …’, but not with ‘ansible…’ i tried with

env ANSIBLE\_LOAD\_CALLBACK\_PLUGINS=1 ansible windows -m win\_ping  
or  
ANSIBLE\_LOAD\_CALLBACK\_PLUGINS=1 ansible windows -m win\_ping

and i still get the error  
192.168.0.37 | FAILED =\> 500 WinRMTransport. [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed (\_ssl.c:581)

I was also wondering, is there an help command to see all the modules avaible ? because i currently check on  
the website.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [August 10, 2015, 1:56pm UTC](https://forum.ansible.com/t/windows-integration/18968/6 "2015-08-10T13:56:53Z")

</div>

ansible-doc -l =\> lists all modules in your ansible installation

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 14, 2015, 3:05pm UTC](https://forum.ansible.com/t/windows-integration/18968/7 "2015-08-14T15:05:12Z")

</div>

I think you may need to change this setting in your ansible.cfg file to get the callback to take effect when using ansible

[http://docs.ansible.com/ansible/intro\_configuration.html#bin-ansible-callbacks](http://docs.ansible.com/ansible/intro_configuration.html#bin-ansible-callbacks)
