1.

What mean by 'facts' in Ansible?

Answer»

Whenever we run an ANSIBLE playbook, Ansible first gathers information ('facts' an exhaustive list of all the environment details) about each host in the play. Facts can be extremely helpful when we’re running PLAYBOOKS; we can use GATHERED information like host IP addresses, CPU type, disk space, operating system information, and network interface information to change when certain TASKS are run or to change certain information used in configuration files. 

To get a list of every gathered fact available, we can use 'ansible munin -m setup' command with the setup module. 



Discussion

No Comment Found