Create it in Jinja. For example,
soarecords: |
{% for zone in zones %}
{{ zone }}:
{% for field in lookup('dig', zone, 'qtype=SOA')|split %}
{{ soafields[loop.index0] }}: {{ field }}
{% endfor %}
{% endfor %}
soarecords_dict: "{{ soarecords|from_yaml }}"-- 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/20220929230403.4de13028%40gmail.com.
pgp884lEqybqg.pgp
Description: OpenPGP digital signature
