[ansible-project] Re: awx/tower api help wanted

2019-04-27 Thread dan
BTW, I've done quite a bit of API work on the command line using curl and this site is quite useful: https://json.parser.online.fr/ I was able to paste in your original code and easily see that "targets" is only going to be evaluated once (to "dev-cn-c2") by looking at the YAML. Or if you

[ansible-project] Re: awx/tower api help wanted

2019-04-27 Thread dan
I believe your JSON on the command line is incorrect - I'd bet that your example only runs against the "dev-cn-c2" target, correct? Try this for the data to pass: { "extra_vars": { "domain": "dom-cn-1", "targets": [ "dev-cn-c1", "dev-cn-c2" ] , "fwcmd": "fw sam -v -J src 192.168.10.10" }}