logic changed
This commit is contained in:
10
local.yml
10
local.yml
@@ -48,11 +48,9 @@
|
||||
- name: pre-run | upgrade system (debian, ubuntu, etc.)
|
||||
apt: upgrade=dist
|
||||
#changed_when: false
|
||||
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
|
||||
when: ansible_distribution == 'Archlinux'
|
||||
|
||||
# run roles
|
||||
@@ -76,9 +74,17 @@
|
||||
|
||||
- hosts: bastionhost
|
||||
tags: server,bastionhost
|
||||
handlers:
|
||||
- import_tasks: global_handlers/global_handlers.yml
|
||||
become: true
|
||||
roles:
|
||||
- bastionhost
|
||||
post_tasks:
|
||||
- name: Update AIDE database if changes were made
|
||||
include_role:
|
||||
name: bastionhost
|
||||
tasks_from: system_setup/aide_update.yml
|
||||
when: aide_db_needs_update is defined and aide_db_needs_update
|
||||
|
||||
- hosts: nameserver
|
||||
tags: server,nameserver
|
||||
|
||||
Reference in New Issue
Block a user