The next option is putting the iteration into one task. For example,

    - set_fact:
        soarecords_dict: "{{ soarecords_dict|d({})|
                             combine({item: _dict}) }}"
      loop: "{{ zones }}"
      vars:
        _dict: "{{ dict(soafields|
                   zip(lookup('dig', item, 'qtype=SOA')|split)) }}"


-- 
Vladimir Botka

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20220929231757.660a4999%40gmail.com.

Attachment: pgp79kaSj20Ki.pgp
Description: OpenPGP digital signature

Reply via email to