ansible-lockdown / RHEL9-CIS

Ansible role for Red Hat 9 CIS Baseline
https://ansible-lockdown.readthedocs.io
MIT License
109 stars 86 forks source link

AIDE installation fails because database doesn't (yet) exist #197

Closed mark-tomich closed 2 months ago

mark-tomich commented 4 months ago

Describe the Issue copy AIDE DB step fails because /var/lib/aide/aide.db.new.gz is not yet created.

TASK [mindpointgroup.rhel9_cis : 1.3.1 | PATCH | Ensure AIDE is installed | Build AIDE DB] ***                                                                                                                 
ok: [<hostname>]                                                                                                                                                                         

TASK [mindpointgroup.rhel9_cis : 1.3.1 | PATCH | Ensure AIDE is installed | copy AIDE DB] ***                                                                                                                  
fatal: [<hostname>]: FAILED! => {"changed": false, "msg": "Source /var/lib/aide/aide.db.new.gz not found"}                                                                               

Expected Behavior Step succeeds.

Actual Behavior Step fails.

Control(s) Affected Application of 1.3.1

Environment (please complete the following information):

Additional Notes

Possible Solution Wait for the file to appear before attempting to copy it.

uk-bolly commented 2 months ago

hi @mark-tomich

This Issue has been merged to devel and into main branch. I will therefore close this issue. Please feel free to reopen if you feel its not as expected.

Many thanks again for your time

uk-bolly