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_user_config.yml ************************************************ 1 plays in /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_user_config.yml PLAY [Test a creation of configuration file in the user directory] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_user_config.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_user_config.yml:12 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.aEFc19", "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.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.aEFc19/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf);\n cp -a /etc/ssh/ssh_config.d/00-ansible.conf /tmp/ansible.aEFc19/$(dirname /etc/ssh/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003367", "end": "2024-09-24 15:36:12.533526", "item": "/etc/ssh/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2024-09-24 15:36:12.530159", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} 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.aEFc19/$(dirname /etc/ssh/ssh_config);\n cp -a /etc/ssh/ssh_config /tmp/ansible.aEFc19/$(dirname /etc/ssh/ssh_config)\nfi\n", "delta": "0:00:00.008033", "end": "2024-09-24 15:36:13.028207", "item": "/etc/ssh/ssh_config", "rc": 0, "start": "2024-09-24 15:36:13.020174", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create a test group (with the same name as user)] ************************ task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_user_config.yml:15 changed: [managed-node2] => {"changed": true, "gid": 1000, "name": "tester123", "state": "present", "system": false} TASK [Create a test user] ****************************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_user_config.yml:19 changed: [managed-node2] => {"changed": true, "comment": "", "create_home": true, "group": 1000, "home": "/home/tester123", "name": "tester123", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1000} TASK [Run role] **************************************************************** task path: /tmp/collections-IKQ/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_user_config.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_user_config.yml': line 26, 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.ssh ^ here PLAY RECAP ********************************************************************* managed-node2 : ok=11 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0