The true solution is tricky:
- name: Building partial name of installed MTX packages
set_fact:
installed_mtx_packages_partial_name_item: "{{ item.0 }}-{{ item.1
}}"
with_together:
- "{{ installed_mtx_packages_name }}"
- "{{ installed_mtx_packages_version }}"
register: installed_mtx_packages_partial_name_result
- name: Building partial list of name of installed MTX packages
set_fact:
installed_mtx_packages_partial_name: "{{
installed_mtx_packages_partial_name_result.results |
map(attribute='ansible_facts.installed_mtx_packages_partial_name_item') |
list }}"
leads to the true list:
"installed_mtx_packages_partial_name": [
"mtx-infra-1.0.0-r1705191346",
"mtx-device-1.0.0-r1705191346",
"mtx-grpc-agent-1.0.1-r1705191346",
...
]
There might be a more elegant solution.
--
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/48556517-9473-4611-9f5a-8797fd851edd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.