ansible-playbook [core 2.16.15] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-7d7 executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', 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 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_check_cron.yml ************************************************* 1 plays in /tmp/collections-7d7/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-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:3 Tuesday 13 January 2026 18:33:30 -0500 (0:00:00.026) 0:00:00.026 ******* ok: [managed-node1] TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:9 Tuesday 13 January 2026 18:33:32 -0500 (0:00:01.312) 0:00:01.339 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:14 Tuesday 13 January 2026 18:33:32 -0500 (0:00:00.568) 0:00:01.907 ******* ok: [managed-node1] => { "ansible_facts": { "__aide_is_ostree": false }, "changed": false } TASK [Install crontabs] ******************************************************** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:18 Tuesday 13 January 2026 18:33:32 -0500 (0:00:00.052) 0:00:01.960 ******* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create tempfile for crontab backup] ************************************** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:24 Tuesday 13 January 2026 18:33:46 -0500 (0:00:13.857) 0:00:15.818 ******* changed: [managed-node1] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/aide__pqlcoh__crontab", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [Backup crontab] ********************************************************** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:30 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.402) 0:00:16.220 ******* changed: [managed-node1] => { "changed": true, "checksum": "09767e814c22a93daba80e274dcbe00e0e7a8b99", "dest": "/tmp/aide__pqlcoh__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-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:39 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.432) 0:00:16.653 ******* TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.032) 0:00:16.685 ******* included: /tmp/collections-7d7/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-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.017) 0:00:16.703 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "__aide_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Check if system is ostree] ************** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:10 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.031) 0:00:16.734 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "not __aide_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set flag to indicate system is ostree] *** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:15 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.015) 0:00:16.750 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "not __aide_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.014) 0:00:16.764 ******* skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.aide : Debug0] ********************************* task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:6 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.028) 0:00:16.793 ******* fatal: [managed-node1]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: 'ansible_distribution' is undefined. 'ansible_distribution' is undefined The error appears to be in '/tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml': line 6, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Debug0 ^ here TASK [Restore crontab] ********************************************************* task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:87 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.010) 0:00:16.804 ******* ok: [managed-node1] => { "changed": false, "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__pqlcoh__crontab", "state": "file", "uid": 0 } TASK [Delete tempfile] ********************************************************* task path: /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:94 Tuesday 13 January 2026 18:33:47 -0500 (0:00:00.330) 0:00:17.134 ******* changed: [managed-node1] => { "changed": true, "path": "/tmp/aide__pqlcoh__crontab", "state": "absent" } PLAY RECAP ********************************************************************* managed-node1 : ok=9 changed=3 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.16.15", "end_time": "2026-01-13T23:33:47.664104+00:00Z", "host": "managed-node1", "message": "The task includes an option with an undefined variable. The error was: 'ansible_distribution' is undefined. 'ansible_distribution' is undefined\n\nThe error appears to be in '/tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Debug0\n ^ here\n", "start_time": "2026-01-13T23:33:47.655579+00:00Z", "task_name": "Debug0", "task_path": "/tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:6" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 13 January 2026 18:33:48 -0500 (0:00:00.428) 0:00:17.562 ******* =============================================================================== Install crontabs ------------------------------------------------------- 13.86s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:18 Gathering Facts --------------------------------------------------------- 1.31s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:3 Check if system is ostree ----------------------------------------------- 0.57s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:9 Backup crontab ---------------------------------------------------------- 0.43s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:30 Delete tempfile --------------------------------------------------------- 0.43s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:94 Create tempfile for crontab backup -------------------------------------- 0.40s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:24 Restore crontab --------------------------------------------------------- 0.33s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:87 Set flag to indicate system is ostree ----------------------------------- 0.05s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:14 Run the role and set up cron -------------------------------------------- 0.03s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/tests/aide/tests_check_cron.yml:39 fedora.linux_system_roles.aide : Ensure ansible_facts used by role ------ 0.03s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 fedora.linux_system_roles.aide : Set platform/version specific variables --- 0.03s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19 fedora.linux_system_roles.aide : Set platform/version specific variables --- 0.02s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 fedora.linux_system_roles.aide : Check if system is ostree -------------- 0.02s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:10 fedora.linux_system_roles.aide : Set flag to indicate system is ostree --- 0.01s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:15 fedora.linux_system_roles.aide : Debug0 --------------------------------- 0.01s /tmp/collections-7d7/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:6 -- Logs begin at Tue 2026-01-13 18:15:28 EST, end at Tue 2026-01-13 18:33:48 EST. -- Jan 13 18:33:30 managed-node1 sshd[7063]: Accepted publickey for root from 10.31.13.60 port 51626 ssh2: ECDSA SHA256:rjhqzX5KaqzXYsTZo6kmAZj7ZMmmH5kf3nsf0VptwFQ Jan 13 18:33:30 managed-node1 systemd[1]: Started Session 7 of user root. -- Subject: Unit session-7.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-7.scope has finished starting up. -- -- The start-up result is done. Jan 13 18:33:30 managed-node1 systemd-logind[602]: New session 7 of user root. -- Subject: A new session 7 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 7 has been created for the user root. -- -- The leading process of the session is 7063. Jan 13 18:33:30 managed-node1 sshd[7063]: pam_unix(sshd:session): session opened for user root by (uid=0) Jan 13 18:33:31 managed-node1 platform-python[7208]: ansible-ansible.legacy.setup Invoked with gather_subset=['all'] gather_timeout=10 filter=[] fact_path=/etc/ansible/facts.d Jan 13 18:33:32 managed-node1 platform-python[7360]: ansible-stat Invoked with path=/run/ostree-booted follow=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Jan 13 18:33:33 managed-node1 platform-python[7483]: ansible-ansible.legacy.dnf Invoked with name=['crontabs'] state=present allow_downgrade=False autoremove=False bugfix=False cacheonly=False disable_gpg_check=False disable_plugin=[] disablerepo=[] download_only=False enable_plugin=[] enablerepo=[] exclude=[] installroot=/ install_repoquery=True install_weak_deps=True security=False skip_broken=False update_cache=False update_only=False validate_certs=True sslverify=True lock_timeout=30 allowerasing=False nobest=False use_backend=auto conf_file=None disable_excludes=None download_dir=None list=None releasever=None Jan 13 18:33:47 managed-node1 platform-python[7655]: ansible-tempfile Invoked with prefix=aide_ suffix=_crontab state=file path=None Jan 13 18:33:47 managed-node1 platform-python[7778]: ansible-ansible.legacy.copy Invoked with src=/etc/crontab dest=/tmp/aide__pqlcoh__crontab remote_src=True mode=preserve backup=False force=True follow=False unsafe_writes=False _original_basename=None content=NOT_LOGGING_PARAMETER validate=None directory_mode=None local_follow=None checksum=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Jan 13 18:33:47 managed-node1 platform-python[7903]: ansible-ansible.legacy.copy Invoked with src=/tmp/aide__pqlcoh__crontab dest=/etc/crontab remote_src=True mode=preserve backup=False force=True follow=False unsafe_writes=False _original_basename=None content=NOT_LOGGING_PARAMETER validate=None directory_mode=None local_follow=None checksum=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Jan 13 18:33:48 managed-node1 platform-python[8026]: ansible-file Invoked with path=/tmp/aide__pqlcoh__crontab state=absent recurse=False force=False follow=True modification_time_format=%Y%m%d%H%M.%S access_time_format=%Y%m%d%H%M.%S unsafe_writes=False _original_basename=None _diff_peek=None src=None modification_time=None access_time=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Jan 13 18:33:48 managed-node1 sshd[8047]: Accepted publickey for root from 10.31.13.60 port 50794 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Jan 13 18:33:48 managed-node1 systemd[1]: Started Session 8 of user root. -- Subject: Unit session-8.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-8.scope has finished starting up. -- -- The start-up result is done. Jan 13 18:33:48 managed-node1 systemd-logind[602]: New session 8 of user root. -- Subject: A new session 8 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 8 has been created for the user root. -- -- The leading process of the session is 8047. Jan 13 18:33:48 managed-node1 sshd[8047]: pam_unix(sshd:session): session opened for user root by (uid=0) Jan 13 18:33:48 managed-node1 sshd[8050]: Received disconnect from 10.31.13.60 port 50794:11: disconnected by user Jan 13 18:33:48 managed-node1 sshd[8050]: Disconnected from user root 10.31.13.60 port 50794 Jan 13 18:33:48 managed-node1 sshd[8047]: pam_unix(sshd:session): session closed for user root Jan 13 18:33:48 managed-node1 systemd[1]: session-8.scope: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit session-8.scope has successfully entered the 'dead' state. Jan 13 18:33:48 managed-node1 systemd-logind[602]: Session 8 logged out. Waiting for processes to exit. Jan 13 18:33:48 managed-node1 systemd-logind[602]: Removed session 8. -- Subject: Session 8 has been terminated -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 8 has been terminated. Jan 13 18:33:48 managed-node1 sshd[8071]: Accepted publickey for root from 10.31.13.60 port 50808 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Jan 13 18:33:48 managed-node1 systemd[1]: Started Session 9 of user root. -- Subject: Unit session-9.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-9.scope has finished starting up. -- -- The start-up result is done. Jan 13 18:33:48 managed-node1 systemd-logind[602]: New session 9 of user root. -- Subject: A new session 9 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 9 has been created for the user root. -- -- The leading process of the session is 8071. Jan 13 18:33:48 managed-node1 sshd[8071]: pam_unix(sshd:session): session opened for user root by (uid=0)