Help with Windows Clients

Dear friends/ Tech Team,

I am Suhas from Bangalore. I am looking for some technical help from the group.

I am new into Ansible. I am having 12 + years of total experience in Windows.

I am getting some errors while setting up windows clients to be controlled from ansible.

I have setup ansible on Ubuntu Server.

Hosts File-- /etc/hosts

127.0.0.1 localhost
127.0.1.1 test-serv
192.168.0.146
192.168.0.147
8.8.8.8
c1.local
c2.local

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

ansible hosts file – /etc/ansible/hosts

Ex 3: A collection of database servers in the ‘dbservers’ group

#[dbservers]

Hi ,

You can create same your own host file on the controller server rather then makeing changing in your ansible default directory on the controller server.

There are defferent ways to create host
For me this worked.

Ex:-[ win_server]
10.16.45.110

ansible_user=Administrator
ansible_password=password
ansible_port=5985or5986
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore