2020-12-21 04:19:21 -06:00
|
|
|
---
|
|
|
|
# Harmonize my systems rather than doing everything manually. :)
|
2020-12-28 18:37:37 -06:00
|
|
|
|
2020-12-28 20:06:41 -06:00
|
|
|
# Everything
|
2020-12-31 18:00:53 -06:00
|
|
|
- name: Initial Setup
|
2020-12-31 18:07:49 -06:00
|
|
|
hosts: all, localhost
|
2020-12-31 17:52:45 -06:00
|
|
|
connection: local
|
2020-12-28 20:06:41 -06:00
|
|
|
become: true
|
|
|
|
|
|
|
|
pre_tasks:
|
2021-01-31 14:44:57 -06:00
|
|
|
- include: facts/system.yml
|
|
|
|
- include: facts/package.yml
|
|
|
|
- include: facts/service.yml
|
|
|
|
- include: facts/user.yml
|
2020-12-28 20:06:41 -06:00
|
|
|
|
2020-12-21 04:19:21 -06:00
|
|
|
tasks:
|
2021-01-31 13:11:40 -06:00
|
|
|
- include: tasks/packages.yml
|
2020-12-21 04:52:37 -06:00
|
|
|
- include: tasks/users.yml
|
|
|
|
- include: tasks/cron.yml
|
2020-12-21 18:18:26 -06:00
|
|
|
- include: tasks/harden.yml
|
2021-01-31 13:19:35 -06:00
|
|
|
ignore_errors: yes
|
2020-12-21 05:50:12 -06:00
|
|
|
|
2020-12-28 20:06:41 -06:00
|
|
|
|
2021-01-31 15:38:46 -06:00
|
|
|
# Workstations
|
2020-12-31 18:00:53 -06:00
|
|
|
- name: UI Setup
|
|
|
|
hosts: workstation
|
|
|
|
connection: local
|
2020-12-21 05:44:28 -06:00
|
|
|
become: true
|
2020-12-28 20:06:41 -06:00
|
|
|
|
2020-12-21 05:44:28 -06:00
|
|
|
tasks:
|
2020-12-21 05:25:19 -06:00
|
|
|
- include: tasks/flatpaks.yml
|
2021-01-31 15:38:46 -06:00
|
|
|
when: ansible_system == "Linux" and
|
2021-01-31 15:58:21 -06:00
|
|
|
flatpak_distro == yes
|
2021-01-31 15:38:46 -06:00
|
|
|
- shell: echo "Not implemented yet. :("
|
|
|
|
when: ansible_system == "Linux" and
|
2021-01-31 15:58:21 -06:00
|
|
|
flatpak_distro == no
|
2021-01-31 12:58:37 -06:00
|
|
|
- include: tasks/freebsd_gui.yml
|
2021-01-31 15:38:46 -06:00
|
|
|
when: ansible_system == "FreeBSD"
|
2020-12-28 20:57:05 -06:00
|
|
|
|
|
|
|
|
2021-01-31 14:30:08 -06:00
|
|
|
# Run Hardness Checks
|
2020-12-31 18:00:53 -06:00
|
|
|
- name: Hardening Check
|
|
|
|
hosts: all, localhost
|
|
|
|
connection: local
|
2020-12-28 20:57:05 -06:00
|
|
|
become: true
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- include: tasks/hardness_check_lynis.yml
|