cancel
Showing results for 
Search instead for 
Did you mean: 
AmeyaSathe
Mission Specialist
Mission Specialist
  • 901 Views

Using facts to dynamically generate group of hosts

Hello,

The Course: Red Hat Enterprise Linux Automation with Ansible mentions "Facts can also be used to create dynamic groups of hosts that match particular criteria. "

Rest of the chapter is silent about the implementation of the statement.  The "See Also" section refers to the  https://docs.ansible.com/ansible/2.9/user_guide/playbooks_variables.html#variables-discovered-from-s... . The web page in turns points to non-helpful  python documentation.

Exact location of the line is

Course: Red Hat Enterprise Linux Automation with Ansible
Chapter 3 | Managing Variables and Facts
Section Managing Facts
Sub-Section Describing Ansible Facts

Book version: RH294-RHEL8.4-en-1-20210818
Page 113
Line:
"Facts can also be used to create dynamic groups of hosts that match particular criteria. "

 

I discovered that the following module achieves the objective.

 

Spoiler

 

 

Labels (1)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.