Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 433 Bytes

8_Adhoc.rst

File metadata and controls

15 lines (9 loc) · 433 Bytes

Adhoc

Using Ansible, the host (localhost in this case) is defined and the -m switch for module (setup module in this example) will return facts about your machine.

ansible localhost -m setup

This returns a large amount of data that would be extremely time consuming to sift through. Let's filter it using the -a switch for argument

ansible localhost -m setup -a "filter=ansible_distribution*"