Many thanks, I'll give it a try. 

Greg

On Saturday, April 18, 2020 at 2:43:16 AM UTC-5, Stefan Hornburg (Racke) 
wrote:
>
> On 4/18/20 1:57 AM, Gregory Skelton wrote: 
> > I feel this should be easy.  
> > 
> > I'm trying to put a fact I set on each server into one central list.  
> > sat_id is the Big List 
> > sat_id_raw is the variable that I set earlier in the automation.  
> > 
> > What am I missing here? 
> > Thanks in advance 
> > 
>
> Try "{{ sat_id + sat_id_raw }}" if sat_id_raw is a list, "{{ sat_id + 
> [sat_id_raw] }}" if sat_id_raw is 
> a single value. 
>
> Regards 
>           Racke 
>
>
> > name: Put all of the var into a big list____ 
> > 
> >   set_fact:____ 
> > 
> >     sat_id: "{{ sat_id }} + ['{{ sat_id_raw }}']"____ 
> > 
> >   delegate_to: localhost____ 
> > 
> > __ __ 
> > 
> > - name: Print object type____ 
> > 
> >   debug:____ 
> > 
> >     var: sat_id____ 
> > 
> >   delegate_to: localhost____ 
> > 
> > __ __ 
> > 
> > __ __ 
> > 
> > TASK [Facts-list : Put all of the vars into a big list] 
> > 
> *****************************************************************************************************************************____
>  
>
> > 
> > ok: [MY-SERVER1 -> localhost] => {____ 
> > 
> >     "ansible_facts": {____ 
> > 
> >         "sat_id": [____ 
> > 
> >             "15929"____ 
> > 
> >         ]____ 
> > 
> >     },____ 
> > 
> >     "changed": false____ 
> > 
> > }____ 
> > 
> > ok: [MY-SERVER2 -> localhost] => {____ 
> > 
> >     "ansible_facts": {____ 
> > 
> >         "sat_id": [____ 
> > 
> >             "13409"____ 
> > 
> >         ]____ 
> > 
> >     },____ 
> > 
> >     "changed": false____ 
> > 
> > }____ 
> > 
> > __ __ 
> > 
> > TASK [Facts-list : Print object type] 
> > 
> ***********************************************************************************************************************____
>  
>
> > 
> > task path: 
> /data/grskelt/satellite-devel/satellite-contentviews-list/tasks/main.yml:96____
>  
>
> > 
> > ok: [MY-SERVER1 -> localhost] => {____ 
> > 
> >     "sat_id": [____ 
> > 
> >         "15929"____ 
> > 
> >     ]____ 
> > 
> > }____ 
> > 
> > ok: [MY-SERVER2 -> localhost] => {____ 
> > 
> >     "sat_id": [____ 
> > 
> >         "13409"____ 
> > 
> >     ] 
> > 
> > 
> > -- 
> > 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 
> > ansible...@googlegroups.com <javascript:> <mailto:
> ansible-project+unsubscr...@googlegroups.com <javascript:>>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/829bacc7-12b8-439d-8770-7cf956da2e9c%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/ansible-project/829bacc7-12b8-439d-8770-7cf956da2e9c%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
>
>
> -- 
> Ecommerce and Linux consulting + Perl and web application programming. 
> Debian and Sympa administration. Provisioning with Ansible. 
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/252caa64-b50d-4de7-8db2-453fbb78567a%40googlegroups.com.

Reply via email to