Finish harden so that CUPS gets disabled. Add to local.yml. Change localhost to all to avoid warnings.

This commit is contained in:
Hyperling 2020-12-21 18:18:26 -06:00
parent 4c0af3cdc9
commit ed6b5d5fad
2 changed files with 11 additions and 5 deletions

View File

@ -1,16 +1,13 @@
---
# Harmonize my systems rather than doing everything manually. :)
- hosts: localhost
- hosts: all
connection: local
become: true
tasks:
- include: tasks/users.yml
- include: tasks/cron.yml
- include: tasks/packages.yml
when: ansible_distribution == "Ubuntu"
- include: tasks/flatpaks.yml
when: ansible_distribution == "Pop!_OS"
- include: tasks/harden.yml
- hosts: workstation
become: true

9
tasks/harden.yml Normal file
View File

@ -0,0 +1,9 @@
- name: Remove CUPS Daemon
service:
name: cupsd
state: stopped, disabled
- name: Remove CUPS-Browse Daemon
service:
name: cupsd
state: stopped, disabled