# 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:22:09 +0000 (0:00:00.027) 0:00:00.027 ****** changed: [127.0.0.1] => { "after": "db49725d540385fcc7ab97fd13c37fac8652a304", "before": null, "changed": true } PLAY [Test cockpit_port option] ************************************************ TASK [Gathering Facts] ********************************************************* Wednesday 31 August 2022 15:22:10 +0000 (0:00:01.106) 0:00:01.134 ****** ok: [sut] TASK [Run cockpit role] ******************************************************** Wednesday 31 August 2022 15:22:11 +0000 (0:00:01.102) 0:00:02.236 ****** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 15:22:11 +0000 (0:00:00.056) 0:00:02.293 ****** included: /WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/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:22:11 +0000 (0:00:00.037) 0:00:02.330 ****** ok: [sut] TASK [linux-system-roles.cockpit : Set version specific variables] ************* Wednesday 31 August 2022 15:22:11 +0000 (0:00:00.468) 0:00:02.799 ****** ok: [sut] => (item=/WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/tests/roles/linux-system-roles.cockpit/vars/RedHat-9.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-OYY_yu/tests/roles/linux-system-roles.cockpit/vars/RedHat-9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/tests/roles/linux-system-roles.cockpit/vars/RedHat-9.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** Wednesday 31 August 2022 15:22:12 +0000 (0:00:00.055) 0:00:02.855 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* Wednesday 31 August 2022 15:22:12 +0000 (0:00:00.033) 0:00:02.889 ****** 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:22:12 +0000 (0:00:00.033) 0:00:02.922 ****** included: /WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml for sut => (item=/WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/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:22:12 +0000 (0:00:00.054) 0:00:02.977 ****** 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:22:12 +0000 (0:00:00.053) 0:00:03.030 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-system-275-1.el9.noarch", "Installed: cockpit-ws-275-1.el9.x86_64", "Installed: python3-systemd-234-18.el9.x86_64", "Installed: gdk-pixbuf2-2.42.6-2.el9.x86_64", "Installed: redhat-logos-90.4-1.el9.x86_64", "Installed: sscg-3.0.0-5.el9.x86_64", "Installed: libicu-67.1-9.el9.x86_64", "Installed: python3-dasbus-1.4-5.el9.noarch", "Installed: polkit-0.117-10.el9_0.x86_64", "Installed: polkit-libs-0.117-10.el9_0.x86_64", "Installed: polkit-pkla-compat-0.1-21.el9.x86_64", "Installed: shared-mime-info-2.1-4.el9.x86_64", "Installed: PackageKit-1.2.4-2.el9.x86_64", "Installed: sos-4.3-2.el9.noarch", "Installed: PackageKit-glib-1.2.4-2.el9.x86_64", "Installed: setroubleshoot-plugins-3.3.14-4.el9.noarch", "Installed: setroubleshoot-server-3.3.28-3.el9_0.x86_64", "Installed: libpng-2:1.6.37-12.el9.x86_64", "Installed: libproxy-0.4.15-35.el9.x86_64", "Installed: abattis-cantarell-fonts-0.301-4.el9.noarch", "Installed: libsoup-2.72.0-8.el9.x86_64", "Installed: gsettings-desktop-schemas-40.0-4.el9.x86_64", "Installed: policycoreutils-python-utils-3.4-3.el9.noarch", "Installed: libappstream-glib-0.7.18-4.el9.x86_64", "Installed: libstemmer-0-18.585svn.el9.x86_64", "Installed: glib-networking-2.68.3-3.el9.x86_64", "Installed: bzip2-1.0.8-8.el9.x86_64", "Installed: python3-pexpect-4.8.0-7.el9.noarch", "Installed: python3-ptyprocess-0.6.0-12.el9.noarch", "Installed: libjpeg-turbo-2.0.90-5.el9.x86_64", "Installed: webkit2gtk3-jsc-2.36.7-1.el9.x86_64", "Installed: libproxy-webkitgtk4-0.4.15-35.el9.x86_64", "Installed: cockpit-bridge-275-1.el9.x86_64" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** Wednesday 31 August 2022 15:22:40 +0000 (0:00:28.086) 0:00:31.117 ****** 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:22:40 +0000 (0:00:00.436) 0:00:31.554 ****** 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-1661959360.7998214-5307-211115515044445/source", "state": "file", "uid": 0 } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** Wednesday 31 August 2022 15:22:41 +0000 (0:00:00.996) 0:00:32.550 ****** ok: [sut] => { "changed": false, "cmd": [ "selinuxenabled" ], "delta": "0:00:00.003250", "end": "2022-08-31 15:22:42.115496", "failed_when_result": false, "rc": 0, "start": "2022-08-31 15:22:42.112246" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** Wednesday 31 August 2022 15:22:42 +0000 (0:00:00.423) 0:00:32.974 ****** ---^---^---^---^---^--- # 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-OYY_yu/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 ---^---^---^---^---^---