@branko 

- you're right about the typo.
- your "'\\1-' + item" solution works beautifully :-)

The solution hence is:
- name: Building partial name of installed MTX packages
  set_fact:
        installed_mtx_packages_partial_name: "{{ 
installed_mtx_packages_name | map('regex_replace', '(.*)', '\\1-' + item) | 
list }}"
  with_items: "{{ installed_mtx_packages_version }}"

The result is:
        "installed_mtx_packages_partial_name": [
            "mtx-device-1.0.1-r1705191346", 
            "mtx-grpc-agent-1.0.1-r1705191346", 
            "mtx-infra-1.0.1-r1705191346", 
...
        ]

Thanks!

-- 
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/7bc53f5a-4416-495c-9cd9-dece990d26cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to