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, 

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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to