Hi, I just updated from ansible 1.9 to ansible 2 and I am somehow managed to break my playbooks.
I can't seem to figure how whats wrong even after spending a good chunk of time with google Any pointer on what could be wrong below: [wmuriithi@dazzler ansible]$ ansible-playbook -s /etc/ansible/site.yml -vvv --user=uxp --limit 192.168.40.59 --tag mintbe Using /etc/ansible/ansible.cfg as config file [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 6 plays in /etc/ansible/site.yml PLAY [Home keeping stuff] ****************************************************** TASK [setup] ******************************************************************* <192.168.40.59> ESTABLISH SSH CONNECTION FOR USER: uxp <192.168.40.59> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=uxp -o ConnectTimeout=10 -o ControlPath=/home/wmuriithi/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.40.59 '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348 )" )' <192.168.40.59> PUT /tmp/tmpIoZAIn TO /home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup <192.168.40.59> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=uxp -o ConnectTimeout=10 -o ControlPath=/home/wmuriithi/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.40.59]' <192.168.40.59> ESTABLISH SSH CONNECTION FOR USER: uxp <192.168.40.59> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=uxp -o ConnectTimeout=10 -o ControlPath=/home/wmuriithi/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.40.59 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-woapaubbkoakapnsudzqztnyuszjgkpn; LANG=en_CA.UTF-8 LC_ALL=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 /usr/bin/python /home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup; rm -rf "/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/" > /dev/null 2>&1'"'"'"'"'"'"'"'"''"'"'' fatal: [192.168.40.59]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "setup"}, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup\", line 5121, in <module>\r\n main()\r\n File \"/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup\", line 120, in main\r\n data = get_all_facts(module)\r\n File \"/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup\", line 5066, in get_all_facts\r\n facts = ansible_facts(module)\r\n File \"/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup\", line 5055, in ansible_facts\r\n facts.update(Facts().populate())\r\n File \"/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup\", line 2218, in __init__\r\n self.get_service_mgr_facts()\r\n File \"/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup\", line 2640, in get_service_mgr_facts\r\n if self._check_systemd():\r\n File \"/home/uxp/.ansible/tmp/ansible-tmp-1458326501.27-30466008725348/setup\", line 2764, in _check_systemd\r\n if module.get_bin_path('systemctl'):\r\nNameError: global name 'module' is not defined\r\n", "msg": "MODULE FAILURE", "parsed": false} NO MORE HOSTS LEFT ************************************************************* PLAY RECAP ********************************************************************* 192.168.40.59 : ok=0 changed=0 unreachable=0 failed=1 [wmuriithi@dazzler ansible]$ rpm -qa | grep ansible ansible-2.0.0.2-0.git201601142217.7de237c.stable2001.el7.centos.noarch Reagrds, William -- 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/CAE9rU%2B798odf8wKZj5NjGuHMndGdi2%3DGCHMpvRxTVO5mHCepoQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.