# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [test - local setup] ****************************************************** TASK [Download current linux-system-roles.selinux] ***************************** Wednesday 31 August 2022 15:27:01 +0000 (0:00:00.028) 0:00:00.028 ****** changed: [127.0.0.1] => { "after": "db49725d540385fcc7ab97fd13c37fac8652a304", "before": null, "changed": true } PLAY [Test cockpit_port option] ************************************************ TASK [Gathering Facts] ********************************************************* Wednesday 31 August 2022 15:27:03 +0000 (0:00:02.098) 0:00:02.126 ****** ok: [sut] TASK [Run cockpit role] ******************************************************** Wednesday 31 August 2022 15:27:05 +0000 (0:00:01.081) 0:00:03.208 ****** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.056) 0:00:03.265 ****** included: /WORKDIR/dist-git-cockpit-port-selinux-2ewFut/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml for sut TASK [linux-system-roles.cockpit : Ensure ansible_facts used by role] ********** Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.038) 0:00:03.303 ****** ok: [sut] TASK [linux-system-roles.cockpit : Set version specific variables] ************* Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.440) 0:00:03.743 ****** ok: [sut] => (item=/WORKDIR/dist-git-cockpit-port-selinux-2ewFut/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": [ "/WORKDIR/dist-git-cockpit-port-selinux-2ewFut/tests/roles/linux-system-roles.cockpit/vars/RedHat-8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/WORKDIR/dist-git-cockpit-port-selinux-2ewFut/tests/roles/linux-system-roles.cockpit/vars/RedHat-8.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.055) 0:00:03.799 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.031) 0:00:03.830 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Manage cockpit packages using platform specific package manager if applicable] *** Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.030) 0:00:03.861 ****** included: /WORKDIR/dist-git-cockpit-port-selinux-2ewFut/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml for sut => (item=/WORKDIR/dist-git-cockpit-port-selinux-2ewFut/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] *** Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.052) 0:00:03.913 ****** ok: [sut] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** Wednesday 31 August 2022 15:27:05 +0000 (0:00:00.054) 0:00:03.967 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: policycoreutils-python-utils-2.9-20.el8.noarch", "Installed: PackageKit-1.1.12-6.el8.x86_64", "Installed: python3-gobject-3.28.3-2.el8.x86_64", "Installed: PackageKit-glib-1.1.12-6.el8.x86_64", "Installed: redhat-logos-84.5-1.el8.x86_64", "Installed: bzip2-1.0.6-26.el8.x86_64", "Installed: cairo-1.15.12-6.el8.x86_64", "Installed: cairo-gobject-1.15.12-6.el8.x86_64", "Installed: libsoup-2.62.3-2.el8.x86_64", "Installed: abattis-cantarell-fonts-0.0.25-6.el8.noarch", "Installed: setroubleshoot-plugins-3.3.14-1.el8.noarch", "Installed: setroubleshoot-server-3.3.26-4.el8.x86_64", "Installed: cockpit-bridge-273-2.el8.x86_64", "Installed: libmodman-2.0.1-17.el8.x86_64", "Installed: cockpit-system-273-2.el8.noarch", "Installed: cockpit-ws-273-2.el8.x86_64", "Installed: libX11-1.6.8-5.el8.x86_64", "Installed: libstemmer-0-10.585svn.el8.x86_64", "Installed: libX11-common-1.6.8-5.el8.noarch", "Installed: libxcb-1.13.1-1.el8.x86_64", "Installed: libXau-1.0.9-3.el8.x86_64", "Installed: fontconfig-2.13.1-4.el8.x86_64", "Installed: fontpackages-filesystem-1.44-22.el8.noarch", "Installed: libXext-1.3.4-1.el8.x86_64", "Installed: pixman-0.38.4-2.el8.x86_64", "Installed: python3-pexpect-4.3.1-3.el8.noarch", "Installed: libproxy-0.4.15-5.2.el8.x86_64", "Installed: python3-ptyprocess-0.5.2-4.el8.noarch", "Installed: sos-4.3-2.el8.noarch", "Installed: gdk-pixbuf2-2.36.12-5.el8.x86_64", "Installed: dejavu-fonts-common-2.35-7.el8.noarch", "Installed: dejavu-sans-mono-fonts-2.35-7.el8.noarch", "Installed: python3-pydbus-0.6.0-5.el8.noarch", "Installed: python3-cairo-1.16.3-6.el8.x86_64", "Installed: gsettings-desktop-schemas-3.32.0-6.el8.x86_64", "Installed: glib-networking-2.56.1-1.1.el8.x86_64", "Installed: libXrender-0.9.10-7.el8.x86_64", "Installed: python3-systemd-234-8.el8.x86_64", "Installed: libappstream-glib-0.7.14-3.el8.x86_64", "Installed: sscg-3.0.0-5.el8.x86_64" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** Wednesday 31 August 2022 15:27:41 +0000 (0:00:35.529) 0:00:39.497 ****** changed: [sut] => { "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] ****** Wednesday 31 August 2022 15:27:41 +0000 (0:00:00.457) 0:00:39.955 ****** changed: [sut] => { "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-1661959661.8700414-5391-258350659268168/source", "state": "file", "uid": 0 } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** Wednesday 31 August 2022 15:27:42 +0000 (0:00:01.023) 0:00:40.978 ****** ok: [sut] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003910", "end": "2022-08-31 15:27:43.206981", "failed_when_result": false, "rc": 0, "start": "2022-08-31 15:27:43.203071" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** Wednesday 31 August 2022 15:27:43 +0000 (0:00:00.423) 0:00:41.402 ****** ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ERROR! couldn't resolve module/action 'selinux'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/WORKDIR/dist-git-cockpit-port-selinux-2ewFut/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 ---^---^---^---^---^---