env-ansible/local.yml

50 lines
1.1 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:
- 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/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
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:
- include: tasks/linux/flatpaks.yml
when: ansible_system == "Linux" and
flatpak_distro == "true"
- shell: echo "Not implemented yet. :("
when: ansible_system == "Linux" and
flatpak_distro != "true"
- 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/general/hardness_check_lynis.yml