FreeBSD and QoL changes.

This commit is contained in:
Hyperling 2021-01-31 12:58:37 -06:00
parent 2f0b319242
commit 537a0f59ca
6 changed files with 25 additions and 1 deletions

View File

@ -1,2 +1,3 @@
[defaults] [defaults]
inventory = hosts inventory = hosts
localhost_warning = False

View File

@ -5,6 +5,7 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
firefox: firefox firefox: firefox
thunderbird: thunderbird thunderbird: thunderbird
evolution: evolution
when: ansible_distribution == "Pop!_OS" when: ansible_distribution == "Pop!_OS"
@ -13,6 +14,7 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
firefox: firefox firefox: firefox
thunderbird: thunderbird thunderbird: thunderbird
evolution: evolution
when: ansible_distribution == "Ubuntu" when: ansible_distribution == "Ubuntu"
@ -21,4 +23,5 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
firefox: firefox firefox: firefox
thunderbird: thunderbird thunderbird: thunderbird
evolution: evolution
when: ansible_distribution == "FreeBSD" when: ansible_distribution == "FreeBSD"

1
hosts
View File

@ -1,6 +1,5 @@
[workstation] [workstation]
x570 x570
dell
dell-laptop dell-laptop
[server] [server]

View File

@ -27,6 +27,11 @@
tasks: tasks:
- include: tasks/flatpaks.yml - include: tasks/flatpaks.yml
when: ansible_distribution != "FreeBSD"
tasks:
- include: tasks/freebsd_gui.yml
when: ansible_distribution == "FreeBSD"
# Run hardness checks # Run hardness checks

View File

@ -34,4 +34,5 @@
name: name:
- "{{ firefox }}" - "{{ firefox }}"
- "{{ thunderbird }}" - "{{ thunderbird }}"
- "{{ evolution }}"
state: absent state: absent

15
tasks/freebsd_gui.yml Normal file
View File

@ -0,0 +1,15 @@
- name: Install FreeBSD UI Software
package:
name:
- xorg
- gnome3
- "{{ firefox }}"
- "{{ thunderbird }}"
update_cache: yes
- name: Uninstall Bloat
package:
name:
- "{{ evolution }}"
update_cache: yes
present: no