from python I using ansible runner to call ansible
playbookvar = '/home/vagrant/projectrole/test.yaml'
r=ansible_runner.run(inventory = inv , playbook =playbookvar )
any possible get return value from ansible to python ?
result of python
ASK [return]
***************************************************************************************************************
ok: [localhost] => {
"returnvalue": [
{
"result": "1",
"server": "test1"
},
{
"result": "1",
"server": "test2"
}
]
}
thanks
soonyu
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/22d5ae6a-0a37-4c12-b18d-4d10aada92d6n%40googlegroups.com.