As we found out in Chapter 2, Installing and Running Ansible, the setup module gathers facts on our target host; if we call the module directly using the ansible command, the facts are printed directly on the screen. To call the module, we need to run the following command:
$ ansible windows -i production -m setup
As you can see from the following screen, the information displayed is pretty much identical to when we ran the module against a Linux host:
We can use one of the playbooks from Chapter 2, Installing and Running Ansible, to see this. In playbook01.yml, we used the facts gathered by Ansible when it first connects ...