Hi I am working with Ansible API but I run into problem with the Playbook 
module.

I've done some reading in 
https://github.com/oriolrius/programming-ansible-basics/blob/master/test_playbook.py
 
and also looked through help(Inventory). Despite Inventory object has 
methods like is_file.

But it seems like PlayBook is expecting file instead?

Literally my code is like what's in ansible code:

    self._playbook = ansible_playbook.PlayBook(
      playbook=pb_path,
      inventory=self._inventory,
      stats=stats,
      runner_callbacks=runner_cb,
      callbacks=playbook_cb,
      **other_options
    )

Thoughts?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/03e6d4f2-cd2b-45c8-a1bc-37179ed4c2dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to