env-ansible/local.yml

48 lines
1.0 KiB
YAML
Raw Normal View History

---
# 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
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
tasks:
- include: tasks/packages.yml
2020-12-21 04:52:37 -06:00
- include: tasks/users.yml
- include: tasks/cron.yml
- include: tasks/harden.yml
ignore_errors: yes
2020-12-28 20:06:41 -06:00
# Workstations
2020-12-31 18:00:53 -06:00
- name: UI Setup
hosts: workstation
connection: local
become: true
2020-12-28 20:06:41 -06:00
tasks:
2020-12-21 05:25:19 -06:00
- include: tasks/flatpaks.yml
when: ansible_system == "Linux" and
"{{ flatpak_distro }} == yes"
- shell: echo "Not implemented yet. :("
when: ansible_system == "Linux" and
"{{ flatpak_distro }} == no"
2021-01-31 12:58:37 -06:00
- include: tasks/freebsd_gui.yml
when: ansible_system == "FreeBSD"
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
become: true
tasks:
- include: tasks/hardness_check_lynis.yml