Some ansible playbook runs will work on most hosts, but 1-3 will fail with
an undefined variable that is an ansible fact. Run it a second time and it
works.
Example:
fatal: [wdv-sitefinity1]: FAILED! => {"failed": true, "msg": "ERROR! The
conditional check 'ansible_os_family == 'Windows'' failed. The error was:
ERROR! error while evaluating conditional (ansible_os_family == 'Windows'):
ERROR! 'ansible_os_family' is undefined\n\nThe error appears to have been
in '/home/icansible/ansible/roles/newrelic/tasks/main.yml': line 11, column
3, but may\nbe elsewhere in the file depending on the exact syntax
problem.\n\nThe offending line appears to be:\n\n\n- name: create temp
directory\n ^ here\n"}
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8f5d179e-f9af-4376-9d79-cff635f220f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.