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