Skip to content

Commit

Permalink
Merge branch 'release/2.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed Dec 18, 2023
2 parents 7c38e0c + bd2ead0 commit 625b217
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@ Author Information
------------------

Akos Balla

External sources
----------------

Inspiration for the AIDE steps taken from [Andrew J. Huffman's Ansible role](https://github.com/ahuffman/ansible-aide)
5 changes: 5 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,8 @@
- name: Warn on passwords
ansible.builtin.debug:
msg: "!!!WARNING!!! All web UI admin passwords are set to the same as your admin user's password. For your own safety, change them before going live"
- name: Initialize aide database
ansible.builtin.command: /usr/sbin/aide -i
when: not aide_db_check.stat.exists
- name: Move new aide database into place
ansible.builtin.command: mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
23 changes: 23 additions & 0 deletions tasks/aide.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
- name: Check for existing aide database
ansible.builtin.stat:
path: /var/lib/aide/aide.db.gz
register: aide_db_check
changed_when: not aide_db_check.stat.exists
notify:
- Initialize aide database
- Move new aide database into place
- name: Ensure AIDE check is setup in crontab
ansible.builtin.cron:
special_time: daily
name: AIDE scheduled database checkup
backup: yes
user: root
state: present
job: /usr/sbin/aide --check
- name: Update AIDE database
when: aide_db_check.stat.exists
ansible.builtin.command: /usr/sbin/aide -u
register: aide_update
failed_when: aide_update.rc > 7
notify: Move new aide database into place
3 changes: 3 additions & 0 deletions tasks/os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@
create: yes
backup: yes
tags: ssl
- name: Configure AIDE
ansible.builtin.import_tasks: aide.yml
tags: aide
1 change: 1 addition & 0 deletions tasks/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
- perl-Proc-ProcessTable
- perl-CGI
- imapsync
- aide
# - php56-php-bcmath
# - php56-php-channel-horde
# - php56-php-horde-horde-lz4
Expand Down

0 comments on commit 625b217

Please sign in to comment.