feat: add Suse support
This commit is contained in:
committed by
Richard Megginson
parent
22d787a281
commit
2a8586898c
+3
-3
@@ -110,8 +110,8 @@
|
|||||||
- name: Update aide check cron configuration if necessary
|
- name: Update aide check cron configuration if necessary
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/crontab
|
path: /etc/crontab
|
||||||
regexp: "^.* root /usr/sbin/aide --check"
|
regexp: "^.* root {{ __aide_bin_path }} --check"
|
||||||
line: "{{ aide_cron_interval }} root /usr/sbin/aide --check"
|
line: "{{ aide_cron_interval }} root {{ __aide_bin_path }} --check"
|
||||||
when:
|
when:
|
||||||
- aide_cron_check is not none
|
- aide_cron_check is not none
|
||||||
- aide_cron_check | bool
|
- aide_cron_check | bool
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/crontab
|
path: /etc/crontab
|
||||||
state: absent
|
state: absent
|
||||||
regexp: "^.* root /usr/sbin/aide --check"
|
regexp: "^.* root {{ __aide_bin_path }} --check"
|
||||||
when:
|
when:
|
||||||
- aide_cron_check is not none
|
- aide_cron_check is not none
|
||||||
- not aide_cron_check | bool
|
- not aide_cron_check | bool
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -10,6 +10,7 @@ __aide_packages: ["aide", "crontabs"]
|
|||||||
__aide_services: []
|
__aide_services: []
|
||||||
__aide_db_name: /var/lib/aide/aide.db.gz
|
__aide_db_name: /var/lib/aide/aide.db.gz
|
||||||
__aide_db_new_name: /var/lib/aide/aide.db.new.gz
|
__aide_db_new_name: /var/lib/aide/aide.db.new.gz
|
||||||
|
__aide_bin_path: /usr/sbin/aide
|
||||||
# ansible_facts required by the role
|
# ansible_facts required by the role
|
||||||
__aide_required_facts:
|
__aide_required_facts:
|
||||||
- distribution
|
- distribution
|
||||||
|
|||||||
Reference in New Issue
Block a user