Skip to content
Snippets Groups Projects
Commit 483da56e authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

PE-specific variables merge

parent 91ac80d3
No related branches found
No related tags found
1 merge request!159FW_filters template reworked
Pipeline #88187 passed
...@@ -27,3 +27,15 @@ ...@@ -27,3 +27,15 @@
- name: Merge Nokia CPM filters - name: Merge Nokia CPM filters
ansible.builtin.set_fact: ansible.builtin.set_fact:
cpm_filters: "{{ lookup('community.general.merge_variables', 'cpmf__to_merge', pattern_type='suffix') }}" cpm_filters: "{{ lookup('community.general.merge_variables', 'cpmf__to_merge', pattern_type='suffix') }}"
- name: Prepare PE-specific vars
when: promote_to_pe | ansible.builtin.bool # FIX: check the exact verb / keyword
block:
- name: Merge Nokia PE CPM filters
ansible.builtin.set_fact:
pe_cpm: "{{ lookup('community.general.merge_variables', 'cpm_pe__to_merge') }}"
- name: Combine P and PE CPM filters
ansible.builtin.set_fact:
cpm_filters: "{{ [cpm_filters, pe_cpm] | community.general.lists_mergeby('family',
list_merge='append') }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment