ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp8jj4_k5c executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', 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_port.yml ******************************************************* 2 plays in /tmp/tmpef62vtxj/tests/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmpef62vtxj/tests/tests_port.yml:6 Wednesday 03 August 2022 07:59:24 +0000 (0:00:00.018) 0:00:00.018 ****** changed: [127.0.0.1] => { "after": "03bd4c1b2d98b8fae656762bdbbd1c36337b4a72", "before": null, "changed": true } META: ran handlers META: ran handlers PLAY [Test cockpit_port option] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpef62vtxj/tests/tests_port.yml:18 Wednesday 03 August 2022 07:59:25 +0000 (0:00:00.978) 0:00:00.996 ****** ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmpef62vtxj/tests/tests_port.yml:24 Wednesday 03 August 2022 07:59:26 +0000 (0:00:01.331) 0:00:02.327 ****** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 Wednesday 03 August 2022 07:59:26 +0000 (0:00:00.039) 0:00:02.366 ****** included: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.cockpit : Ensure ansible_facts used by role] ********** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:59:26 +0000 (0:00:00.029) 0:00:02.395 ****** ok: [/cache/fedora-36.qcow2.snap] TASK [linux-system-roles.cockpit : Set version specific variables] ************* task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:8 Wednesday 03 August 2022 07:59:27 +0000 (0:00:00.543) 0:00:02.939 ****** ok: [/cache/fedora-36.qcow2.snap] => (item=/tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/vars/Fedora.yml) => { "ansible_facts": { "__cockpit_packages": { "default": "{{ __cockpit_packages_minimal + __cockpit_packages_default }}", "full": "{{ __cockpit_packages_minimal + __cockpit_packages_default + __cockpit_packages_full }}", "minimal": "{{ __cockpit_packages_minimal }}" }, "__cockpit_packages_default": [ "cockpit", "cockpit-networkmanager", "cockpit-packagekit", "cockpit-selinux", "cockpit-storaged" ], "__cockpit_packages_exclude": [ "cockpit-docker", "cockpit-ostree", "cockpit-tests" ], "__cockpit_packages_full": [ "cockpit-*" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/vars/Fedora.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:9 Wednesday 03 August 2022 07:59:27 +0000 (0:00:00.038) 0:00:02.977 ****** skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:17 Wednesday 03 August 2022 07:59:27 +0000 (0:00:00.021) 0:00:02.998 ****** skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Manage cockpit packages using platform specific package manager if applicable] *** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 Wednesday 03 August 2022 07:59:27 +0000 (0:00:00.020) 0:00:03.018 ****** included: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml for /cache/fedora-36.qcow2.snap => (item=/tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml) TASK [linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:1 Wednesday 03 August 2022 07:59:27 +0000 (0:00:00.035) 0:00:03.054 ****** ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:8 Wednesday 03 August 2022 07:59:27 +0000 (0:00:00.039) 0:00:03.093 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-system-273-1.fc36.noarch", "Installed: cockpit-ws-273-1.fc36.x86_64", "Installed: cockpit-bridge-273-1.fc36.x86_64" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 Wednesday 03 August 2022 07:59:39 +0000 (0:00:12.470) 0:00:15.564 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/systemd/system/cockpit.socket.d/", "secontext": "unconfined_u:object_r:systemd_unit_file_t:s0", "size": 0, "state": "directory", "uid": 0 } TASK [linux-system-roles.cockpit : Create custom port configuration file] ****** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 Wednesday 03 August 2022 07:59:40 +0000 (0:00:00.561) 0:00:16.125 ****** NOTIFIED HANDLER linux-system-roles.cockpit : reload systemd for /cache/fedora-36.qcow2.snap NOTIFIED HANDLER linux-system-roles.cockpit : restart cockpit for /cache/fedora-36.qcow2.snap changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "checksum": "164ea3fa544fc046daf315017ad1467da72400af", "dest": "/etc/systemd/system/cockpit.socket.d/listen.conf", "gid": 0, "group": "root", "md5sum": "704221a49efdb16bf16bc689ef8cbee7", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:cockpit_unit_file_t:s0", "size": 40, "src": "/root/.ansible/tmp/ansible-tmp-1659513580.5357668-278435-36573013160339/source", "state": "file", "uid": 0 } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 Wednesday 03 August 2022 07:59:41 +0000 (0:00:01.009) 0:00:17.134 ****** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003580", "end": "2022-08-03 07:59:40.872473", "failed_when_result": false, "rc": 0, "start": "2022-08-03 07:59:40.868893" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 Wednesday 03 August 2022 07:59:42 +0000 (0:00:00.569) 0:00:17.704 ****** redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux ERROR! couldn't resolve module/action 'selinux'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/tmp/tmpef62vtxj/tests/roles/linux-system-roles.selinux/tasks/main.yml': line 5, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Set permanent SELinux state if enabled ^ here TASK [include_tasks] *********************************************************** task path: /tmp/tmpef62vtxj/tests/tests_port.yml:56 Wednesday 03 August 2022 07:59:42 +0000 (0:00:00.049) 0:00:17.754 ****** included: /tmp/tmpef62vtxj/tests/tasks/cleanup.yml for /cache/fedora-36.qcow2.snap TASK [cleanup - packages] ****************************************************** task path: /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:1 Wednesday 03 August 2022 07:59:42 +0000 (0:00:00.033) 0:00:17.787 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-bridge-273-1.fc36.x86_64", "Removed: cockpit-system-273-1.fc36.noarch", "Removed: cockpit-ws-273-1.fc36.x86_64" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:13 Wednesday 03 August 2022 07:59:53 +0000 (0:00:11.211) 0:00:28.999 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "examined": 0, "files": [], "matched": 0, "skipped_paths": { "/etc/cockpit/ws-certs.d/": "'/etc/cockpit/ws-certs.d/' is not a directory" } } MSG: Not all paths examined, check warnings for details TASK [cleanup - certificates] ************************************************** task path: /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:23 Wednesday 03 August 2022 07:59:53 +0000 (0:00:00.533) 0:00:29.532 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:32 Wednesday 03 August 2022 07:59:53 +0000 (0:00:00.020) 0:00:29.553 ****** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:40 Wednesday 03 August 2022 07:59:54 +0000 (0:00:00.399) 0:00:29.952 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:48 Wednesday 03 August 2022 07:59:54 +0000 (0:00:00.401) 0:00:30.354 ****** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [linux-system-roles.cockpit : reload systemd] ****************** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/handlers/main.yml:3 Wednesday 03 August 2022 07:59:55 +0000 (0:00:01.018) 0:00:31.373 ****** RUNNING HANDLER [linux-system-roles.cockpit : restart cockpit] ***************** task path: /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/handlers/main.yml:7 Wednesday 03 August 2022 07:59:55 +0000 (0:00:00.000) 0:00:31.373 ****** PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=16 changed=5 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 127.0.0.1 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 07:59:55 +0000 (0:00:00.001) 0:00:31.374 ****** =============================================================================== linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 12.47s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:8 - cleanup - packages ----------------------------------------------------- 11.21s /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:1 ------------------------------------ Gathering Facts --------------------------------------------------------- 1.33s /tmp/tmpef62vtxj/tests/tests_port.yml:18 -------------------------------------- cleanup - reload systemd ------------------------------------------------ 1.02s /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:48 ----------------------------------- linux-system-roles.cockpit : Create custom port configuration file ------ 1.01s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 ----- Download current linux-system-roles.selinux ----------------------------- 0.98s /tmp/tmpef62vtxj/tests/tests_port.yml:6 --------------------------------------- linux-system-roles.cockpit : Check if SELinux is enabled ---------------- 0.57s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 ----- linux-system-roles.cockpit : Create custom port configuration file directory --- 0.56s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 ----- linux-system-roles.cockpit : Ensure ansible_facts used by role ---------- 0.54s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 -- cleanup - find certificates --------------------------------------------- 0.53s /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:13 ----------------------------------- cleanup - port customization -------------------------------------------- 0.40s /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:40 ----------------------------------- cleanup - config file --------------------------------------------------- 0.40s /tmp/tmpef62vtxj/tests/tasks/cleanup.yml:32 ----------------------------------- Allow cockpit to own custom port in SELinux policy ---------------------- 0.05s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 ----- Run cockpit role -------------------------------------------------------- 0.04s /tmp/tmpef62vtxj/tests/tests_port.yml:24 -------------------------------------- linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.04s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:1 - linux-system-roles.cockpit : Set version specific variables ------------- 0.04s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:8 -- linux-system-roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.04s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 ----- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpef62vtxj/tests/tests_port.yml:56 -------------------------------------- linux-system-roles.cockpit : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 ------ linux-system-roles.cockpit : List active RHEL repositories -------------- 0.02s /tmp/tmpef62vtxj/tests/roles/linux-system-roles.cockpit/tasks/main.yml:9 ------ ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp8jj4_k5c executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', 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_port.yml ******************************************************* 2 plays in /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:6 Wednesday 03 August 2022 08:05:13 +0000 (0:00:00.017) 0:00:00.017 ****** changed: [127.0.0.1] => { "after": "03bd4c1b2d98b8fae656762bdbbd1c36337b4a72", "before": null, "changed": true } META: ran handlers META: ran handlers PLAY [Test cockpit_port option] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:18 Wednesday 03 August 2022 08:05:14 +0000 (0:00:00.976) 0:00:00.994 ****** ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:24 Wednesday 03 August 2022 08:05:16 +0000 (0:00:01.276) 0:00:02.271 ****** TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.046) 0:00:02.317 ****** included: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role] *** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.027) 0:00:02.345 ****** ok: [/cache/fedora-36.qcow2.snap] TASK [fedora.linux_system_roles.cockpit : Set version specific variables] ****** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:7 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.537) 0:00:02.883 ****** ok: [/cache/fedora-36.qcow2.snap] => (item=/tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/Fedora.yml) => { "ansible_facts": { "__cockpit_packages": { "default": "{{ __cockpit_packages_minimal + __cockpit_packages_default }}", "full": "{{ __cockpit_packages_minimal + __cockpit_packages_default + __cockpit_packages_full }}", "minimal": "{{ __cockpit_packages_minimal }}" }, "__cockpit_packages_default": [ "cockpit", "cockpit-networkmanager", "cockpit-packagekit", "cockpit-selinux", "cockpit-storaged" ], "__cockpit_packages_exclude": [ "cockpit-docker", "cockpit-ostree", "cockpit-tests" ], "__cockpit_packages_full": [ "cockpit-*" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/Fedora.yml" } TASK [fedora.linux_system_roles.cockpit : List active RHEL repositories] ******* task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:9 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.041) 0:00:02.924 ****** skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Enable RHEL repositories] ************ task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:17 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.021) 0:00:02.946 ****** skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable] *** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.021) 0:00:02.968 ****** included: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml for /cache/fedora-36.qcow2.snap => (item=/tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml) TASK [fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:1 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.037) 0:00:03.005 ****** ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:6 Wednesday 03 August 2022 08:05:16 +0000 (0:00:00.043) 0:00:03.049 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-system-273-1.fc36.noarch", "Installed: cockpit-ws-273-1.fc36.x86_64", "Installed: cockpit-bridge-273-1.fc36.x86_64" ] } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 Wednesday 03 August 2022 08:05:29 +0000 (0:00:12.617) 0:00:15.666 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/systemd/system/cockpit.socket.d/", "secontext": "unconfined_u:object_r:systemd_unit_file_t:s0", "size": 0, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file] *** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 Wednesday 03 August 2022 08:05:30 +0000 (0:00:00.577) 0:00:16.244 ****** NOTIFIED HANDLER fedora.linux_system_roles.cockpit : reload systemd for /cache/fedora-36.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.cockpit : restart cockpit for /cache/fedora-36.qcow2.snap changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "checksum": "164ea3fa544fc046daf315017ad1467da72400af", "dest": "/etc/systemd/system/cockpit.socket.d/listen.conf", "gid": 0, "group": "root", "md5sum": "704221a49efdb16bf16bc689ef8cbee7", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:cockpit_unit_file_t:s0", "size": 40, "src": "/root/.ansible/tmp/ansible-tmp-1659513930.1927752-281017-32450150585959/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.cockpit : Check if SELinux is enabled] ********* task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 Wednesday 03 August 2022 08:05:31 +0000 (0:00:00.990) 0:00:17.234 ****** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003174", "end": "2022-08-03 08:05:31.101908", "failed_when_result": false, "rc": 0, "start": "2022-08-03 08:05:31.098734" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Wednesday 03 August 2022 08:05:31 +0000 (0:00:00.526) 0:00:17.761 ****** redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux ERROR! couldn't resolve module/action 'selinux'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/tmp/tmp7cnml56y/tests/cockpit/roles/linux-system-roles.selinux/tasks/main.yml': line 5, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Set permanent SELinux state if enabled ^ here TASK [include_tasks] *********************************************************** task path: /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:56 Wednesday 03 August 2022 08:05:31 +0000 (0:00:00.049) 0:00:17.811 ****** included: /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml for /cache/fedora-36.qcow2.snap TASK [cleanup - packages] ****************************************************** task path: /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:1 Wednesday 03 August 2022 08:05:31 +0000 (0:00:00.035) 0:00:17.846 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-bridge-273-1.fc36.x86_64", "Removed: cockpit-system-273-1.fc36.noarch", "Removed: cockpit-ws-273-1.fc36.x86_64" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:13 Wednesday 03 August 2022 08:05:42 +0000 (0:00:10.913) 0:00:28.759 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "examined": 0, "files": [], "matched": 0, "skipped_paths": { "/etc/cockpit/ws-certs.d/": "'/etc/cockpit/ws-certs.d/' is not a directory" } } MSG: Not all paths examined, check warnings for details TASK [cleanup - certificates] ************************************************** task path: /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:23 Wednesday 03 August 2022 08:05:43 +0000 (0:00:00.527) 0:00:29.287 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:32 Wednesday 03 August 2022 08:05:43 +0000 (0:00:00.021) 0:00:29.308 ****** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:40 Wednesday 03 August 2022 08:05:43 +0000 (0:00:00.396) 0:00:29.705 ****** changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:48 Wednesday 03 August 2022 08:05:44 +0000 (0:00:00.411) 0:00:30.117 ****** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [fedora.linux_system_roles.cockpit : reload systemd] *********** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:3 Wednesday 03 August 2022 08:05:45 +0000 (0:00:01.004) 0:00:31.121 ****** RUNNING HANDLER [fedora.linux_system_roles.cockpit : restart cockpit] ********** task path: /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:7 Wednesday 03 August 2022 08:05:45 +0000 (0:00:00.000) 0:00:31.122 ****** PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=16 changed=5 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 127.0.0.1 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 08:05:45 +0000 (0:00:00.001) 0:00:31.124 ****** =============================================================================== fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 12.62s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:6 cleanup - packages ----------------------------------------------------- 10.91s /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:1 ---------------------------- Gathering Facts --------------------------------------------------------- 1.28s /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:18 ------------------------------ cleanup - reload systemd ------------------------------------------------ 1.00s /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:48 --------------------------- fedora.linux_system_roles.cockpit : Create custom port configuration file --- 0.99s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 Download current linux-system-roles.selinux ----------------------------- 0.98s /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:6 ------------------------------- fedora.linux_system_roles.cockpit : Create custom port configuration file directory --- 0.58s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role --- 0.54s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 cleanup - find certificates --------------------------------------------- 0.53s /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:13 --------------------------- fedora.linux_system_roles.cockpit : Check if SELinux is enabled --------- 0.53s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 cleanup - port customization -------------------------------------------- 0.41s /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:40 --------------------------- cleanup - config file --------------------------------------------------- 0.40s /tmp/tmp7cnml56y/tests/cockpit/tasks/cleanup.yml:32 --------------------------- Allow cockpit to own custom port in SELinux policy ---------------------- 0.05s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Run cockpit role -------------------------------------------------------- 0.05s /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:24 ------------------------------ fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.04s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:1 fedora.linux_system_roles.cockpit : Set version specific variables ------ 0.04s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:7 fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.04s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp7cnml56y/tests/cockpit/tests_port.yml:56 ------------------------------ fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1 fedora.linux_system_roles.cockpit : Enable RHEL repositories ------------ 0.02s /tmp/tmp8jj4_k5c/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:17