December 2017
Intermediate to advanced
364 pages
7h 30m
English
Now, let's test by executing a simple ping module against the Windows server.
First, we need to create the inventory file, which includes the options for connecting the Windows winrm service:
[windows]192.168.56.120 ansible_user=Administrator ansible_password=strongpassowrd ansible_connection=winrm ansible_winrm_server_cert_validation=ignore ansible_port=5986
To execute the Windows ping module, we can run the following Ansible command:
ansible -i inventory windows -m win_ping
