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_backup.yml ***************************************************** 1 plays in /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_backup.yml PLAY [Test backups] ************************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_backup.yml:2 ok: [managed-node2] META: ran handlers TASK [Backup configuration files] ********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_backup.yml:9 included: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml for managed-node2 TASK [Setup] ******************************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:2 included: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml for managed-node2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:2 skipping: [managed-node2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 ok: [managed-node2] => {"changed": false, "stat": {"exists": false}} TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:15 ok: [managed-node2] => {"ansible_facts": {"__ssh_is_ostree": false}, "changed": false} TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 ok: [managed-node2] => {"changed": false, "msg": "", "rc": 0, "results": ["openssh-clients-7.4p1-23.el7_9.x86_64 providing openssh-clients is already installed"]} TASK [Define common variables] ************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:31 ok: [managed-node2] => {"ansible_facts": {"main_ssh_config": "/etc/ssh/ssh_config", "main_ssh_config_name": "ssh_config", "main_ssh_config_path": "/etc/ssh/"}, "changed": false} TASK [Define specific variables] *********************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:37 skipping: [managed-node2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Create a temporary directory for backup files] *************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 ok: [managed-node2] => {"changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.jacwIm", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [Backup files] ************************************************************ task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 ok: [managed-node2] => (item=/etc/ssh/ssh_config) => {"ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config; then\n mkdir -p /tmp/ansible.jacwIm/$(dirname /etc/ssh/ssh_config);\n cp -a /etc/ssh/ssh_config /tmp/ansible.jacwIm/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.007755", "end": "2024-09-24 15:35:54.256188", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2024-09-24 15:35:54.248433", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} ok: [managed-node2] => (item=/etc/ssh/ssh_config.d/00-ansible.conf) => {"ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.jacwIm/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp -a /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.jacwIm/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003229", "end": "2024-09-24 15:35:54.778272", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2024-09-24 15:35:54.775043", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Find old backups files] ************************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_backup.yml:12 ok: [managed-node2] => {"changed": false, "examined": 9, "files": [], "matched": 0, "msg": ""} TASK [Remove old backup files] ************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_backup.yml:18 TASK [Configure ssh without creating backup] *********************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_backup.yml:24 ERROR! the role 'fedora.linux_system_roles.ssh' was not found in /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh The error appears to be in '/tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_backup.yml': line 26, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: ansible.builtin.include_role: name: fedora.linux_system_roles.ssh ^ here PLAY RECAP ********************************************************************* managed-node2 : ok=10 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0