RHCE 8 - Understanding Ansible Facts and Variables for the RHCE

Опубликовано: 21 Март 2025
на канале: theurbanpenguin
7,207
155

Preparing your for the Red Hat Exam EX294 we now take a more specific look at using Ansible Variables and Ansible Facts. We have looked before at storing variables within the inventory and we revise those setting before migrating variables to specific directories host_vars and group_vars. This can help the Inventory file stay cleaner and does not require the expansion of host ranges. With variables covered we move onto facts. Facts are special variables populated by the setup module. This can be disabled if not required. We see this with gather_facts: false in the play settings. We want to collect facts so we enable the setting and display usful facts such as the memory a system has and the IP Address that is in use.

Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Autho... and take time to see my own site http://www.theurbanpenguin.com