From cb126dcc0bd9fa6dc78ed7a3011fe491f9de9fe8 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 31 Jan 2021 14:24:09 -0600 Subject: [PATCH] Split UI into Linux vs FreeBSD to avoid "local.yml, line 25, column 3, found a duplicate dict key (tasks). Using last defined value only." --- local.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/local.yml b/local.yml index efb0a64..f81131a 100644 --- a/local.yml +++ b/local.yml @@ -21,19 +21,25 @@ ignore_errors: yes -# Desktops and laptops +# Linux Desktops and laptops - name: UI Setup hosts: workstation connection: local become: true + when: ansible_distribution != "FreeBSD" tasks: - include: tasks/flatpaks.yml - when: ansible_distribution != "FreeBSD" + +# FreeBSD Desktops and laptops +- name: FreeBSD UI Setup + hosts: workstation + connection: local + become: true + when: ansible_distribution == "FreeBSD" tasks: - include: tasks/freebsd_gui.yml - when: ansible_distribution == "FreeBSD" # Run hardness checks