conflicting action statements: shell, async

870 views
Skip to first unread message

grimlinzz

unread,
Apr 29, 2019, 9:50:00 AM4/29/19
to Ansible Project
Hello, i installed ansible 2.7.10 with pip.

Extract from the playbook :

  - name: stop the host
    shell: sleep 2 && shutdown -h now "Ansible updates triggered"
    async: 1
    poll: 0
    ignore_errors: true
 
when i run :


ansible-playbook playbook.yml --syntax-check

I have this error :
 

ERROR! conflicting action statements: shell, async

I find this issue in ansible github repository : https://github.com/ansible/ansible/issues/51431.

But i don't understand what he means when he says "the search path that ansible uses to find modules".

Thanks for you help. ;)

Brian Coca

unread,
May 2, 2019, 11:42:11 AM5/2/19
to Ansible Project
This should show 'configured paths' for searching for a module
`ansible -m debug -a 'msg={{ lookup("config", "DEFAULT_MODULE_PATH")
}}' localhhost`, to this you need to add any library/ directories in
your roles or adjacent to your playbooks.

--
----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages