Here's another hacky way to do it:
```
pb = ansible.playbook.PlayBook(
playbook=playbook,
host_list=host_list,
stats=stats,
callbacks=playbook_cb,
runner_callbacks=runner_cb,
extra_vars=extra_vars,
private_key_file=private_key_file,
subset=host
)
ansible.constants.HOST_KEY_CHECKING = False
pb.run() # This runs the playbook
```
but it would be cool if I could pass it to the PlayBook constructor.
--
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/7f9bae7b-a007-4cfb-add2-5a9138ab355e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.