Hi all,
I am wondering how I can access ansible_fatcs
from the command line as ad-hoc commands.
I tried this command below in vain.
ansible node00 -i inventory -m debug -a 'var=ansible_eth0.ipv4.address'
it always gives me
node00 | SUCCESS => {
"ansible_eth0.ipv4.address": "VARIABLE IS NOT DEFINED!"
}
I tried this as well
ansible node00 -i inventory -m debug -a 'var=ansible_facts.ansible_eth0.ipv4.address'
But I got the same error