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."
This commit is contained in:
Hyperling 2021-01-31 14:24:09 -06:00
parent ea096c01fe
commit cb126dcc0b

View File

@ -21,20 +21,26 @@
ignore_errors: yes
# Desktops and laptops
# Linux Desktops and laptops
- name: UI Setup
hosts: workstation
connection: local
become: true
tasks:
- include: tasks/flatpaks.yml
when: ansible_distribution != "FreeBSD"
tasks:
- include: tasks/freebsd_gui.yml
- include: tasks/flatpaks.yml
# FreeBSD Desktops and laptops
- name: FreeBSD UI Setup
hosts: workstation
connection: local
become: true
when: ansible_distribution == "FreeBSD"
tasks:
- include: tasks/freebsd_gui.yml
# Run hardness checks
- name: Hardening Check