It´s about Ansible setup and connection to target
I´ve configure this om my client and used Ansible for window10 with wsl:
And enable CredSSP on target server01
I´ve added svc-ansible account to local administrator group on server01
But when Im trying ansible web -m win_ping from client i receive this ERROR: ansible web -m win_ping
I get this error:
PS. I´ve als done this on my windows 10 client:
I´ve scanned with nmap and getting this result:
"PORT STATE SERVICE 5986/tcp closed wsmans"
I hope this is right forum? and really appreciate your answer
I´ve configure this om my client and used Ansible for window10 with wsl:
Less:
[web] server01 [web:vars]
ansible_user="[email protected]"
ansible_password=somepassword
ansible_connection=winrm
ansible_winrm_transport=credssp
ansible_winrm_cert_validation=ignore
And enable CredSSP on target server01
I´ve added svc-ansible account to local administrator group on server01
But when Im trying ansible web -m win_ping from client i receive this ERROR: ansible web -m win_ping
I get this error:
PS. I´ve als done this on my windows 10 client:
Code:
Ansible [core 2.12.0]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]
jinja version = 2.10.1
libyaml = True
I´ve scanned with nmap and getting this result:
"PORT STATE SERVICE 5986/tcp closed wsmans"
I hope this is right forum? and really appreciate your answer