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