Hi
if i create the custom fact file in /etc/ansible/facts.d/custom.fact
custom.fact is like this
[general]
package = httpd
service = httpd
state = started
enabled = true
The package variable will be like
{{ ansible_facts['ansible_local']['custom']['general']['package']
i think this bold part is default, but is [custom] name of the file?
Assume that filename is example then should variable be like
{{ ansible_facts['ansible_local']['example']['general']['package']
Thank you so much!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.