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/tmp1dlaws1u 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-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Wednesday 03 August 2022 07:56:57 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/rhel-7.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-7.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-7.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-7.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-7.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-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 07:56:58 +0000 (0:00:01.345) 0:00:01.363 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_port.yml ******************************************************* 2 plays in /tmp/tmp6hcaky7k/tests/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmp6hcaky7k/tests/tests_port.yml:6 Wednesday 03 August 2022 07:56:58 +0000 (0:00:00.039) 0:00:01.403 ****** 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/tmp6hcaky7k/tests/tests_port.yml:18 Wednesday 03 August 2022 07:56:59 +0000 (0:00:01.001) 0:00:02.405 ****** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmp6hcaky7k/tests/tests_port.yml:24 Wednesday 03 August 2022 07:57:00 +0000 (0:00:01.027) 0:00:03.432 ****** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 Wednesday 03 August 2022 07:57:00 +0000 (0:00:00.037) 0:00:03.470 ****** included: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.cockpit : Ensure ansible_facts used by role] ********** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:57:00 +0000 (0:00:00.025) 0:00:03.495 ****** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.cockpit : Set version specific variables] ************* task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:8 Wednesday 03 August 2022 07:57:01 +0000 (0:00:00.396) 0:00:03.892 ****** ok: [/cache/rhel-7.qcow2] => (item=/tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/vars/RedHat-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-leapp", "cockpit-machines", "cockpit-pcp", "cockpit-shell" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/vars/RedHat-7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/vars/RedHat-7.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:9 Wednesday 03 August 2022 07:57:01 +0000 (0:00:00.036) 0:00:03.928 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "yum", "repolist" ], "delta": "0:00:00.236389", "end": "2022-08-03 03:57:01.477276", "rc": 0, "start": "2022-08-03 03:57:01.240887" } STDOUT: Loaded plugins: search-disabled-repos repo id repo name status rhel rhel 5,231 rhel-7-server-extras-rpms rhel-7-server-extras-rpms 1,431 rhel-ha-for-rhel-7-server-rpms rhel-ha-for-rhel-7-server-rpms 52 rhel-optional rhel-optional 4,688 repolist: 11,402 TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:17 Wednesday 03 August 2022 07:57:01 +0000 (0:00:00.653) 0:00:04.582 ****** skipping: [/cache/rhel-7.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/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 Wednesday 03 August 2022 07:57:01 +0000 (0:00:00.022) 0:00:04.604 ****** included: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml for /cache/rhel-7.qcow2 => (item=/tmp/tmp6hcaky7k/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/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml:1 Wednesday 03 August 2022 07:57:01 +0000 (0:00:00.032) 0:00:04.637 ****** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml:8 Wednesday 03 August 2022 07:57:01 +0000 (0:00:00.035) 0:00:04.672 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "changes": { "installed": [ "cockpit-system", "cockpit-ws" ] }, "rc": 0, "results": [ "Loaded plugins: search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.10-1.el7 will be installed\n--> Processing Dependency: cockpit-bridge >= 195.10-1.el7 for package: cockpit-system-195.10-1.el7.noarch\n---> Package cockpit-ws.x86_64 0:195.10-1.el7 will be installed\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.10-1.el7 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.10-1.el7 rhel 1.8 M\n cockpit-ws x86_64 195.10-1.el7 rhel 806 k\nInstalling for dependencies:\n cockpit-bridge x86_64 195.10-1.el7 rhel 553 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+1 Dependent package)\n\nTotal download size: 3.1 M\nInstalled size: 4.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 31 MB/s | 3.1 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : cockpit-bridge-195.10-1.el7.x86_64 1/3 \n Installing : cockpit-system-195.10-1.el7.noarch 2/3 \n Installing : cockpit-ws-195.10-1.el7.x86_64 3/3 \n Verifying : cockpit-system-195.10-1.el7.noarch 1/3 \n Verifying : cockpit-ws-195.10-1.el7.x86_64 2/3 \n Verifying : cockpit-bridge-195.10-1.el7.x86_64 3/3 \n\nInstalled:\n cockpit-system.noarch 0:195.10-1.el7 cockpit-ws.x86_64 0:195.10-1.el7 \n\nDependency Installed:\n cockpit-bridge.x86_64 0:195.10-1.el7 \n\nComplete!\n" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 Wednesday 03 August 2022 07:57:06 +0000 (0:00:04.553) 0:00:09.226 ****** changed: [/cache/rhel-7.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/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 Wednesday 03 August 2022 07:57:06 +0000 (0:00:00.451) 0:00:09.677 ****** NOTIFIED HANDLER linux-system-roles.cockpit : reload systemd for /cache/rhel-7.qcow2 NOTIFIED HANDLER linux-system-roles.cockpit : restart cockpit for /cache/rhel-7.qcow2 changed: [/cache/rhel-7.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-1659513427.012286-298797-280739660289892/source", "state": "file", "uid": 0 } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 Wednesday 03 August 2022 07:57:07 +0000 (0:00:00.802) 0:00:10.480 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003819", "end": "2022-08-03 03:57:07.674308", "failed_when_result": false, "rc": 0, "start": "2022-08-03 03:57:07.670489" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 Wednesday 03 August 2022 07:57:08 +0000 (0:00:00.299) 0:00:10.780 ****** 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/tmp6hcaky7k/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/tmp6hcaky7k/tests/tests_port.yml:56 Wednesday 03 August 2022 07:57:08 +0000 (0:00:00.045) 0:00:10.825 ****** included: /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml for /cache/rhel-7.qcow2 TASK [cleanup - packages] ****************************************************** task path: /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:1 Wednesday 03 August 2022 07:57:08 +0000 (0:00:00.029) 0:00:10.855 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "changes": { "removed": [ "cockpit-bridge", "cockpit-ws" ] }, "rc": 0, "results": [ "cockpit-doc is not installed", "Loaded plugins: search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.10-1.el7 will be erased\n--> Processing Dependency: cockpit-bridge >= 195.10-1.el7 for package: cockpit-system-195.10-1.el7.noarch\n---> Package cockpit-ws.x86_64 0:195.10-1.el7 will be erased\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.10-1.el7 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.10-1.el7 @rhel 868 k\n cockpit-ws x86_64 195.10-1.el7 @rhel 1.6 M\nRemoving for dependencies:\n cockpit-system noarch 195.10-1.el7 @rhel 1.8 M\n\nTransaction Summary\n================================================================================\nRemove 2 Packages (+1 Dependent package)\n\nInstalled size: 4.3 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : cockpit-system-195.10-1.el7.noarch 1/3 \n Erasing : cockpit-bridge-195.10-1.el7.x86_64 2/3 \n Erasing : cockpit-ws-195.10-1.el7.x86_64 3/3 \n Verifying : cockpit-system-195.10-1.el7.noarch 1/3 \n Verifying : cockpit-ws-195.10-1.el7.x86_64 2/3 \n Verifying : cockpit-bridge-195.10-1.el7.x86_64 3/3 \n\nRemoved:\n cockpit-bridge.x86_64 0:195.10-1.el7 cockpit-ws.x86_64 0:195.10-1.el7 \n\nDependency Removed:\n cockpit-system.noarch 0:195.10-1.el7 \n\nComplete!\n" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:13 Wednesday 03 August 2022 07:57:09 +0000 (0:00:01.814) 0:00:12.669 ****** [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-7.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/tmp6hcaky7k/tests/tasks/cleanup.yml:23 Wednesday 03 August 2022 07:57:10 +0000 (0:00:00.401) 0:00:13.070 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:32 Wednesday 03 August 2022 07:57:10 +0000 (0:00:00.018) 0:00:13.089 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:40 Wednesday 03 August 2022 07:57:10 +0000 (0:00:00.279) 0:00:13.369 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:48 Wednesday 03 August 2022 07:57:10 +0000 (0:00:00.315) 0:00:13.685 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [linux-system-roles.cockpit : reload systemd] ****************** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/handlers/main.yml:3 Wednesday 03 August 2022 07:57:11 +0000 (0:00:00.678) 0:00:14.364 ****** RUNNING HANDLER [linux-system-roles.cockpit : restart cockpit] ***************** task path: /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/handlers/main.yml:7 Wednesday 03 August 2022 07:57:11 +0000 (0:00:00.000) 0:00:14.364 ****** PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=18 changed=5 unreachable=0 failed=0 skipped=2 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:11 +0000 (0:00:00.000) 0:00:14.365 ****** =============================================================================== linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed. --- 4.55s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/setup-yum.yml:8 - cleanup - packages ------------------------------------------------------ 1.81s /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:1 ------------------------------------ set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp6hcaky7k/tests/tests_port.yml:18 -------------------------------------- Download current linux-system-roles.selinux ----------------------------- 1.00s /tmp/tmp6hcaky7k/tests/tests_port.yml:6 --------------------------------------- linux-system-roles.cockpit : Create custom port configuration file ------ 0.80s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 ----- cleanup - reload systemd ------------------------------------------------ 0.68s /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:48 ----------------------------------- linux-system-roles.cockpit : List active RHEL repositories -------------- 0.65s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:9 ------ linux-system-roles.cockpit : Create custom port configuration file directory --- 0.45s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 ----- cleanup - find certificates --------------------------------------------- 0.40s /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:13 ----------------------------------- linux-system-roles.cockpit : Ensure ansible_facts used by role ---------- 0.40s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 -- cleanup - port customization -------------------------------------------- 0.32s /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:40 ----------------------------------- linux-system-roles.cockpit : Check if SELinux is enabled ---------------- 0.30s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 ----- cleanup - config file --------------------------------------------------- 0.28s /tmp/tmp6hcaky7k/tests/tasks/cleanup.yml:32 ----------------------------------- Allow cockpit to own custom port in SELinux policy ---------------------- 0.05s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 ----- Run cockpit role -------------------------------------------------------- 0.04s /tmp/tmp6hcaky7k/tests/tests_port.yml:24 -------------------------------------- linux-system-roles.cockpit : Set version specific variables ------------- 0.04s /tmp/tmp6hcaky7k/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/tmp6hcaky7k/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.03s /tmp/tmp6hcaky7k/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 ----- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp6hcaky7k/tests/tests_port.yml:56 -------------------------------------- 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/tmp1dlaws1u 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-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Wednesday 03 August 2022 08:00:20 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-7.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-7.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-7.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-7.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-7.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-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 08:00:22 +0000 (0:00:01.360) 0:00:01.377 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.36s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_port.yml ******************************************************* 2 plays in /tmp/tmp4asdzj92/tests/cockpit/tests_port.yml PLAY [test - local setup] ****************************************************** META: ran handlers TASK [Download current linux-system-roles.selinux] ***************************** task path: /tmp/tmp4asdzj92/tests/cockpit/tests_port.yml:6 Wednesday 03 August 2022 08:00:22 +0000 (0:00:00.036) 0:00:01.413 ****** 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/tmp4asdzj92/tests/cockpit/tests_port.yml:18 Wednesday 03 August 2022 08:00:23 +0000 (0:00:01.023) 0:00:02.437 ****** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Run cockpit role] ******************************************************** task path: /tmp/tmp4asdzj92/tests/cockpit/tests_port.yml:24 Wednesday 03 August 2022 08:00:24 +0000 (0:00:00.997) 0:00:03.434 ****** TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1 Wednesday 03 August 2022 08:00:24 +0000 (0:00:00.044) 0:00:03.478 ****** included: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role] *** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 08:00:24 +0000 (0:00:00.025) 0:00:03.504 ****** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.cockpit : Set version specific variables] ****** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:7 Wednesday 03 August 2022 08:00:24 +0000 (0:00:00.386) 0:00:03.890 ****** ok: [/cache/rhel-7.qcow2] => (item=/tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-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-leapp", "cockpit-machines", "cockpit-pcp", "cockpit-shell" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-7.yml" } TASK [fedora.linux_system_roles.cockpit : List active RHEL repositories] ******* task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:9 Wednesday 03 August 2022 08:00:24 +0000 (0:00:00.036) 0:00:03.927 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "yum", "repolist" ], "delta": "0:00:00.245156", "end": "2022-08-03 04:00:25.288085", "rc": 0, "start": "2022-08-03 04:00:25.042929" } STDOUT: Loaded plugins: search-disabled-repos repo id repo name status rhel rhel 5,231 rhel-7-server-extras-rpms rhel-7-server-extras-rpms 1,431 rhel-ha-for-rhel-7-server-rpms rhel-ha-for-rhel-7-server-rpms 52 rhel-optional rhel-optional 4,688 repolist: 11,402 TASK [fedora.linux_system_roles.cockpit : Enable RHEL repositories] ************ task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:17 Wednesday 03 August 2022 08:00:25 +0000 (0:00:00.648) 0:00:04.575 ****** skipping: [/cache/rhel-7.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/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 Wednesday 03 August 2022 08:00:25 +0000 (0:00:00.022) 0:00:04.598 ****** included: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml for /cache/rhel-7.qcow2 => (item=/tmp/tmp1dlaws1u/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/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:1 Wednesday 03 August 2022 08:00:25 +0000 (0:00:00.032) 0:00:04.630 ****** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:6 Wednesday 03 August 2022 08:00:25 +0000 (0:00:00.034) 0:00:04.664 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "changes": { "installed": [ "cockpit-system", "cockpit-ws" ] }, "rc": 0, "results": [ "Loaded plugins: search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.10-1.el7 will be installed\n--> Processing Dependency: cockpit-bridge >= 195.10-1.el7 for package: cockpit-system-195.10-1.el7.noarch\n---> Package cockpit-ws.x86_64 0:195.10-1.el7 will be installed\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.10-1.el7 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.10-1.el7 rhel 1.8 M\n cockpit-ws x86_64 195.10-1.el7 rhel 806 k\nInstalling for dependencies:\n cockpit-bridge x86_64 195.10-1.el7 rhel 553 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+1 Dependent package)\n\nTotal download size: 3.1 M\nInstalled size: 4.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 35 MB/s | 3.1 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : cockpit-bridge-195.10-1.el7.x86_64 1/3 \n Installing : cockpit-system-195.10-1.el7.noarch 2/3 \n Installing : cockpit-ws-195.10-1.el7.x86_64 3/3 \n Verifying : cockpit-system-195.10-1.el7.noarch 1/3 \n Verifying : cockpit-ws-195.10-1.el7.x86_64 2/3 \n Verifying : cockpit-bridge-195.10-1.el7.x86_64 3/3 \n\nInstalled:\n cockpit-system.noarch 0:195.10-1.el7 cockpit-ws.x86_64 0:195.10-1.el7 \n\nDependency Installed:\n cockpit-bridge.x86_64 0:195.10-1.el7 \n\nComplete!\n" ] } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 Wednesday 03 August 2022 08:00:29 +0000 (0:00:04.398) 0:00:09.063 ****** changed: [/cache/rhel-7.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/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 Wednesday 03 August 2022 08:00:30 +0000 (0:00:00.424) 0:00:09.488 ****** NOTIFIED HANDLER fedora.linux_system_roles.cockpit : reload systemd for /cache/rhel-7.qcow2 NOTIFIED HANDLER fedora.linux_system_roles.cockpit : restart cockpit for /cache/rhel-7.qcow2 changed: [/cache/rhel-7.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-1659513630.2254581-301604-21701250597984/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.cockpit : Check if SELinux is enabled] ********* task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 Wednesday 03 August 2022 08:00:30 +0000 (0:00:00.791) 0:00:10.280 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.004206", "end": "2022-08-03 04:00:31.329589", "failed_when_result": false, "rc": 0, "start": "2022-08-03 04:00:31.325383" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Wednesday 03 August 2022 08:00:31 +0000 (0:00:00.338) 0:00:10.618 ****** 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/tmp4asdzj92/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/tmp4asdzj92/tests/cockpit/tests_port.yml:56 Wednesday 03 August 2022 08:00:31 +0000 (0:00:00.044) 0:00:10.663 ****** included: /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml for /cache/rhel-7.qcow2 TASK [cleanup - packages] ****************************************************** task path: /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:1 Wednesday 03 August 2022 08:00:31 +0000 (0:00:00.031) 0:00:10.695 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "changes": { "removed": [ "cockpit-bridge", "cockpit-ws" ] }, "rc": 0, "results": [ "cockpit-doc is not installed", "Loaded plugins: search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.10-1.el7 will be erased\n--> Processing Dependency: cockpit-bridge >= 195.10-1.el7 for package: cockpit-system-195.10-1.el7.noarch\n---> Package cockpit-ws.x86_64 0:195.10-1.el7 will be erased\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.10-1.el7 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.10-1.el7 @rhel 868 k\n cockpit-ws x86_64 195.10-1.el7 @rhel 1.6 M\nRemoving for dependencies:\n cockpit-system noarch 195.10-1.el7 @rhel 1.8 M\n\nTransaction Summary\n================================================================================\nRemove 2 Packages (+1 Dependent package)\n\nInstalled size: 4.3 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : cockpit-system-195.10-1.el7.noarch 1/3 \n Erasing : cockpit-bridge-195.10-1.el7.x86_64 2/3 \n Erasing : cockpit-ws-195.10-1.el7.x86_64 3/3 \n Verifying : cockpit-system-195.10-1.el7.noarch 1/3 \n Verifying : cockpit-ws-195.10-1.el7.x86_64 2/3 \n Verifying : cockpit-bridge-195.10-1.el7.x86_64 3/3 \n\nRemoved:\n cockpit-bridge.x86_64 0:195.10-1.el7 cockpit-ws.x86_64 0:195.10-1.el7 \n\nDependency Removed:\n cockpit-system.noarch 0:195.10-1.el7 \n\nComplete!\n" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:13 Wednesday 03 August 2022 08:00:33 +0000 (0:00:01.859) 0:00:12.554 ****** [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-7.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/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:23 Wednesday 03 August 2022 08:00:33 +0000 (0:00:00.428) 0:00:12.983 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:32 Wednesday 03 August 2022 08:00:33 +0000 (0:00:00.021) 0:00:13.005 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:40 Wednesday 03 August 2022 08:00:34 +0000 (0:00:00.330) 0:00:13.335 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:48 Wednesday 03 August 2022 08:00:34 +0000 (0:00:00.335) 0:00:13.671 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "name": null, "status": {} } RUNNING HANDLER [fedora.linux_system_roles.cockpit : reload systemd] *********** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:3 Wednesday 03 August 2022 08:00:35 +0000 (0:00:00.715) 0:00:14.387 ****** RUNNING HANDLER [fedora.linux_system_roles.cockpit : restart cockpit] ********** task path: /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/handlers/main.yml:7 Wednesday 03 August 2022 08:00:35 +0000 (0:00:00.000) 0:00:14.388 ****** PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=18 changed=5 unreachable=0 failed=0 skipped=2 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:00:35 +0000 (0:00:00.001) 0:00:14.390 ****** =============================================================================== fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed. --- 4.40s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:6 cleanup - packages ------------------------------------------------------ 1.86s /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:1 ---------------------------- set up internal repositories -------------------------------------------- 1.36s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Download current linux-system-roles.selinux ----------------------------- 1.02s /tmp/tmp4asdzj92/tests/cockpit/tests_port.yml:6 ------------------------------- Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmp4asdzj92/tests/cockpit/tests_port.yml:18 ------------------------------ fedora.linux_system_roles.cockpit : Create custom port configuration file --- 0.79s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 cleanup - reload systemd ------------------------------------------------ 0.72s /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:48 --------------------------- fedora.linux_system_roles.cockpit : List active RHEL repositories ------- 0.65s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:9 cleanup - find certificates --------------------------------------------- 0.43s /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:13 --------------------------- fedora.linux_system_roles.cockpit : Create custom port configuration file directory --- 0.42s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role --- 0.39s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 fedora.linux_system_roles.cockpit : Check if SELinux is enabled --------- 0.34s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 cleanup - port customization -------------------------------------------- 0.34s /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:40 --------------------------- cleanup - config file --------------------------------------------------- 0.33s /tmp/tmp4asdzj92/tests/cockpit/tasks/cleanup.yml:32 --------------------------- Allow cockpit to own custom port in SELinux policy ---------------------- 0.04s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Run cockpit role -------------------------------------------------------- 0.04s /tmp/tmp4asdzj92/tests/cockpit/tests_port.yml:24 ------------------------------ fedora.linux_system_roles.cockpit : Set version specific variables ------ 0.04s /tmp/tmp1dlaws1u/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.03s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-yum.yml:1 fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.03s /tmp/tmp1dlaws1u/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp4asdzj92/tests/cockpit/tests_port.yml:56 ------------------------------