Works fine w/ Ansible 1.9.4 I won't paste the whole file because it's not getting past the setup stage. With gather_facts turned off I can get past the setup phase but it obvioulsy fails once it gets to the pre_tasks block.
Error: TASK [setup] ******************************************************************* ESTABLISH LOCAL CONNECTION FOR USER: deployment localhost EXEC /bin/sh -c '( umask 22 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667 `" && echo "` echo $HOME/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667 `" )' localhost PUT /tmp/tmplpuIUA TO /home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup localhost EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python /home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup; rm -rf "/home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/" > /dev/null 2>&1' An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup", line 5187, in <module> main() ▽ File "/home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup", line 120, in main data = get_all_facts(module) File "/home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup", line 5132, in get_all_facts facts = ansible_facts(module) File "/home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup", line 5121, in ansible_facts facts.update(Facts().populate()) File "/home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup", line 2258, in __init__ self.get_lsb_facts() File "/home/deployment/.ansible/tmp/ansible-tmp-1458154979.71-232816027337667/setup", line 2707, in get_lsb_facts lsb_path = module.get_bin_path('lsb_release') NameError: global name 'module' is not defined fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "setup"}, "parsed": false} ------------ MY FILE: - hosts: 127.0.0.1 pre_tasks: - include_vars: vars/web when: "'web' in ansible_hostname" - include_vars: vars/perl when: "'web' not in ansible_hostname" - include_vars: vars/batch when: "'batch' in ansible_hostname" tasks: -- 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/2a6dae64-28d0-4c14-b2c4-4ad9fc19a3bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.