env-ansible/local.yml

46 lines
941 B
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:
- include: facts/filesystem_names.yml
- include: facts/package_names.yml
- include: facts/service_names.yml
- include: facts/user_names.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
# Desktops and laptops
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
2021-01-31 13:04:26 -06:00
when: ansible_distribution != "FreeBSD"
2021-01-31 12:58:37 -06:00
tasks:
- include: tasks/freebsd_gui.yml
2021-01-31 13:04:26 -06:00
when: ansible_distribution == "FreeBSD"
# 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