hello,
I am trying to have a python script (auto triggered when a playbook is run) to take from playbook extra_vars and uses it as var for the script.
for example:
ansible-playbook test.yml --extra-vars “win=True”
something like in the script
result = self.playbook.extra_vars[‘win’]
any good tips, suggestions
Thanks,
Jerry
racke
(Stefan Hornburg)
2
hello,
I am trying to have a python script (auto triggered when a playbook is run) to take from playbook extra_vars and uses it
as var for the script.
for example:
ansible-playbook test.yml --extra-vars "win=True"
something like in the script
result = self.playbook.extra_vars['win']
any good tips, suggestions
Thanks,
Jerry
Hello Jerry,
how is this script auto triggered?
Regards
Racke