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

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

you want to hit the development mailing list (ansible-devel) for this
kind of questions