Role - aide

Role Documentation

Welcome to the “aide” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “aide” role.

# All variables intended for modification should be placed in this file.

# Packages installed on the local system. Allows user to define this list
# otherwise it will inherit from the OS specific variable file(s).
aide_debug: '{{ ((ansible_verbosity | int) >= 2) | bool }}'
aide_system_packages: '{{ _aide_system_packages | default([]) }}'

# A hash of Aide rules
aide_rules: {}

# Aide configuration file
aide_conf_path: /etc/aide.conf

# Aide integrity database location
aide_db_path: /var/lib/aide/aide.db

# Aide integrity database temp location
aide_db_temp_path: /var/lib/aide/aide.db.new

# User which creates and runs the cron job for aide
aide_cron_user: root

# Hour value for Cron Job
aide_hour: 11

# Minute value for Cron Job
aide_minute: 30

# Email address to send reports on Cron Job
aide_email: ''

# Full POSIX path to mail binary
aide_mua_path: /bin/mail

Role Variables: redhat.yml

_aide_system_packages:
- aide

Molecule Scenarios

Molecule is being used to test the “aide” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      centos:
        ansible_python_interpreter: /usr/bin/python3
Example default playbook
- name: Converge
  hosts: all
  roles:
  - role: aide
  post_tasks:
  - include_role:
      name: aide    # Role is include as a post task to test upgrade logic