env-ansible/local.yml
2020-12-31 18:07:49 -06:00

39 lines
741 B
YAML

---
# Harmonize my systems rather than doing everything manually. :)
# Everything
- name: Initial Setup
hosts: all, localhost
connection: local
become: true
pre_tasks:
- include: facts/filesystem_names.yml
- include: facts/package_names.yml
- include: facts/service_names.yml
tasks:
- include: tasks/users.yml
- include: tasks/cron.yml
- include: tasks/packages.yml
- include: tasks/harden.yml
# Desktops and laptops
- name: UI Setup
hosts: workstation
connection: local
become: true
tasks:
- include: tasks/flatpaks.yml
# Run hardness checks
- name: Hardening Check
hosts: all, localhost
connection: local
become: true
tasks:
- include: tasks/hardness_check_lynis.yml