Skip to content

Instantly share code, notes, and snippets.

@smartaquarius10
Last active February 25, 2021 21:12
Show Gist options
  • Save smartaquarius10/a6df3f9919b1b20d15e653be9add2f54 to your computer and use it in GitHub Desktop.
Save smartaquarius10/a6df3f9919b1b20d15e653be9add2f54 to your computer and use it in GitHub Desktop.
Ansible Config
[defaults]
inventory = configuration/hosts
#Keep this file in the directory specified in ansible.cfg
[win]
# specify ip address of the machines per line
[win:vars]
ansible_user='<userid>@<complete LDAP domain eg. xyz.com>'
#ansible_password=''. Either pass pasword here or use -k option through cli
ansible_connection=winrm
ansible_port=5985
ansible_winrm_transport=ntlm # We can use kerberos also
#ansible_winrm_server_cert_validation=ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment