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/tmpyk8b1iha 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/tmpbkexa8_d/tests/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmpbkexa8_d/tests/tests_port.yml:6 Wednesday 03 August 2022 07:46:59 +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/tmpbkexa8_d/tests/tests_port.yml:18 Wednesday 03 August 2022 07:47:00 +0000 (0:00:01.062) 0:00:01.080 ****** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmpbkexa8_d/tests/tests_port.yml:24 Wednesday 03 August 2022 07:47:01 +0000 (0:00:01.083) 0:00:02.164 ****** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 Wednesday 03 August 2022 07:47:01 +0000 (0:00:00.040) 0:00:02.205 ****** included: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [linux-system-roles.cockpit : Ensure ansible_facts used by role] ********** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:47:01 +0000 (0:00:00.028) 0:00:02.233 ****** ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.cockpit : Set version specific variables] ************* task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:8 Wednesday 03 August 2022 07:47:02 +0000 (0:00:00.389) 0:00:02.622 ****** ok: [/cache/centos-7.qcow2c.snap] => (item=/tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/vars/CentOS-7.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-machines-ovirt", "cockpit-tests" ], "__cockpit_packages_full": [ "cockpit-composer", "cockpit-dashboard", "cockpit-doc", "cockpit-docker", "cockpit-machines", "cockpit-pcp", "cockpit-shell" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/vars/CentOS-7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/vars/CentOS-7.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:9 Wednesday 03 August 2022 07:47:02 +0000 (0:00:00.039) 0:00:02.662 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:17 Wednesday 03 August 2022 07:47:02 +0000 (0:00:00.022) 0:00:02.685 ****** skipping: [/cache/centos-7.qcow2c.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/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 Wednesday 03 August 2022 07:47:02 +0000 (0:00:00.021) 0:00:02.706 ****** included: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml for /cache/centos-7.qcow2c.snap => (item=/tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml) TASK [linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml:1 Wednesday 03 August 2022 07:47:02 +0000 (0:00:00.036) 0:00:02.743 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml:8 Wednesday 03 August 2022 07:47:02 +0000 (0:00:00.037) 0:00:02.780 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "changes": { "installed": [ "cockpit-system", "cockpit-ws" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-\n : manager\n\nThis system is not registered with an entitlement server. You can use subscription-manager to register.\n\nLoading mirror speeds from cached hostfile\n * base: nyc.mirrors.clouvider.net\n * extras: atl.mirrors.clouvider.net\n * updates: mirror.vcu.edu\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.12-1.el7.centos will be installed\n--> Processing Dependency: cockpit-bridge >= 195.12-1.el7.centos for package: cockpit-system-195.12-1.el7.centos.noarch\n---> Package cockpit-ws.x86_64 0:195.12-1.el7.centos will be installed\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.12-1.el7.centos will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n cockpit-system noarch 195.12-1.el7.centos extras 1.7 M\n cockpit-ws x86_64 195.12-1.el7.centos extras 808 k\nInstalling for dependencies:\n cockpit-bridge x86_64 195.12-1.el7.centos extras 555 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+1 Dependent package)\n\nTotal size: 3.0 M\nInstalled size: 4.1 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : cockpit-bridge-195.12-1.el7.centos.x86_64 1/3 \n Installing : cockpit-system-195.12-1.el7.centos.noarch 2/3 \n Installing : cockpit-ws-195.12-1.el7.centos.x86_64 3/3 \n Verifying : cockpit-ws-195.12-1.el7.centos.x86_64 1/3 \n Verifying : cockpit-system-195.12-1.el7.centos.noarch 2/3 \n Verifying : cockpit-bridge-195.12-1.el7.centos.x86_64 3/3 \n\nInstalled:\n cockpit-system.noarch 0:195.12-1.el7.centos \n cockpit-ws.x86_64 0:195.12-1.el7.centos \n\nDependency Installed:\n cockpit-bridge.x86_64 0:195.12-1.el7.centos \n\nComplete!\n" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 Wednesday 03 August 2022 07:47:06 +0000 (0:00:03.770) 0:00:06.550 ****** changed: [/cache/centos-7.qcow2c.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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.cockpit : Create custom port configuration file] ****** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 Wednesday 03 August 2022 07:47:06 +0000 (0:00:00.443) 0:00:06.994 ****** NOTIFIED HANDLER linux-system-roles.cockpit : reload systemd for /cache/centos-7.qcow2c.snap NOTIFIED HANDLER linux-system-roles.cockpit : restart cockpit for /cache/centos-7.qcow2c.snap changed: [/cache/centos-7.qcow2c.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-1659512826.7480655-273195-230712683157254/source", "state": "file", "uid": 0 } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 Wednesday 03 August 2022 07:47:07 +0000 (0:00:00.828) 0:00:07.823 ****** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.004388", "end": "2022-08-03 07:47:08.105858", "failed_when_result": false, "rc": 0, "start": "2022-08-03 07:47:08.101470" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 Wednesday 03 August 2022 07:47:07 +0000 (0:00:00.442) 0:00:08.266 ****** 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/tmpbkexa8_d/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/tmpbkexa8_d/tests/tests_port.yml:56 Wednesday 03 August 2022 07:47:08 +0000 (0:00:00.048) 0:00:08.314 ****** included: /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml for /cache/centos-7.qcow2c.snap TASK [cleanup - packages] ****************************************************** task path: /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:1 Wednesday 03 August 2022 07:47:08 +0000 (0:00:00.031) 0:00:08.346 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "changes": { "removed": [ "cockpit-bridge", "cockpit-ws" ] }, "rc": 0, "results": [ "cockpit-doc is not installed", "Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-\n : manager\n\nThis system is not registered with an entitlement server. You can use subscription-manager to register.\n\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.12-1.el7.centos will be erased\n--> Processing Dependency: cockpit-bridge >= 195.12-1.el7.centos for package: cockpit-system-195.12-1.el7.centos.noarch\n---> Package cockpit-ws.x86_64 0:195.12-1.el7.centos will be erased\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.12-1.el7.centos will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nRemoving:\n cockpit-bridge x86_64 195.12-1.el7.centos @extras 868 k\n cockpit-ws x86_64 195.12-1.el7.centos @extras 1.6 M\nRemoving for dependencies:\n cockpit-system noarch 195.12-1.el7.centos @extras 1.7 M\n\nTransaction Summary\n================================================================================\nRemove 2 Packages (+1 Dependent package)\n\nInstalled size: 4.1 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : cockpit-system-195.12-1.el7.centos.noarch 1/3 \n Erasing : cockpit-bridge-195.12-1.el7.centos.x86_64 2/3 \n Erasing : cockpit-ws-195.12-1.el7.centos.x86_64 3/3 \n Verifying : cockpit-ws-195.12-1.el7.centos.x86_64 1/3 \n Verifying : cockpit-system-195.12-1.el7.centos.noarch 2/3 \n Verifying : cockpit-bridge-195.12-1.el7.centos.x86_64 3/3 \n\nRemoved:\n cockpit-bridge.x86_64 0:195.12-1.el7.centos \n cockpit-ws.x86_64 0:195.12-1.el7.centos \n\nDependency Removed:\n cockpit-system.noarch 0:195.12-1.el7.centos \n\nComplete!\n" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:13 Wednesday 03 August 2022 07:47:09 +0000 (0:00:01.863) 0:00:10.210 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/centos-7.qcow2c.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/tmpbkexa8_d/tests/tasks/cleanup.yml:23 Wednesday 03 August 2022 07:47:10 +0000 (0:00:00.426) 0:00:10.636 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:32 Wednesday 03 August 2022 07:47:10 +0000 (0:00:00.019) 0:00:10.656 ****** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:40 Wednesday 03 August 2022 07:47:10 +0000 (0:00:00.311) 0:00:10.967 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:48 Wednesday 03 August 2022 07:47:10 +0000 (0:00:00.295) 0:00:11.263 ****** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [linux-system-roles.cockpit : reload systemd] ****************** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/handlers/main.yml:3 Wednesday 03 August 2022 07:47:11 +0000 (0:00:00.686) 0:00:11.949 ****** RUNNING HANDLER [linux-system-roles.cockpit : restart cockpit] ***************** task path: /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/handlers/main.yml:7 Wednesday 03 August 2022 07:47:11 +0000 (0:00:00.000) 0:00:11.950 ****** PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.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:47:11 +0000 (0:00:00.000) 0:00:11.951 ****** =============================================================================== linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed. --- 3.77s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml:8 - cleanup - packages ------------------------------------------------------ 1.86s /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:1 ------------------------------------ Gathering Facts --------------------------------------------------------- 1.08s /tmp/tmpbkexa8_d/tests/tests_port.yml:18 -------------------------------------- Download current linux-system-roles.selinux ----------------------------- 1.06s /tmp/tmpbkexa8_d/tests/tests_port.yml:6 --------------------------------------- linux-system-roles.cockpit : Create custom port configuration file ------ 0.83s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 ----- cleanup - reload systemd ------------------------------------------------ 0.69s /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:48 ----------------------------------- linux-system-roles.cockpit : Create custom port configuration file directory --- 0.44s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 ----- linux-system-roles.cockpit : Check if SELinux is enabled ---------------- 0.44s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 ----- cleanup - find certificates --------------------------------------------- 0.43s /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:13 ----------------------------------- linux-system-roles.cockpit : Ensure ansible_facts used by role ---------- 0.39s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 -- cleanup - config file --------------------------------------------------- 0.31s /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:32 ----------------------------------- cleanup - port customization -------------------------------------------- 0.30s /tmp/tmpbkexa8_d/tests/tasks/cleanup.yml:40 ----------------------------------- Allow cockpit to own custom port in SELinux policy ---------------------- 0.05s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 ----- Run cockpit role -------------------------------------------------------- 0.04s /tmp/tmpbkexa8_d/tests/tests_port.yml:24 -------------------------------------- linux-system-roles.cockpit : Set version specific variables ------------- 0.04s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:8 -- linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.04s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml:1 - linux-system-roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.04s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 ----- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpbkexa8_d/tests/tests_port.yml:56 -------------------------------------- linux-system-roles.cockpit : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmpbkexa8_d/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 ------ linux-system-roles.cockpit : List active RHEL repositories -------------- 0.02s /tmp/tmpbkexa8_d/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/tmpyk8b1iha 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/tmp0d1dc1pl/tests/cockpit/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmp0d1dc1pl/tests/cockpit/tests_port.yml:6 Wednesday 03 August 2022 07:49:47 +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/tmp0d1dc1pl/tests/cockpit/tests_port.yml:18 Wednesday 03 August 2022 07:49:48 +0000 (0:00:01.216) 0:00:01.235 ****** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmp0d1dc1pl/tests/cockpit/tests_port.yml:24 Wednesday 03 August 2022 07:49:50 +0000 (0:00:01.142) 0:00:02.377 ****** TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.047) 0:00:02.424 ****** included: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role] *** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.028) 0:00:02.453 ****** ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.cockpit : Set version specific variables] ****** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:7 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.402) 0:00:02.855 ****** ok: [/cache/centos-7.qcow2c.snap] => (item=/tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/CentOS-7.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-machines-ovirt", "cockpit-tests" ], "__cockpit_packages_full": [ "cockpit-composer", "cockpit-dashboard", "cockpit-doc", "cockpit-docker", "cockpit-machines", "cockpit-pcp", "cockpit-shell" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/CentOS-7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/CentOS-7.yml" } TASK [fedora.linux_system_roles.cockpit : List active RHEL repositories] ******* task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:9 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.039) 0:00:02.894 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Enable RHEL repositories] ************ task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:17 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.021) 0:00:02.916 ****** skipping: [/cache/centos-7.qcow2c.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/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.021) 0:00:02.938 ****** included: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml for /cache/centos-7.qcow2c.snap => (item=/tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml) TASK [fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:1 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.038) 0:00:02.976 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:6 Wednesday 03 August 2022 07:49:50 +0000 (0:00:00.037) 0:00:03.013 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "changes": { "installed": [ "cockpit-system", "cockpit-ws" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-\n : manager\n\nThis system is not registered with an entitlement server. You can use subscription-manager to register.\n\nLoading mirror speeds from cached hostfile\n * base: nyc.mirrors.clouvider.net\n * extras: atl.mirrors.clouvider.net\n * updates: mirror.vcu.edu\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.12-1.el7.centos will be installed\n--> Processing Dependency: cockpit-bridge >= 195.12-1.el7.centos for package: cockpit-system-195.12-1.el7.centos.noarch\n---> Package cockpit-ws.x86_64 0:195.12-1.el7.centos will be installed\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.12-1.el7.centos will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n cockpit-system noarch 195.12-1.el7.centos extras 1.7 M\n cockpit-ws x86_64 195.12-1.el7.centos extras 808 k\nInstalling for dependencies:\n cockpit-bridge x86_64 195.12-1.el7.centos extras 555 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+1 Dependent package)\n\nTotal size: 3.0 M\nInstalled size: 4.1 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : cockpit-bridge-195.12-1.el7.centos.x86_64 1/3 \n Installing : cockpit-system-195.12-1.el7.centos.noarch 2/3 \n Installing : cockpit-ws-195.12-1.el7.centos.x86_64 3/3 \n Verifying : cockpit-ws-195.12-1.el7.centos.x86_64 1/3 \n Verifying : cockpit-system-195.12-1.el7.centos.noarch 2/3 \n Verifying : cockpit-bridge-195.12-1.el7.centos.x86_64 3/3 \n\nInstalled:\n cockpit-system.noarch 0:195.12-1.el7.centos \n cockpit-ws.x86_64 0:195.12-1.el7.centos \n\nDependency Installed:\n cockpit-bridge.x86_64 0:195.12-1.el7.centos \n\nComplete!\n" ] } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 Wednesday 03 August 2022 07:49:54 +0000 (0:00:03.884) 0:00:06.898 ****** changed: [/cache/centos-7.qcow2c.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": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file] *** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 Wednesday 03 August 2022 07:49:55 +0000 (0:00:00.466) 0:00:07.364 ****** NOTIFIED HANDLER fedora.linux_system_roles.cockpit : reload systemd for /cache/centos-7.qcow2c.snap NOTIFIED HANDLER fedora.linux_system_roles.cockpit : restart cockpit for /cache/centos-7.qcow2c.snap changed: [/cache/centos-7.qcow2c.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-1659512995.179571-275437-12314752851784/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.cockpit : Check if SELinux is enabled] ********* task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 Wednesday 03 August 2022 07:49:55 +0000 (0:00:00.833) 0:00:08.198 ****** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003718", "end": "2022-08-03 07:49:56.365763", "failed_when_result": false, "rc": 0, "start": "2022-08-03 07:49:56.362045" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Wednesday 03 August 2022 07:49:56 +0000 (0:00:00.439) 0:00:08.638 ****** 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/tmp0d1dc1pl/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/tmp0d1dc1pl/tests/cockpit/tests_port.yml:56 Wednesday 03 August 2022 07:49:56 +0000 (0:00:00.049) 0:00:08.687 ****** included: /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml for /cache/centos-7.qcow2c.snap TASK [cleanup - packages] ****************************************************** task path: /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:1 Wednesday 03 August 2022 07:49:56 +0000 (0:00:00.032) 0:00:08.720 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "changes": { "removed": [ "cockpit-bridge", "cockpit-ws" ] }, "rc": 0, "results": [ "cockpit-doc is not installed", "Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-\n : manager\n\nThis system is not registered with an entitlement server. You can use subscription-manager to register.\n\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.12-1.el7.centos will be erased\n--> Processing Dependency: cockpit-bridge >= 195.12-1.el7.centos for package: cockpit-system-195.12-1.el7.centos.noarch\n---> Package cockpit-ws.x86_64 0:195.12-1.el7.centos will be erased\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.12-1.el7.centos will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nRemoving:\n cockpit-bridge x86_64 195.12-1.el7.centos @extras 868 k\n cockpit-ws x86_64 195.12-1.el7.centos @extras 1.6 M\nRemoving for dependencies:\n cockpit-system noarch 195.12-1.el7.centos @extras 1.7 M\n\nTransaction Summary\n================================================================================\nRemove 2 Packages (+1 Dependent package)\n\nInstalled size: 4.1 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : cockpit-system-195.12-1.el7.centos.noarch 1/3 \n Erasing : cockpit-bridge-195.12-1.el7.centos.x86_64 2/3 \n Erasing : cockpit-ws-195.12-1.el7.centos.x86_64 3/3 \n Verifying : cockpit-ws-195.12-1.el7.centos.x86_64 1/3 \n Verifying : cockpit-system-195.12-1.el7.centos.noarch 2/3 \n Verifying : cockpit-bridge-195.12-1.el7.centos.x86_64 3/3 \n\nRemoved:\n cockpit-bridge.x86_64 0:195.12-1.el7.centos \n cockpit-ws.x86_64 0:195.12-1.el7.centos \n\nDependency Removed:\n cockpit-system.noarch 0:195.12-1.el7.centos \n\nComplete!\n" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:13 Wednesday 03 August 2022 07:49:58 +0000 (0:00:01.879) 0:00:10.599 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/centos-7.qcow2c.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/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:23 Wednesday 03 August 2022 07:49:58 +0000 (0:00:00.436) 0:00:11.035 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:32 Wednesday 03 August 2022 07:49:58 +0000 (0:00:00.019) 0:00:11.055 ****** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:40 Wednesday 03 August 2022 07:49:59 +0000 (0:00:00.307) 0:00:11.363 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:48 Wednesday 03 August 2022 07:49:59 +0000 (0:00:00.307) 0:00:11.670 ****** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [fedora.linux_system_roles.cockpit : reload systemd] *********** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:3 Wednesday 03 August 2022 07:50:00 +0000 (0:00:00.680) 0:00:12.350 ****** RUNNING HANDLER [fedora.linux_system_roles.cockpit : restart cockpit] ********** task path: /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:7 Wednesday 03 August 2022 07:50:00 +0000 (0:00:00.000) 0:00:12.351 ****** PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.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:50:00 +0000 (0:00:00.001) 0:00:12.352 ****** =============================================================================== fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed. --- 3.88s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:6 cleanup - packages ------------------------------------------------------ 1.88s /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:1 ---------------------------- Download current linux-system-roles.selinux ----------------------------- 1.22s /tmp/tmp0d1dc1pl/tests/cockpit/tests_port.yml:6 ------------------------------- Gathering Facts --------------------------------------------------------- 1.14s /tmp/tmp0d1dc1pl/tests/cockpit/tests_port.yml:18 ------------------------------ fedora.linux_system_roles.cockpit : Create custom port configuration file --- 0.83s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 cleanup - reload systemd ------------------------------------------------ 0.68s /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:48 --------------------------- fedora.linux_system_roles.cockpit : Create custom port configuration file directory --- 0.47s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 fedora.linux_system_roles.cockpit : Check if SELinux is enabled --------- 0.44s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 cleanup - find certificates --------------------------------------------- 0.44s /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:13 --------------------------- fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role --- 0.40s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 cleanup - config file --------------------------------------------------- 0.31s /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:32 --------------------------- cleanup - port customization -------------------------------------------- 0.31s /tmp/tmp0d1dc1pl/tests/cockpit/tasks/cleanup.yml:40 --------------------------- Allow cockpit to own custom port in SELinux policy ---------------------- 0.05s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Run cockpit role -------------------------------------------------------- 0.05s /tmp/tmp0d1dc1pl/tests/cockpit/tests_port.yml:24 ------------------------------ fedora.linux_system_roles.cockpit : Set version specific variables ------ 0.04s /tmp/tmpyk8b1iha/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/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.04s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:1 include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp0d1dc1pl/tests/cockpit/tests_port.yml:56 ------------------------------ fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role --- 0.03s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1 fedora.linux_system_roles.cockpit : List active RHEL repositories ------- 0.02s /tmp/tmpyk8b1iha/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:9