what does 'somevalue' look like? On Tue, 16 Jul 2019 at 09:58, Rakesh Parida <[email protected]> wrote: > > Hi, > > set_fact in with_dict append loop only keeps last item . Is there any way to > keep the whole list in the set_fact. > > - name: Print records > set_fact: > imp_records: "/home/ansible/{{ item.key }}/{{ > item.value.version.split('_')[1] }}/{{ item.value.file_name }}" > when: item.key == 'imp' > with_dict: "{{ somevalue }}" > > append loops only keeps the last item. > > Is there any way we can whole list in the set_fact > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/b471508f-d967-495b-a3b6-9894c39fb3bb%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout.
-- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwOmY8fO9rymS02KEA-OSf9an2POTJjRRXuz0RhVpHNzgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
