Hi, 
I ran into the issue that I wanted to include a role based on a fact.
Specifically, I wanted the firewall role (configuring iptables) to not be 
included when the playbook is run locally against a Vagrant VM.

I noticed that the facts are not available (= empty string) when I do it 
like that, i.e. using become. Is this by design?

Closely related question: The variable ansible_hostname is available. In 
which way is it different from the other facts?

Thanks and regards, 
Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f826332b-11a6-40e5-88fa-160a89c590ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to