Hey,
I want connect Ansible with my host Windows but i don’t understand why it’s not works.
I have groupe in /etc/ansible/hosts :
[windows]
101.5.213.11 ansible_connection=ssh ansible_shell_type=powershell
I have one playbook.yml :
- name: “Installation de script SQL”
hosts: “windows”
gather_facts: no
roles:
- role: “roles”
tasks:
- name: “Executer le script powershell”
script: “files/script1.ps1”
But same the simple ping it’s not works why ?
I look the documentation Ansible for windows but it not works
Thanks for your help !!
Regards,
racke
(Stefan Hornburg)
2
Hey,
I want connect Ansible with my host Windows but i don't understand why it's not works.
I have groupe in */etc/ansible/hosts :*
*
*
*[windows]*
*101.5.213.11 ansible_connection=ssh ansible_shell_type=powershell*
I have one *playbook.yml :*
*- name: "Installation de script SQL"*
* hosts: "windows"*
* gather_facts: no*
* roles:*
* - role: "roles"*
*
*
* tasks:*
*
*
* - name: "Executer le script powershell"*
* script: "files/script1.ps1"*
But same the simple ping it's not works why ?
Hard to tell without seeing the output of the playbook run (add verbosity with -vv).
Regards
Racke
Do you really connect to your Windows hosts via SSH? While it is possible with latest Windows, more common options are winrm/psrp connection plugins.
Thank you,
Hey,
Ok, i will try this option winrc/psrp connection plugings
Thanks very much !!
Regards,