I am trying to execute ansible playbook by python script however I am getting below error.
from ansible.playbook import PlayBook
ImportError: cannot import name PlayBook
My script is as below,
from ansible.playbook import PlayBook
pb = PlayBook(playbook=‘gitlab.yml’)
pb.run()
Sagar Mujumale
Cloud Analyst, PaaS Operations