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 17:15:37 -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 18:02:37 -06:00
|
|
|
- include: tasks/general/packages.yml
|
|
|
|
- include: tasks/general/groups.yml
|
|
|
|
- include: tasks/general/users.yml
|
|
|
|
- include: tasks/general/cron.yml
|
|
|
|
- include: tasks/general/sudo.yml
|
|
|
|
- include: tasks/general/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:
|
2021-01-31 18:02:37 -06:00
|
|
|
- include: tasks/linux/flatpaks.yml
|
2021-01-31 15:38:46 -06:00
|
|
|
when: ansible_system == "Linux" and
|
2021-02-01 03:52:26 -06:00
|
|
|
flatpak_distro == "true"
|
2021-01-31 15:38:46 -06:00
|
|
|
- shell: echo "Not implemented yet. :("
|
|
|
|
when: ansible_system == "Linux" and
|
2021-02-01 03:52:26 -06:00
|
|
|
flatpak_distro != "true"
|
2021-01-31 18:02: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:
|
2021-01-31 18:02:37 -06:00
|
|
|
- include: tasks/general/hardness_check_lynis.yml
|