ansible_role_aide
Ansible role service manager
Managing aide.
License
MIT / BSD
Author Information
- Made and maintained by: Kasra Amirsarvari
- Ansible Galaxy community author: https://galaxy.ansible.com/caseraw
- Dockerhub community user: https://hub.docker.com/u/caseraw
Requirements
- Ensure a package manager is available and configured with the correct package sources and repositories.
- Ensure privileged permissions are set for the user executing this role to:
- Install packages.
- Manage service settings and configurations.
Dependencies
N/A
Compatibility
Compatible with the following list of operating systems:
- CentOS 7
- CentOS 8
- RHEL 7.x
- RHEL 8.x
Role Variables
Variable name | Description |
---|---|
role_aide_packages | A list of packages to install. |
role_aide_db | Path to aide db. |
role_aide_new | Path to new aide db. |
Example Playbook
---
- name: Manage aide
become: True
gather_facts: True
tasks:
- import_role:
name: ansible_role_aide
vars:
role_aide_packages:
- cronie
- aide
role_aide_db: /var/lib/aide/aide.db.gz
role_aide_new: /var/lib/aide/aide.db.new.gz
...
Useful shell commands
/usr/sbin/aide --init
/usr/sbin/aide --check
Additional documentation resources
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/sec-using-aide
- https://access.redhat.com/solutions/55021
Testing with Molecule
This role is locally tested with the use of Molecule, the configuration is located at: molecule/default.
The Molecule tests are run (using the docker driver) on Dockerhub images built for this purpose:
CI/CD with Travis CI
This role uses Travis CI to run online tests with the use of Molecule and pushes notifications to import the role into Ansible Galaxy once the tests are successful. The Travis CI configuration is located at the root of the Ansible role .travis.yml
Useful links
- GitHub repository: https://github.com/Caseraw/ansible_role_arpwatch
- Travis CI build status: https://travis-ci.org/Caseraw/ansible_role_arpwatch
- Ansible Galaxy role: https://galaxy.ansible.com/caseraw/ansible_role_arpwatch