Skip to content

devops-works/ansible-auditd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-auditd

Installs auditd

Variables

Note that /etc/auditd/rules.d/98-custom.conf is always generated. If you change this file it will be overwritten by this role.

Testing

You can test this role using molecule and the docker driver (e.g. molecule test)

Examples

---
- name: Run
  hosts: all
  gather_facts: yes
  roles:
    - role: ansible-auditd
      auditd_local_rulesets: ["38-anssi","39-neo23x0"]
      auditd_source_rulesets: ["30-stig","41-containers"]
      auditd_custom_rules:
      - "-a exit,always -F arch=b64 -S unlink -S rmdir -S rename -k fschange"
      - "-a exit,always -F arch=b64 -S creat -S open -S openat -F exit=-EACCES -k fschange"
      - "-a exit,always -F arch=b64 -S truncate -S ftruncate -F exit=-EACCES -k fschange"

About

Auditd ansible role

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages