Help with Windows Clients

21 views
Skip to first unread message

Suhas H

unread,
Aug 30, 2020, 6:31:12 AM8/30/20
to Ansible Project
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]
#
#10.25.1.56
#10.25.1.57

# Here's another example of host ranges, this time there are no
# leading 0s:

#db-[99:101]-node.example.com
[clients01]
192.168.0.146
192.168.0.147

[clients02]
C1.local
C2.local
ansible_connection=winrm


Please let me know if there's any changes required to do.


Kundan Singh

unread,
Aug 30, 2020, 10:37:20 PM8/30/20
to ansible...@googlegroups.com
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


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c300a0e1-d28f-4d85-86cb-f3605f0c1314n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages