On 05.11.2018 15:08, Uwe Sauter wrote:
Because he was running the playbook with this commandline:

ansible-playbook -i infra --limit mysql04 main.yml --tags "mysql" -vvv

There you have the problem.
He has template code that read variable from all the host in group mysql and running the command with limit. Because of limit the fact gathering will run on mysql04 and not the other hosts in the group so the ['ansible_default_ipv4']['address'] will be undefined for all of them except mysql04.

--
Kai Stian Olstad

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

Reply via email to