ansible-lockdown / RHEL7-CIS

Ansible role for Red Hat 7 CIS Baseline
https://ansible-lockdown.readthedocs.io/en/latest/
MIT License
472 stars 303 forks source link

AIDE cron job setup 1.3.2 missing cron_file variable #316

Closed I-am-MoS closed 1 year ago

I-am-MoS commented 1 year ago

Describe the Issue AIDE cron setup missing the cron_file variable

Expected Behavior have the module use the variable that is set

Actual Behavior Just puts the cron into into the root cron, not a cron.d file

Control(s) Affected 1.3.2

Possible Solution add : cron_file: "{{ rhel7cis_aide_cron['cron_file'] }}"

To the rule when calling the cron module

I-am-MoS commented 1 year ago

Looks like it is also missing: user: "{{ rhel7cis_aide_cron['cron_user'] }}"

uk-bolly commented 1 year ago

hi @I-am-MoS

Thank you for taking the time to raise the issue and providing such a clear solution. I have now added this to a new PR which i hope will be approved this week into devel. This can then be merged to the main and a new release made.

Many thanks once again

uk-bolly