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