Ansible Python API - send file as parameter

13 views
Skip to first unread message

Balaji

unread,
Aug 28, 2018, 1:13:52 AM8/28/18
to Ansible Project
Hello All,

Can anyone please help to create an equivalent of a command 

ansible-playbook -i environments playbooks/site.yml -u user_name  -e "@build.json"

I am very curious to know how to write this  " -e "@build.json" " in python.


Background - I am trying to run above command from a python script.

Thanks,
Balaji Chavdi 



Reply all
Reply to author
Forward
0 new messages