From c56a453e5644569089c64459b4451a116408b61b Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 23 May 2023 00:35:59 +0200 Subject: [PATCH] Merge list in right order --- playbook.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/playbook.yml b/playbook.yml index 267cd16..6535d14 100644 --- a/playbook.yml +++ b/playbook.yml @@ -9,22 +9,22 @@ - name: Merge Sway output variable ansible.builtin.set_fact: - sway_outputs: '{{ local_sway_outputs | - community.general.lists_mergeby(sway_outputs, "id") }}' + sway_outputs: '{{ sway_outputs | + community.general.lists_mergeby(local_sway_outputs, "id") }}' when: local_sway_outputs is defined - name: Merge Sway input variable ansible.builtin.set_fact: - sway_inputs: '{{ local_sway_inputs | - community.general.lists_mergeby( sway_inputs, "name" ) }}' + sway_inputs: '{{ sway_inputs | + community.general.lists_mergeby( local_sway_inputs, "name" ) }}' when: local_sway_inputs is defined - name: Merge Kanshi profiles variable ansible.builtin.set_fact: - kanshi_profiles: '{{ local_kanshi_profiles | - community.general.lists_mergeby(kanshi_profiles, "profile") }}' + kanshi_profiles: '{{ kanshi_profiles | + community.general.lists_mergeby(local_kanshi_profiles, "profile") }}' when: local_kanshi_profiles is defined - + - name: Install CLI stuff hosts: all tasks: