renamed handler
This commit is contained in:
@@ -48,11 +48,11 @@
|
||||
- name: pre-run | upgrade system (debian, ubuntu, etc.)
|
||||
apt: upgrade=dist
|
||||
#changed_when: false
|
||||
notify: update aide database
|
||||
notify: Update_aide_database
|
||||
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
|
||||
- name: pre-run | upgrade system (arch)
|
||||
pacman: upgrade=true
|
||||
notify: update aide database
|
||||
notify: Update_aide_database
|
||||
when: ansible_distribution == 'Archlinux'
|
||||
|
||||
# run roles
|
||||
|
||||
2
main.yml
2
main.yml
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: update aide database
|
||||
- name: Update_aide_database
|
||||
block: # This block is now a task within the handler
|
||||
- name: system setup | aide | run aide --update to check for legitimate changes
|
||||
tags: aide,hardening,system
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: update aide database
|
||||
- name: Update_aide_database
|
||||
tags: aide,hardening,system
|
||||
block:
|
||||
- name: system setup | aide | run aide --update to check for legitimate changes
|
||||
|
||||
@@ -35,4 +35,4 @@
|
||||
Match User lowpriv,sshjumpuser
|
||||
AllowAgentForwarding yes
|
||||
AllowTcpForwarding yes
|
||||
notify: [ "restart_sshd", "update aide database" ]
|
||||
notify: [ "restart_sshd", "Update_aide_database" ]
|
||||
@@ -22,7 +22,7 @@
|
||||
- fortune-mod
|
||||
state: absent
|
||||
purge: true # Also removes configuration files
|
||||
notify: update aide database
|
||||
notify: Update_aide_database
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: system setup | package hardening | remove unnecessary packages (RedHat family)
|
||||
@@ -38,5 +38,5 @@
|
||||
- cups*
|
||||
- avahi
|
||||
state: absent
|
||||
notify: update aide database
|
||||
notify: Update_aide_database
|
||||
when: ansible_os_family == "RedHat"
|
||||
@@ -20,5 +20,5 @@
|
||||
- irc
|
||||
- gnats
|
||||
- games
|
||||
notify: update aide database
|
||||
notify: Update_aide_database
|
||||
ignore_errors: true # Some users might not exist, which is fine
|
||||
Reference in New Issue
Block a user