feat: add Suse support

This commit is contained in:
HVSharma12
2025-06-02 10:12:19 -06:00
committed by Richard Megginson
parent 22d787a281
commit 2a8586898c
3 changed files with 12 additions and 3 deletions
+3 -3
View File
@@ -110,8 +110,8 @@
- name: Update aide check cron configuration if necessary
ansible.builtin.lineinfile:
path: /etc/crontab
regexp: "^.* root /usr/sbin/aide --check"
line: "{{ aide_cron_interval }} root /usr/sbin/aide --check"
regexp: "^.* root {{ __aide_bin_path }} --check"
line: "{{ aide_cron_interval }} root {{ __aide_bin_path }} --check"
when:
- aide_cron_check is not none
- aide_cron_check | bool
@@ -120,7 +120,7 @@
ansible.builtin.lineinfile:
path: /etc/crontab
state: absent
regexp: "^.* root /usr/sbin/aide --check"
regexp: "^.* root {{ __aide_bin_path }} --check"
when:
- aide_cron_check is not none
- not aide_cron_check | bool
+8
View File
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: MIT
---
# Put internal variables here with Suse specific values.
__aide_packages: ["aide", "cron"]
__aide_db_name: /var/lib/aide/aide.db
__aide_db_new_name: /var/lib/aide/aide.db.new
__aide_bin_path: /usr/bin/aide
+1
View File
@@ -10,6 +10,7 @@ __aide_packages: ["aide", "crontabs"]
__aide_services: []
__aide_db_name: /var/lib/aide/aide.db.gz
__aide_db_new_name: /var/lib/aide/aide.db.new.gz
__aide_bin_path: /usr/sbin/aide
# ansible_facts required by the role
__aide_required_facts:
- distribution