Thanks. I need to brush up on my jinjansiblethon.
On Friday, April 17, 2015 at 2:21:32 PM UTC-7, Matt Martz wrote:
The best link for jinja2 template docs is:
http://jinja.pocoo.org/docs/dev/templates/
Other than that, it's a little bit of python, a little bit of jinja2 and
some other
I'm having an issue adding an element to an array. What i need to do is...
1) get an array list of IDs from an api using the uri module (no issues
here)
2) add an element to this array (issue here!)
3) send a PUT with the updated array using uri (no issues here)
tasks start
- name:
This isn't tested, but I believe it would look something like:
{{ reg_endpoint2.json.array_with_many_elements +
[reg_endpoint1.json.id_list[0].id] }}
You need to perform the concatenation inside of a single {{ }}
On Fri, Apr 17, 2015 at 3:43 PM, Michael Liu purduem...@gmail.com wrote:
I'm
Thank you so much. It's been hard trying to find any documentation on
this. Any links to good docs about this topic? I feel like I'll be
playing around a lot with json, arrays, and uri module in Ansible.
I own you a beer! Next time you visit SF.
On Friday, April 17, 2015 at 1:59:36 PM