2020-12-21 04:19:21 -06:00
|
|
|
---
|
|
|
|
# Harmonize my systems rather than doing everything manually. :)
|
2020-12-28 18:37:37 -06:00
|
|
|
|
2021-02-02 21:34:08 -06:00
|
|
|
# Setup of any device connected to this repo.
|
2021-02-02 21:31:45 -06:00
|
|
|
- name: Main | Default Setup
|
2021-02-01 08:20:03 -06:00
|
|
|
hosts: localhost
|
2020-12-31 17:52:45 -06:00
|
|
|
connection: local
|
2020-12-28 20:06:41 -06:00
|
|
|
become: true
|
|
|
|
|
|
|
|
pre_tasks:
|
2021-02-01 08:28:12 -06:00
|
|
|
- include: facts/general/system.yml
|
|
|
|
- include: facts/general/package.yml
|
|
|
|
- include: facts/general/service.yml
|
|
|
|
- include: facts/general/user.yml
|
2020-12-28 20:06:41 -06:00
|
|
|
|
2020-12-21 04:19:21 -06:00
|
|
|
tasks:
|
2021-02-01 05:03:27 -06:00
|
|
|
- include: tasks/general/software/packages.yml
|
2021-02-02 21:05:46 -06:00
|
|
|
|
|
|
|
- include: facts/general/gather.yml
|
2021-02-01 05:03:27 -06:00
|
|
|
|
|
|
|
- include: tasks/general/acct_mgmt/groups.yml
|
|
|
|
- include: tasks/general/acct_mgmt/users.yml
|
|
|
|
- include: tasks/general/acct_mgmt/sudo.yml
|
2021-02-01 06:52:28 -06:00
|
|
|
- include: tasks/general/acct_mgmt/keys.yml
|
2021-02-01 05:03:27 -06:00
|
|
|
- include: tasks/general/acct_mgmt/mounts.yml
|
|
|
|
|
|
|
|
- include: tasks/general/cron/ansible.yml
|
2020-12-21 05:50:12 -06:00
|
|
|
|
2021-02-02 21:05:46 -06:00
|
|
|
- include: tasks/general/software/harden.yml
|
|
|
|
ignore_errors: yes
|
|
|
|
|
2020-12-28 20:06:41 -06:00
|
|
|
|
2021-02-02 21:34:08 -06:00
|
|
|
# Additional setup for systems with GUI.
|
2021-02-02 21:31:45 -06:00
|
|
|
- name: Main | Workstation UI Setup
|
2020-12-31 18:00:53 -06:00
|
|
|
hosts: workstation
|
|
|
|
connection: local
|
2020-12-21 05:44:28 -06:00
|
|
|
become: true
|
2020-12-28 20:06:41 -06:00
|
|
|
|
2021-02-01 08:28:12 -06:00
|
|
|
pre_tasks:
|
|
|
|
- include: facts/workstation/system.yml
|
|
|
|
- include: facts/workstation/package.yml
|
|
|
|
|
2020-12-21 05:44:28 -06:00
|
|
|
tasks:
|
2021-02-01 05:03:27 -06:00
|
|
|
- include: tasks/linux/software/flatpaks.yml
|
2021-01-31 15:38:46 -06:00
|
|
|
when: ansible_system == "Linux" and
|
2021-02-02 21:44:56 -06:00
|
|
|
flatpak_distro == "yes sir"
|
2021-02-02 21:40:46 -06:00
|
|
|
- name: Worktation | Linux | Packages | Not Implemented
|
|
|
|
shell: echo "Not implemented yet. :("
|
2021-01-31 15:38:46 -06:00
|
|
|
when: ansible_system == "Linux" and
|
2021-02-02 21:44:56 -06:00
|
|
|
flatpak_distro != "yes sir"
|
2021-02-01 05:03:27 -06:00
|
|
|
|
|
|
|
- include: tasks/freebsd/software/gui.yml
|
2021-01-31 15:38:46 -06:00
|
|
|
when: ansible_system == "FreeBSD"
|
2020-12-28 20:57:05 -06:00
|
|
|
|
|
|
|
|
2021-02-02 21:34:08 -06:00
|
|
|
# Create reports to analyze security.
|
|
|
|
- name: Main | Hardness Tests
|
2021-02-01 08:20:03 -06:00
|
|
|
hosts: localhost
|
2020-12-31 18:00:53 -06:00
|
|
|
connection: local
|
2020-12-28 20:57:05 -06:00
|
|
|
become: true
|
|
|
|
|
|
|
|
tasks:
|
2021-02-02 21:34:08 -06:00
|
|
|
- include: tasks/general/tests/lynis.yml
|