ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file 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 '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_purge_reset.yml ************************************************ 1 plays in /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml PLAY [Test purge and reset functionality] ************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml:5 ok: [managed-node1] META: ran handlers TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml:14 ok: [managed-node1] => {"changed": false, "stat": {"exists": false}} TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml:19 ok: [managed-node1] => {"ansible_facts": {"__logging_is_ostree": false}, "changed": false} TASK [Ensure rsyslog is installed] ********************************************* task path: /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml:23 ok: [managed-node1] => {"changed": false, "msg": "", "rc": 0, "results": ["rsyslog-8.24.0-57.el7_9.3.x86_64 providing rsyslog is already installed"]} TASK [Create some unowned config files] **************************************** task path: /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml:29 changed: [managed-node1] => (item=/etc/rsyslog.d/unowned1.conf) => {"ansible_loop_var": "item", "changed": true, "checksum": "955ea50353a912dbfc521998b7bccd052cb36025", "dest": "/etc/rsyslog.d/unowned1.conf", "gid": 0, "group": "root", "item": "/etc/rsyslog.d/unowned1.conf", "md5sum": "bf351d9ebfd1b2cf439a6b96503e93e4", "mode": "0444", "owner": "root", "secontext": "system_u:object_r:syslog_conf_t:s0", "size": 43, "src": "/root/.ansible/tmp/ansible-tmp-1727202387.0-10671-211190618822274/source", "state": "file", "uid": 0} changed: [managed-node1] => (item=/etc/rsyslog.d/unowned2.conf) => {"ansible_loop_var": "item", "changed": true, "checksum": "1fcf3dc9a3c8f4f5d82b93e25d7011794c0a8d44", "dest": "/etc/rsyslog.d/unowned2.conf", "gid": 0, "group": "root", "item": "/etc/rsyslog.d/unowned2.conf", "md5sum": "4f6d68ea6732e391636ebeadd375415e", "mode": "0444", "owner": "root", "secontext": "system_u:object_r:syslog_conf_t:s0", "size": 43, "src": "/root/.ansible/tmp/ansible-tmp-1727202387.59-10671-8356223547345/source", "state": "file", "uid": 0} TASK [Modify /etc/rsyslog.conf] ************************************************ task path: /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml:38 changed: [managed-node1] => {"backup": "", "changed": true, "msg": "line added"} TASK [Configure with basics + purge] ******************************************* task path: /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml:45 ERROR! the role 'fedora.linux_system_roles.logging' was not found in /tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging The error appears to be in '/tmp/collections-1TJ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_purge_reset.yml': line 52, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.logging ^ here PLAY RECAP ********************************************************************* managed-node1 : ok=6 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0