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/tmpwp_5o25m 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 03 August 2022 07:57:00 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 07:57:01 +0000 (0:00:01.309) 0:00:01.327 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.31s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_port.yml ******************************************************* 2 plays in /tmp/tmpn8ihicxm/tests/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmpn8ihicxm/tests/tests_port.yml:6 Wednesday 03 August 2022 07:57:01 +0000 (0:00:00.017) 0:00:01.344 ****** 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/tmpn8ihicxm/tests/tests_port.yml:18 Wednesday 03 August 2022 07:57:02 +0000 (0:00:01.005) 0:00:02.349 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmpn8ihicxm/tests/tests_port.yml:24 Wednesday 03 August 2022 07:57:04 +0000 (0:00:01.156) 0:00:03.506 ****** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.040) 0:00:03.547 ****** included: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.cockpit : Ensure ansible_facts used by role] ********** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.028) 0:00:03.575 ****** ok: [/cache/rhel-8.qcow2] TASK [linux-system-roles.cockpit : Set version specific variables] ************* task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:8 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.523) 0:00:04.098 ****** ok: [/cache/rhel-8.qcow2] => (item=/tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/vars/RedHat-8.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/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/vars/RedHat-8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/vars/RedHat-8.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:9 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.036) 0:00:04.135 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:17 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.020) 0:00:04.155 ****** skipping: [/cache/rhel-8.qcow2] => { "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/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.019) 0:00:04.174 ****** included: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml for /cache/rhel-8.qcow2 => (item=/tmp/tmpn8ihicxm/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/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:1 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.033) 0:00:04.208 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:8 Wednesday 03 August 2022 07:57:04 +0000 (0:00:00.032) 0:00:04.240 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-bridge-264.1-1.el8.x86_64", "Installed: cockpit-system-264.1-1.el8.noarch", "Installed: cockpit-ws-264.1-1.el8.x86_64" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 Wednesday 03 August 2022 07:57:25 +0000 (0:00:21.097) 0:00:25.338 ****** changed: [/cache/rhel-8.qcow2] => { "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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.cockpit : Create custom port configuration file] ****** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 Wednesday 03 August 2022 07:57:26 +0000 (0:00:00.537) 0:00:25.876 ****** NOTIFIED HANDLER linux-system-roles.cockpit : reload systemd for /cache/rhel-8.qcow2 NOTIFIED HANDLER linux-system-roles.cockpit : restart cockpit for /cache/rhel-8.qcow2 changed: [/cache/rhel-8.qcow2] => { "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-1659513446.489805-261028-230381826106352/source", "state": "file", "uid": 0 } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 Wednesday 03 August 2022 07:57:27 +0000 (0:00:00.952) 0:00:26.829 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003322", "end": "2022-08-03 03:57:27.968250", "failed_when_result": false, "rc": 0, "start": "2022-08-03 03:57:27.964928" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 Wednesday 03 August 2022 07:57:27 +0000 (0:00:00.492) 0:00:27.321 ****** 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/tmpn8ihicxm/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/tmpn8ihicxm/tests/tests_port.yml:56 Wednesday 03 August 2022 07:57:27 +0000 (0:00:00.046) 0:00:27.367 ****** included: /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml for /cache/rhel-8.qcow2 TASK [cleanup - packages] ****************************************************** task path: /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:1 Wednesday 03 August 2022 07:57:27 +0000 (0:00:00.030) 0:00:27.398 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-bridge-264.1-1.el8.x86_64", "Removed: cockpit-system-264.1-1.el8.noarch", "Removed: cockpit-ws-264.1-1.el8.x86_64" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:13 Wednesday 03 August 2022 07:57:46 +0000 (0:00:18.913) 0:00:46.312 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/rhel-8.qcow2] => { "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/tmpn8ihicxm/tests/tasks/cleanup.yml:23 Wednesday 03 August 2022 07:57:47 +0000 (0:00:00.475) 0:00:46.787 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:32 Wednesday 03 August 2022 07:57:47 +0000 (0:00:00.018) 0:00:46.806 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:40 Wednesday 03 August 2022 07:57:47 +0000 (0:00:00.352) 0:00:47.159 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:48 Wednesday 03 August 2022 07:57:48 +0000 (0:00:00.354) 0:00:47.514 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [linux-system-roles.cockpit : reload systemd] ****************** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/handlers/main.yml:3 Wednesday 03 August 2022 07:57:48 +0000 (0:00:00.836) 0:00:48.350 ****** RUNNING HANDLER [linux-system-roles.cockpit : restart cockpit] ***************** task path: /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/handlers/main.yml:7 Wednesday 03 August 2022 07:57:48 +0000 (0:00:00.000) 0:00:48.351 ****** PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=17 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:57:48 +0000 (0:00:00.001) 0:00:48.352 ****** =============================================================================== linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 21.10s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:8 - cleanup - packages ----------------------------------------------------- 18.91s /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:1 ------------------------------------ set up internal repositories -------------------------------------------- 1.31s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.16s /tmp/tmpn8ihicxm/tests/tests_port.yml:18 -------------------------------------- Download current linux-system-roles.selinux ----------------------------- 1.01s /tmp/tmpn8ihicxm/tests/tests_port.yml:6 --------------------------------------- linux-system-roles.cockpit : Create custom port configuration file ------ 0.95s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 ----- cleanup - reload systemd ------------------------------------------------ 0.84s /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:48 ----------------------------------- linux-system-roles.cockpit : Create custom port configuration file directory --- 0.54s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 ----- linux-system-roles.cockpit : Ensure ansible_facts used by role ---------- 0.52s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 -- linux-system-roles.cockpit : Check if SELinux is enabled ---------------- 0.49s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 ----- cleanup - find certificates --------------------------------------------- 0.48s /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:13 ----------------------------------- cleanup - port customization -------------------------------------------- 0.35s /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:40 ----------------------------------- cleanup - config file --------------------------------------------------- 0.35s /tmp/tmpn8ihicxm/tests/tasks/cleanup.yml:32 ----------------------------------- Allow cockpit to own custom port in SELinux policy ---------------------- 0.05s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 ----- Run cockpit role -------------------------------------------------------- 0.04s /tmp/tmpn8ihicxm/tests/tests_port.yml:24 -------------------------------------- linux-system-roles.cockpit : Set version specific variables ------------- 0.04s /tmp/tmpn8ihicxm/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.03s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 ----- linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.03s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:1 - include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn8ihicxm/tests/tests_port.yml:56 -------------------------------------- linux-system-roles.cockpit : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmpn8ihicxm/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 ------ 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/tmpwp_5o25m 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 03 August 2022 08:05:21 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 08:05:22 +0000 (0:00:01.311) 0:00:01.328 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.31s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_port.yml ******************************************************* 2 plays in /tmp/tmpk2tzj5__/tests/cockpit/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmpk2tzj5__/tests/cockpit/tests_port.yml:6 Wednesday 03 August 2022 08:05:22 +0000 (0:00:00.018) 0:00:01.346 ****** 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/tmpk2tzj5__/tests/cockpit/tests_port.yml:18 Wednesday 03 August 2022 08:05:23 +0000 (0:00:01.200) 0:00:02.546 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmpk2tzj5__/tests/cockpit/tests_port.yml:24 Wednesday 03 August 2022 08:05:24 +0000 (0:00:01.121) 0:00:03.668 ****** TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1 Wednesday 03 August 2022 08:05:24 +0000 (0:00:00.044) 0:00:03.713 ****** included: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role] *** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 08:05:24 +0000 (0:00:00.025) 0:00:03.739 ****** ok: [/cache/rhel-8.qcow2] TASK [fedora.linux_system_roles.cockpit : Set version specific variables] ****** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:7 Wednesday 03 August 2022 08:05:25 +0000 (0:00:00.504) 0:00:04.244 ****** ok: [/cache/rhel-8.qcow2] => (item=/tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-8.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/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-8.yml" } TASK [fedora.linux_system_roles.cockpit : List active RHEL repositories] ******* task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:9 Wednesday 03 August 2022 08:05:25 +0000 (0:00:00.038) 0:00:04.283 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Enable RHEL repositories] ************ task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:17 Wednesday 03 August 2022 08:05:25 +0000 (0:00:00.021) 0:00:04.304 ****** skipping: [/cache/rhel-8.qcow2] => { "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/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 Wednesday 03 August 2022 08:05:25 +0000 (0:00:00.020) 0:00:04.325 ****** included: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml for /cache/rhel-8.qcow2 => (item=/tmp/tmpwp_5o25m/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/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:1 Wednesday 03 August 2022 08:05:25 +0000 (0:00:00.034) 0:00:04.360 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:6 Wednesday 03 August 2022 08:05:25 +0000 (0:00:00.035) 0:00:04.395 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-bridge-264.1-1.el8.x86_64", "Installed: cockpit-system-264.1-1.el8.noarch", "Installed: cockpit-ws-264.1-1.el8.x86_64" ] } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 Wednesday 03 August 2022 08:05:45 +0000 (0:00:19.892) 0:00:24.288 ****** changed: [/cache/rhel-8.qcow2] => { "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": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file] *** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 Wednesday 03 August 2022 08:05:45 +0000 (0:00:00.506) 0:00:24.795 ****** NOTIFIED HANDLER fedora.linux_system_roles.cockpit : reload systemd for /cache/rhel-8.qcow2 NOTIFIED HANDLER fedora.linux_system_roles.cockpit : restart cockpit for /cache/rhel-8.qcow2 changed: [/cache/rhel-8.qcow2] => { "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-1659513945.9919057-264456-8460197901089/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.cockpit : Check if SELinux is enabled] ********* task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 Wednesday 03 August 2022 08:05:46 +0000 (0:00:00.926) 0:00:25.721 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003176", "end": "2022-08-03 04:05:46.232147", "failed_when_result": false, "rc": 0, "start": "2022-08-03 04:05:46.228971" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Wednesday 03 August 2022 08:05:47 +0000 (0:00:00.490) 0:00:26.211 ****** 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/tmpk2tzj5__/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/tmpk2tzj5__/tests/cockpit/tests_port.yml:56 Wednesday 03 August 2022 08:05:47 +0000 (0:00:00.042) 0:00:26.254 ****** included: /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml for /cache/rhel-8.qcow2 TASK [cleanup - packages] ****************************************************** task path: /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:1 Wednesday 03 August 2022 08:05:47 +0000 (0:00:00.028) 0:00:26.283 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-bridge-264.1-1.el8.x86_64", "Removed: cockpit-system-264.1-1.el8.noarch", "Removed: cockpit-ws-264.1-1.el8.x86_64" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:13 Wednesday 03 August 2022 08:06:04 +0000 (0:00:17.581) 0:00:43.865 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/rhel-8.qcow2] => { "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/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:23 Wednesday 03 August 2022 08:06:05 +0000 (0:00:00.474) 0:00:44.339 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:32 Wednesday 03 August 2022 08:06:05 +0000 (0:00:00.018) 0:00:44.358 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:40 Wednesday 03 August 2022 08:06:05 +0000 (0:00:00.352) 0:00:44.711 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:48 Wednesday 03 August 2022 08:06:06 +0000 (0:00:00.354) 0:00:45.065 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [fedora.linux_system_roles.cockpit : reload systemd] *********** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:3 Wednesday 03 August 2022 08:06:06 +0000 (0:00:00.817) 0:00:45.882 ****** RUNNING HANDLER [fedora.linux_system_roles.cockpit : restart cockpit] ********** task path: /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:7 Wednesday 03 August 2022 08:06:06 +0000 (0:00:00.000) 0:00:45.883 ****** PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=17 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:06:07 +0000 (0:00:00.001) 0:00:45.885 ****** =============================================================================== fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 19.89s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:6 cleanup - packages ----------------------------------------------------- 17.58s /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:1 ---------------------------- set up internal repositories -------------------------------------------- 1.31s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Download current linux-system-roles.selinux ----------------------------- 1.20s /tmp/tmpk2tzj5__/tests/cockpit/tests_port.yml:6 ------------------------------- Gathering Facts --------------------------------------------------------- 1.12s /tmp/tmpk2tzj5__/tests/cockpit/tests_port.yml:18 ------------------------------ fedora.linux_system_roles.cockpit : Create custom port configuration file --- 0.93s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 cleanup - reload systemd ------------------------------------------------ 0.82s /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:48 --------------------------- fedora.linux_system_roles.cockpit : Create custom port configuration file directory --- 0.51s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role --- 0.50s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 fedora.linux_system_roles.cockpit : Check if SELinux is enabled --------- 0.49s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 cleanup - find certificates --------------------------------------------- 0.47s /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:13 --------------------------- cleanup - port customization -------------------------------------------- 0.35s /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:40 --------------------------- cleanup - config file --------------------------------------------------- 0.35s /tmp/tmpk2tzj5__/tests/cockpit/tasks/cleanup.yml:32 --------------------------- Run cockpit role -------------------------------------------------------- 0.04s /tmp/tmpk2tzj5__/tests/cockpit/tests_port.yml:24 ------------------------------ Allow cockpit to own custom port in SELinux policy ---------------------- 0.04s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 fedora.linux_system_roles.cockpit : Set version specific variables ------ 0.04s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:7 fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.04s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:1 fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.03s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpk2tzj5__/tests/cockpit/tests_port.yml:56 ------------------------------ fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmpwp_5o25m/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1