Re: [ansible-project] merge json_query output

2021-03-24 Thread Sakshi Rathore
thanks for the advice :) On Tue, Mar 23, 2021 at 3:05 PM Dick Visser wrote: > > https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#selecting-from-sets-or-lists-set-theory > > On Tue, 23 Mar 2021 at 13:15, Sakshi Rathore > wrote: > > > > currently i am getting output in 2

Re: [ansible-project] merge json_query output

2021-03-23 Thread Dick Visser
https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#selecting-from-sets-or-lists-set-theory On Tue, 23 Mar 2021 at 13:15, Sakshi Rathore wrote: > > currently i am getting output in 2 different array: (ip addresses are dummy) > > ['10.32.142.156', '10.32.142.153', '10.32.31.1

Re: [ansible-project] merge json_query output

2021-03-23 Thread Sakshi Rathore
currently i am getting output in 2 different array: (ip addresses are dummy) ['10.32.142.156', '10.32.142.153', '10.32.31.177', '10.32.31.176', '10.32.31.175', '10.32.31.180', '10.32.31.179', '10.32.143.174', '10.32.143.173', '10.32.143.175', '10.32.141.40', '10.32.141.37', '10.32.41.155', '10.32.

Re: [ansible-project] merge json_query output

2021-03-23 Thread Dick Visser
What do you mean by 'merging json queries'? I know json data structures can be merged, but queries? For example you can merge input and input1 into a new structure, and then have a single json_query? Or ? On Tue, 23 Mar 2021 at 13:02, Sakshi Rathore wrote: > > hello all, > > i am getting 2 a

[ansible-project] merge json_query output

2021-03-23 Thread Sakshi Rathore
hello all, i am getting 2 array of ips from 2 different json queries in ansible-playbook. how can i merge these 2 json queries? in below example i want to merge jmesquery and jmesquery1 - name: master ip list from json content #debug: msg="{{ input | json_query(jmesquery) }}" copy: conten