Import/include ansible module

17 views
Skip to first unread message

Kash

unread,
Nov 30, 2018, 2:40:57 PM11/30/18
to Ansible Project
How can I import or include a module in my yaml file that I have downloaded at a different (custom) location than

/usr/lib/python2.7/site-packages


Thanks

Kai Stian Olstad

unread,
Nov 30, 2018, 2:46:17 PM11/30/18
to ansible...@googlegroups.com
Message has been deleted

Kash

unread,
Dec 3, 2018, 7:20:23 AM12/3/18
to Ansible Project
I have the python package downloaded in the virtual environment and am trying to use its ansible module in my playbook, no luck yet.

Location for the package - /var/lib/awx/venv/ansible/lib/..

In the playbook - 
---hosts: localhost
    tasks:
      - name: Job list
        tower_job_list:
          status:
....

But it keeps failing.
Reply all
Reply to author
Forward
0 new messages