Merge list in right order

This commit is contained in:
Yorick Barbanneau 2023-05-23 00:35:59 +02:00
parent 5524a3de3f
commit c56a453e56

View file

@ -9,22 +9,22 @@
- name: Merge Sway output variable - name: Merge Sway output variable
ansible.builtin.set_fact: ansible.builtin.set_fact:
sway_outputs: '{{ local_sway_outputs | sway_outputs: '{{ sway_outputs |
community.general.lists_mergeby(sway_outputs, "id") }}' community.general.lists_mergeby(local_sway_outputs, "id") }}'
when: local_sway_outputs is defined when: local_sway_outputs is defined
- name: Merge Sway input variable - name: Merge Sway input variable
ansible.builtin.set_fact: ansible.builtin.set_fact:
sway_inputs: '{{ local_sway_inputs | sway_inputs: '{{ sway_inputs |
community.general.lists_mergeby( sway_inputs, "name" ) }}' community.general.lists_mergeby( local_sway_inputs, "name" ) }}'
when: local_sway_inputs is defined when: local_sway_inputs is defined
- name: Merge Kanshi profiles variable - name: Merge Kanshi profiles variable
ansible.builtin.set_fact: ansible.builtin.set_fact:
kanshi_profiles: '{{ local_kanshi_profiles | kanshi_profiles: '{{ kanshi_profiles |
community.general.lists_mergeby(kanshi_profiles, "profile") }}' community.general.lists_mergeby(local_kanshi_profiles, "profile") }}'
when: local_kanshi_profiles is defined when: local_kanshi_profiles is defined
- name: Install CLI stuff - name: Install CLI stuff
hosts: all hosts: all
tasks: tasks: