- name: Report installation details
ansible.builtin.debug:
msg: |
Installation Verified:
- Package: {{ item.name }}
- Version: {{ item.version }}
- Release: {{ item.release }}
# 1. Flatten the package dictionary
# 2. Select the item that matches your exact "complex" package name
loop: >
{{
ansible_facts.packages.values()
| flatten
| selectattr('name', 'equalto', comet_application_name)
| list
}}
# Since version/release are hardcoded to '1' in your metadata,
# simply verify against those literal values.
when: item.version == "1" and item.release == "1"
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)