logic refined

This commit is contained in:
rene committed 2025-10-02 09:42:57 +02:00
1 parent 46b4eeb83c
commit 9bb61f8b96
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@
include_role:
name: bastionhost
tasks_from: system_setup/aide_update.yml
when: aide_db_needs_update is defined and aide_db_needs_update
when: (aide_db_needs_update is defined and aide_db_needs_update) and (aide_db is defined and aide_db.stat.exists)
- hosts: nameserver
tags: server,nameserver
@@ -10,6 +10,7 @@
stat:
path: /var/lib/aide/aide.db
register: aide_db
check_mode: no # Always run this check
- name: system setup | aide | initialize aide database if it does not exist
tags: aide,hardening,system