Hi
I have a Ansible playbook as below:
test.env.yml
Hi
I have a Ansible playbook as below:
test.env.yml
STOP
Running playbooks is done using 'ansible-playbook' - not with hand
crafted python scripts.
See https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html
Also, it looks like you have an issue understanding privilege
escalation. Please look at the docs about that as well:
https://docs.ansible.com/ansible/latest/user_guide/become.html
Lastly - you haven't told what you are actually trying to achieve with ansible?
What are you trying to automate?