Create the list of the hashes bn_regex: '^{{ prefix }}\d{10}_(.*)\.pgdump$' bn: "{{ all_objects| map(attribute='Key')| map('regex_replace', bn_regex, '\\1')| map('community.general.dict_kv', 'basename') }}"
gives bn: - basename: dev_wss_db - basename: dev_wss_db_requests - basename: dev_bss_service_database - basename: dev_bss_frontend_db - basename: dev_mss_db zip the lists and combine the items backup_object: "{{ all_objects|zip(bn)|map('combine') }}" -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20230817004608.1a07c1ff%40gmail.com.
pgpFTDB_f6ZbO.pgp
Description: OpenPGP digital signature