Ansible.runner not found

30 views
Skip to first unread message

Chechu Santander

unread,
Apr 25, 2016, 9:52:25 AM4/25/16
to Ansible Project
hey guys,

I'm trying to create an ansible script with python to launch some playbooks, but when I try to import ansible.runner, I got the library missing

Traceback (most recent call last):
  File "./test_ansible.py", line 2, in <module>
    import ansible.runner
ImportError: No module named runner

ansible-plybook works fine, import ansible, also works....I installed cloning from Github, later run "git submodule update --init --recursive", later "make install"

Any idea?


P.S: I'm using Ubuntu 14.04 , and I would like to use the version from Github as has some enhancement I need that are not available yet on pip and apt

Brian Coca

unread,
Apr 25, 2016, 9:54:22 AM4/25/16
to ansible...@googlegroups.com
The API has changed a lot in >=2.x, runner was broken apart into many classes. 


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