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"'