ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_check_cron.yml ************************************************* 1 plays in /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml PLAY [Ensure that the cron is set up] ****************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:3 Thursday 29 May 2025 07:53:31 -0400 (0:00:00.018) 0:00:00.018 ********** ok: [managed-node1] META: ran handlers TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:9 Thursday 29 May 2025 07:53:32 -0400 (0:00:01.073) 0:00:01.091 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:14 Thursday 29 May 2025 07:53:33 -0400 (0:00:00.418) 0:00:01.510 ********** ok: [managed-node1] => { "ansible_facts": { "__aide_is_ostree": false }, "changed": false } TASK [Install crontabs] ******************************************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:18 Thursday 29 May 2025 07:53:33 -0400 (0:00:00.050) 0:00:01.560 ********** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create tempfile for crontab backup] ************************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:24 Thursday 29 May 2025 07:53:47 -0400 (0:00:14.615) 0:00:16.176 ********** changed: [managed-node1] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/aide_s96zfvbo_crontab", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [Backup crontab] ********************************************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:30 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.397) 0:00:16.574 ********** changed: [managed-node1] => { "changed": true, "checksum": "09767e814c22a93daba80e274dcbe00e0e7a8b99", "dest": "/tmp/aide_s96zfvbo_crontab", "gid": 0, "group": "root", "md5sum": "c39252b11aad842fcb75e05c6a27eef8", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 451, "src": "/etc/crontab", "state": "file", "uid": 0 } TASK [Run the role and set up cron] ******************************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:39 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.438) 0:00:17.012 ********** TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.033) 0:00:17.045 ********** included: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.aide : Ensure ansible_facts used by role] ****** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.022) 0:00:17.067 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Check if system is ostree] ************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:10 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.033) 0:00:17.101 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set flag to indicate system is ostree] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:15 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.032) 0:00:17.134 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.031) 0:00:17.165 ********** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Ensure required packages are installed] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 Thursday 29 May 2025 07:53:48 -0400 (0:00:00.051) 0:00:17.216 ********** changed: [managed-node1] => { "changed": true, "rc": 0, "results": [ "Installed: aide-0.16-14.el8_5.1.x86_64" ] } TASK [fedora.linux_system_roles.aide : Ensure required services are enabled and started] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:13 Thursday 29 May 2025 07:53:52 -0400 (0:00:03.937) 0:00:21.153 ********** TASK [fedora.linux_system_roles.aide : Generate "/etc/aide.conf"] ************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:20 Thursday 29 May 2025 07:53:52 -0400 (0:00:00.052) 0:00:21.206 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Initialize AIDE database] *************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:33 Thursday 29 May 2025 07:53:52 -0400 (0:00:00.015) 0:00:21.222 ********** changed: [managed-node1] => { "changed": true, "cmd": [ "aide", "--init" ], "delta": "0:00:47.086762", "end": "2025-05-29 07:54:40.223216", "rc": 0, "start": "2025-05-29 07:53:53.136454" } STDOUT: Start timestamp: 2025-05-29 07:53:53 -0400 (AIDE 0.16) AIDE initialized database at /var/lib/aide/aide.db.new.gz Number of entries: 55426 --------------------------------------------------- The attributes of the (uncompressed) database(s): --------------------------------------------------- /var/lib/aide/aide.db.new.gz MD5 : SOSRS2+0Sl0YvMdWKDENVQ== SHA1 : 6ELM1hAe/Pan79/rfm24XNOHv4M= RMD160 : H1mkROGDf9A4vP7mOnpamW0pprw= TIGER : ckHDjoNJzq1ycBlkfSJNODmnGPrFaqt+ SHA256 : xzG0GrvGdFhXsoBOeZ7s4BA1xU2ltO1a hvIh4e0Y++8= SHA512 : tgXt84OYIlLdYWTv2/B2rD05+jGSOqnq KiJMcWfHiF0FUwOzk17oVtlFBEiJPEum /rqkV9zmilJMpchT4apfUg== End timestamp: 2025-05-29 07:54:40 -0400 (run time: 0m 47s) TASK [fedora.linux_system_roles.aide : Copy AIDE reference database] *********** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:38 Thursday 29 May 2025 07:54:40 -0400 (0:00:47.522) 0:01:08.744 ********** changed: [managed-node1] => { "changed": true, "checksum": "de756efb5a86c9872bc4411e77e7abbaf278898c", "dest": "/var/lib/aide/aide.db.gz", "gid": 0, "group": "root", "md5sum": "750fe0229e1b3a641b2c948f962773f8", "mode": "0440", "owner": "root", "secontext": "system_u:object_r:aide_db_t:s0", "size": 3092077, "src": "/var/lib/aide/aide.db.new.gz", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:49 Thursday 29 May 2025 07:54:40 -0400 (0:00:00.349) 0:01:09.094 ********** changed: [managed-node1] => { "changed": true, "path": "/var/lib/aide/aide.db.new.gz", "state": "absent" } TASK [fedora.linux_system_roles.aide : Fetch AIDE database] ******************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:58 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.441) 0:01:09.536 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:63 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.021) 0:01:09.558 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Copy AIDE reference database] *********** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:71 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.024) 0:01:09.582 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Check against AIDE reference database] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:81 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.020) 0:01:09.603 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Update AIDE database] ******************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:89 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.021) 0:01:09.624 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Fetch AIDE database] ******************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:99 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.025) 0:01:09.650 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:104 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.025) 0:01:09.675 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Update aide check cron configuration if necessary] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:109 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.040) 0:01:09.716 ********** changed: [managed-node1] => { "backup": "", "changed": true } MSG: line added TASK [fedora.linux_system_roles.aide : Remove aide check cron configuration if necessary] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:118 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.480) 0:01:10.196 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check file content] ****************************************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:47 Thursday 29 May 2025 07:54:41 -0400 (0:00:00.024) 0:01:10.221 ********** ok: [managed-node1] => { "backup": "", "changed": false, "failed_when_result": false } TASK [Run the role and and do not touch cron] ********************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:56 Thursday 29 May 2025 07:54:42 -0400 (0:00:00.354) 0:01:10.576 ********** TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 Thursday 29 May 2025 07:54:42 -0400 (0:00:00.038) 0:01:10.614 ********** included: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.aide : Ensure ansible_facts used by role] ****** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Thursday 29 May 2025 07:54:42 -0400 (0:00:00.019) 0:01:10.634 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Check if system is ostree] ************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:10 Thursday 29 May 2025 07:54:42 -0400 (0:00:00.015) 0:01:10.649 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set flag to indicate system is ostree] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:15 Thursday 29 May 2025 07:54:42 -0400 (0:00:00.013) 0:01:10.663 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19 Thursday 29 May 2025 07:54:42 -0400 (0:00:00.014) 0:01:10.677 ********** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Ensure required packages are installed] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 Thursday 29 May 2025 07:54:42 -0400 (0:00:00.032) 0:01:10.710 ********** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.aide : Ensure required services are enabled and started] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:13 Thursday 29 May 2025 07:54:45 -0400 (0:00:02.825) 0:01:13.535 ********** TASK [fedora.linux_system_roles.aide : Generate "/etc/aide.conf"] ************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:20 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.549 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Initialize AIDE database] *************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:33 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.014) 0:01:13.564 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Copy AIDE reference database] *********** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:38 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.014) 0:01:13.578 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:49 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.591 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Fetch AIDE database] ******************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:58 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.605 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:63 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.619 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Copy AIDE reference database] *********** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:71 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.632 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Check against AIDE reference database] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:81 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.645 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Update AIDE database] ******************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:89 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.012) 0:01:13.658 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Fetch AIDE database] ******************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:99 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.012) 0:01:13.671 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:104 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.685 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Update aide check cron configuration if necessary] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:109 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.699 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove aide check cron configuration if necessary] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:118 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.012) 0:01:13.712 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure file is not changed] ********************************************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:62 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.013) 0:01:13.725 ********** ok: [managed-node1] => { "backup": "", "changed": false, "failed_when_result": false } TASK [Run the role and disable cron] ******************************************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:71 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.323) 0:01:14.048 ********** TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.047) 0:01:14.096 ********** included: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.aide : Ensure ansible_facts used by role] ****** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.019) 0:01:14.115 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Check if system is ostree] ************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:10 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.016) 0:01:14.131 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set flag to indicate system is ostree] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:15 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.014) 0:01:14.146 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.014) 0:01:14.161 ********** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Ensure required packages are installed] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 Thursday 29 May 2025 07:54:45 -0400 (0:00:00.033) 0:01:14.194 ********** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.aide : Ensure required services are enabled and started] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:13 Thursday 29 May 2025 07:54:48 -0400 (0:00:02.829) 0:01:17.024 ********** TASK [fedora.linux_system_roles.aide : Generate "/etc/aide.conf"] ************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:20 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.023) 0:01:17.047 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Initialize AIDE database] *************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:33 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.026) 0:01:17.073 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Copy AIDE reference database] *********** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:38 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.023) 0:01:17.097 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:49 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.014) 0:01:17.112 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Fetch AIDE database] ******************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:58 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.015) 0:01:17.127 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:63 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.020) 0:01:17.148 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Copy AIDE reference database] *********** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:71 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.013) 0:01:17.161 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Check against AIDE reference database] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:81 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.017) 0:01:17.179 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Update AIDE database] ******************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:89 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.014) 0:01:17.193 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Fetch AIDE database] ******************** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:99 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.013) 0:01:17.207 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove remote AIDE database file] ******* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:104 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.013) 0:01:17.221 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Update aide check cron configuration if necessary] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:109 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.013) 0:01:17.234 ********** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Remove aide check cron configuration if necessary] *** task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:118 Thursday 29 May 2025 07:54:48 -0400 (0:00:00.014) 0:01:17.249 ********** changed: [managed-node1] => { "backup": "", "changed": true, "found": 1 } MSG: 1 line(s) removed TASK [Ensure aide cron is removed] ********************************************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:77 Thursday 29 May 2025 07:54:49 -0400 (0:00:00.357) 0:01:17.606 ********** changed: [managed-node1] => { "backup": "", "changed": true, "failed_when_result": false } MSG: line added TASK [Restore crontab] ********************************************************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:87 Thursday 29 May 2025 07:54:49 -0400 (0:00:00.344) 0:01:17.951 ********** changed: [managed-node1] => { "changed": true, "checksum": "09767e814c22a93daba80e274dcbe00e0e7a8b99", "dest": "/etc/crontab", "gid": 0, "group": "root", "md5sum": "c39252b11aad842fcb75e05c6a27eef8", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:system_cron_spool_t:s0", "size": 451, "src": "/tmp/aide_s96zfvbo_crontab", "state": "file", "uid": 0 } TASK [Delete tempfile] ********************************************************* task path: /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:94 Thursday 29 May 2025 07:54:49 -0400 (0:00:00.331) 0:01:18.283 ********** changed: [managed-node1] => { "changed": true, "path": "/tmp/aide_s96zfvbo_crontab", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node1 : ok=22 changed=11 unreachable=0 failed=0 skipped=49 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Thursday 29 May 2025 07:54:50 -0400 (0:00:00.427) 0:01:18.710 ********** =============================================================================== fedora.linux_system_roles.aide : Initialize AIDE database -------------- 47.52s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:33 Install crontabs ------------------------------------------------------- 14.62s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:18 fedora.linux_system_roles.aide : Ensure required packages are installed --- 3.94s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 fedora.linux_system_roles.aide : Ensure required packages are installed --- 2.83s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 fedora.linux_system_roles.aide : Ensure required packages are installed --- 2.83s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 Gathering Facts --------------------------------------------------------- 1.07s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:3 fedora.linux_system_roles.aide : Update aide check cron configuration if necessary --- 0.48s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:109 fedora.linux_system_roles.aide : Remove remote AIDE database file ------- 0.44s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:49 Backup crontab ---------------------------------------------------------- 0.44s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:30 Delete tempfile --------------------------------------------------------- 0.43s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:94 Check if system is ostree ----------------------------------------------- 0.42s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:9 Create tempfile for crontab backup -------------------------------------- 0.40s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:24 fedora.linux_system_roles.aide : Remove aide check cron configuration if necessary --- 0.36s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:118 Check file content ------------------------------------------------------ 0.35s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:47 fedora.linux_system_roles.aide : Copy AIDE reference database ----------- 0.35s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:38 Ensure aide cron is removed --------------------------------------------- 0.34s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:77 Restore crontab --------------------------------------------------------- 0.33s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:87 Ensure file is not changed ---------------------------------------------- 0.32s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:62 fedora.linux_system_roles.aide : Ensure required services are enabled and started --- 0.05s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:13 fedora.linux_system_roles.aide : Set platform/version specific variables --- 0.05s /tmp/collections-HTB/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19