in Ansible by
What does Fact mean in Ansible?

1 Answer

0 votes
by
The term “Facts” is commonly used in Ansible environment. They are described in the playbooks areas where it displays known and discovered variables about the system.  Facts are used to implement conditionals executions and also used for getting ad-hoc information of the information.

You can see all the facts via:

$ ansible all- m setup

So if you want to extract only certain part of the information then you can use “setup” module where you will have an option to filter out the output and just get hold of the fact that you are in need of.

Related questions

0 votes
asked Nov 13, 2019 in Ansible by rajeshsharma
+1 vote
0 votes
asked Jul 30, 2021 in Ansible by DavidAnderson
0 votes
0 votes
asked Jul 30, 2021 in Ansible by DavidAnderson
...