# Help with Windows Clients

**URL:** <https://forum.ansible.com/t/help-with-windows-clients/33702>\
**Category:** Ansible Project\
**Tags:** windows, ubuntu\
**Created:** [August 30, 2020, 10:31am UTC](https://forum.ansible.com/t/help-with-windows-clients/33702 "2020-08-30T10:31:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suhas\_H](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Suhas\_H](https://forum.ansible.com/u/Suhas_H)\
**Post date:** [August 30, 2020, 10:31am UTC](https://forum.ansible.com/t/help-with-windows-clients/33702/1 "2020-08-30T10:31:12Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![Kundan\_Singh](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@Kundan\_Singh](https://forum.ansible.com/u/Kundan_Singh)\
**Post date:** [August 31, 2020, 2:36am UTC](https://forum.ansible.com/t/help-with-windows-clients/33702/2 "2020-08-31T02:36:50Z")

</div>

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

```auto
ansible_user=Administrator
ansible_password=password

```

```auto
ansible_port=5985or5986

```

```auto
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore

```
