AttributeError: 'str' object has no attribute 'set_playbook_basedir'.

39 views
Skip to first unread message

anant...@gmail.com

unread,
Jul 13, 2015, 5:58:07 PM7/13/15
to ansible...@googlegroups.com
Hi,

I am trying to execute unusable playbook using unusable python API, but the execution call to playbook.PlayBook fails with ....lib/python2.7/site-packages/ansible/playbook/__init__.py", line 173, in __init__
    inventory.set_playbook_basedir(self.basedir) AttributeError: 'str' object has no attribute 'set_playbook_basedir'.


pb = playbook.PlayBook(
        playbook=playbook_name,
        stats=stats,
        callbacks=playbook_cb,
        runner_callbacks=runner_cb,
        inventory = inventory_file)

Kindly let me know if more information is needed.

Thanks,
Durai G

Brian Coca

unread,
Jul 13, 2015, 6:11:13 PM7/13/15
to ansible...@googlegroups.com
you want to hit the development mailing list (ansible-devel) for this
kind of questions



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