From dffbe598b396e495d3b643ea20318df3d6c93ac2 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 17 Oct 2022 22:32:56 -0400 Subject: [PATCH] Split the sway conf files list into two variables so configs can be appended without having to re-define the default list. --- ansible/roles/sway/defaults/main.yaml | 2 +- ansible/roles/sway/tasks/peruser.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/sway/defaults/main.yaml b/ansible/roles/sway/defaults/main.yaml index 39d5c67..33a5734 100644 --- a/ansible/roles/sway/defaults/main.yaml +++ b/ansible/roles/sway/defaults/main.yaml @@ -1,4 +1,4 @@ -sway_conf_files: +default_sway_conf_files: - background - framework_input - base_hotkeys diff --git a/ansible/roles/sway/tasks/peruser.yaml b/ansible/roles/sway/tasks/peruser.yaml index 6527d27..5f815e4 100644 --- a/ansible/roles/sway/tasks/peruser.yaml +++ b/ansible/roles/sway/tasks/peruser.yaml @@ -47,7 +47,7 @@ mode: 0600 owner: "{{ account_name.stdout }}" group: "{{ group_name.stdout }}" - loop: "{{ sway_conf_files }}" + loop: "{{ sway_conf_files|default([]) + default_sway_conf_files }}" - import_tasks: tasks/peruser_freebsd.yaml when: 'os_flavor == "freebsd"'