logic changed

This commit is contained in:
2025-10-02 09:16:34 +02:00
parent 08ad24fa0f
commit b716c10477
3 changed files with 35 additions and 5 deletions

View File

@@ -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