# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Test role with default options] ****************************************** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** Wednesday 31 August 2022 15:14:43 +0000 (0:00:00.030) 0:00:00.030 ****** 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:14:43 +0000 (0:00:00.034) 0:00:00.064 ****** ok: [sut] TASK [linux-system-roles.cockpit : Set version specific variables] ************* Wednesday 31 August 2022 15:14:43 +0000 (0:00:00.741) 0:00:00.806 ****** 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:14:44 +0000 (0:00:00.058) 0:00:00.865 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* Wednesday 31 August 2022 15:14:44 +0000 (0:00:00.034) 0:00:00.900 ****** 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:14:44 +0000 (0:00:00.031) 0:00:00.932 ****** 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:14:44 +0000 (0:00:00.052) 0:00:00.984 ****** ok: [sut] => { "ansible_facts": { "cockpit_packages": "default" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** Wednesday 31 August 2022 15:14:44 +0000 (0:00:00.053) 0:00:01.038 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-system-275-1.el9.noarch", "Installed: cockpit-ws-275-1.el9.x86_64", "Installed: libgudev-237-1.el9.x86_64", "Installed: cryptsetup-2.4.3-5.el9.x86_64", "Installed: libicu-67.1-9.el9.x86_64", "Installed: device-mapper-event-9:1.02.185-3.el9.x86_64", "Installed: device-mapper-event-libs-9:1.02.185-3.el9.x86_64", "Installed: device-mapper-multipath-0.8.7-11.el9.x86_64", "Installed: device-mapper-multipath-libs-0.8.7-11.el9.x86_64", "Installed: device-mapper-persistent-data-0.9.0-13.el9.x86_64", "Installed: python3-dasbus-1.4-5.el9.noarch", "Installed: dosfstools-4.2-3.el9.x86_64", "Installed: PackageKit-1.2.4-2.el9.x86_64", "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: libappstream-glib-0.7.18-4.el9.x86_64", "Installed: libatasmart-0.19-22.el9.x86_64", "Installed: glib-networking-2.68.3-3.el9.x86_64", "Installed: libblockdev-2.25-14.el9.x86_64", "Installed: libblockdev-crypto-2.25-14.el9.x86_64", "Installed: libblockdev-fs-2.25-14.el9.x86_64", "Installed: libblockdev-loop-2.25-14.el9.x86_64", "Installed: tracer-common-0.7.5-4.el9.noarch", "Installed: libblockdev-lvm-2.25-14.el9.x86_64", "Installed: libblockdev-mdraid-2.25-14.el9.x86_64", "Installed: libblockdev-part-2.25-14.el9.x86_64", "Installed: jose-11-3.el9.x86_64", "Installed: python3-psutil-5.8.0-12.el9.x86_64", "Installed: jq-1.6-12.el9.x86_64", "Installed: libblockdev-swap-2.25-14.el9.x86_64", "Installed: sscg-3.0.0-5.el9.x86_64", "Installed: libblockdev-utils-2.25-14.el9.x86_64", "Installed: udisks2-2.9.4-3.el9.x86_64", "Installed: libbytesize-2.5-3.el9.x86_64", "Installed: udisks2-iscsi-2.9.4-3.el9.x86_64", "Installed: udisks2-lvm2-2.9.4-3.el9.x86_64", "Installed: python3-tracer-0.7.5-4.el9.noarch", "Installed: lvm2-9:2.03.16-3.el9.x86_64", "Installed: lvm2-libs-9:2.03.16-3.el9.x86_64", "Installed: libsoup-2.72.0-8.el9.x86_64", "Installed: mdadm-4.2-5.el9.x86_64", "Installed: volume_key-libs-0.3.12-15.el9.x86_64", "Installed: cockpit-275-1.el9.x86_64", "Installed: cockpit-bridge-275-1.el9.x86_64", "Installed: libstemmer-0-18.585svn.el9.x86_64", "Installed: nspr-4.34.0-13.el9_0.x86_64", "Installed: nss-3.79.0-13.el9_0.x86_64", "Installed: nss-softokn-3.79.0-13.el9_0.x86_64", "Installed: nss-softokn-freebl-3.79.0-13.el9_0.x86_64", "Installed: webkit2gtk3-jsc-2.36.7-1.el9.x86_64", "Installed: nss-sysinit-3.79.0-13.el9_0.x86_64", "Installed: nss-util-3.79.0-13.el9_0.x86_64", "Installed: libudisks2-2.9.4-3.el9.x86_64", "Installed: oniguruma-6.9.6-1.el9.5.x86_64", "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: gsettings-desktop-schemas-40.0-4.el9.x86_64", "Installed: libjose-11-3.el9.x86_64", "Installed: python3-pexpect-4.8.0-7.el9.noarch", "Installed: libjpeg-turbo-2.0.90-5.el9.x86_64", "Installed: python3-ptyprocess-0.6.0-12.el9.noarch", "Installed: iscsi-initiator-utils-6.2.1.4-3.git2a8f9d8.el9.x86_64", "Installed: iscsi-initiator-utils-iscsiuio-6.2.1.4-3.git2a8f9d8.el9.x86_64", "Installed: python3-systemd-234-18.el9.x86_64", "Installed: isns-utils-libs-0.101-4.el9.x86_64", "Installed: gdk-pixbuf2-2.42.6-2.el9.x86_64", "Installed: libluksmeta-9-12.el9.x86_64", "Installed: redhat-logos-90.4-1.el9.x86_64", "Installed: rhsm-icons-4-1.el9.noarch", "Installed: shared-mime-info-2.1-4.el9.x86_64", "Installed: libaio-0.3.111-13.el9.x86_64", "Installed: clevis-18-106.el9.x86_64", "Installed: clevis-luks-18-106.el9.x86_64", "Installed: sos-4.3-2.el9.noarch", "Installed: luksmeta-9-12.el9.x86_64", "Installed: cockpit-packagekit-275-1.el9.noarch", "Installed: subscription-manager-cockpit-4-1.el9.noarch", "Installed: policycoreutils-python-utils-3.4-3.el9.noarch", "Installed: cockpit-storaged-275-1.el9.noarch", "Installed: bzip2-1.0.8-8.el9.x86_64", "Installed: libproxy-webkitgtk4-0.4.15-35.el9.x86_64", "Installed: tpm2-tools-5.2-1.el9.x86_64" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** Wednesday 31 August 2022 15:15:22 +0000 (0:00:38.749) 0:00:39.787 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Create custom port configuration file] ****** Wednesday 31 August 2022 15:15:22 +0000 (0:00:00.034) 0:00:39.822 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** Wednesday 31 August 2022 15:15:23 +0000 (0:00:00.035) 0:00:39.857 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** Wednesday 31 August 2022 15:15:23 +0000 (0:00:00.035) 0:00:39.893 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Clean up port configuration file for undefined custom port] *** Wednesday 31 August 2022 15:15:23 +0000 (0:00:00.036) 0:00:39.930 ****** ok: [sut] => { "changed": false, "path": "/etc/systemd/system/cockpit.socket.d/listen.conf", "state": "absent" } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled] *** Wednesday 31 August 2022 15:15:23 +0000 (0:00:00.432) 0:00:40.363 ****** changed: [sut] => { "changed": true, "enabled": true, "name": "cockpit.socket", "state": "started", "status": { "Accept": "no", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice systemd-journald.socket sysinit.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "shutdown.target sockets.target cockpit-motd.service cockpit.service", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "no", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Cockpit Web Service Socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "Documentation": "\"man:cockpit-ws(8)\"", "DynamicUser": "no", "ExecStartPost": "{ path=/bin/ln ; argv[]=/bin/ln -snf active.motd /run/cockpit/motd ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStopPost": "{ path=/bin/ln ; argv[]=/bin/ln -snf inactive.motd /run/cockpit/motd ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorName": "cockpit.socket", "FinalKillSignal": "9", "FlushPending": "no", "FragmentPath": "/usr/lib/systemd/system/cockpit.socket", "FreeBind": "no", "FreezerState": "running", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "cockpit.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13957", "LimitNPROCSoft": "13957", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13957", "LimitSIGPENDINGSoft": "13957", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:9090 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAPolicy": "n/a", "Names": "cockpit.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PassCredentials": "no", "PassPacketInfo": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "RequiredBy": "cockpit.service", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22331", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Timestamping": "off", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "20", "TriggerLimitIntervalUSec": "2s", "Triggers": "cockpit.service", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "Wants": "cockpit-motd.service", "WatchdogSignal": "6", "Writable": "no" } } TASK [linux-system-roles.cockpit : Create cockpit.conf configuration file] ***** Wednesday 31 August 2022 15:15:24 +0000 (0:00:01.102) 0:00:41.465 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Link to configured existing certificate] **** Wednesday 31 August 2022 15:15:24 +0000 (0:00:00.034) 0:00:41.500 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Link to configured existing certificate key] *** Wednesday 31 August 2022 15:15:24 +0000 (0:00:00.034) 0:00:41.534 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [test - socket is active] ************************************************* Wednesday 31 August 2022 15:15:24 +0000 (0:00:00.045) 0:00:41.580 ****** ok: [sut] => { "changed": false, "cmd": [ "systemctl", "is-active", "cockpit.socket" ], "delta": "0:00:00.009803", "end": "2022-08-31 15:15:25.142411", "rc": 0, "start": "2022-08-31 15:15:25.132608" } STDOUT: active TASK [test - socket is enabled] ************************************************ Wednesday 31 August 2022 15:15:25 +0000 (0:00:00.413) 0:00:41.993 ****** ok: [sut] => { "changed": false, "cmd": [ "systemctl", "is-enabled", "cockpit.socket" ], "delta": "0:00:00.009937", "end": "2022-08-31 15:15:25.407295", "rc": 0, "start": "2022-08-31 15:15:25.397358" } STDOUT: enabled TASK [test - cockpit works with TLS] ******************************************* Wednesday 31 August 2022 15:15:25 +0000 (0:00:00.265) 0:00:42.259 ****** changed: [sut] => { "changed": true, "checksum_dest": null, "checksum_src": "4c2bb3eb4ab9bf0860aaa1ba43ae729970d2b1da", "dest": "/run/out", "elapsed": 5, "gid": 0, "group": "root", "md5sum": "c4bc12d2bbf364f97811de1714602b7b", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:var_run_t:s0", "size": 11369, "src": "/root/.ansible/tmp/ansible-moduletmp-1661958925.9479642-j1vem20n/tmpij3nj8iz", "state": "file", "status_code": 200, "uid": 0, "url": "https://localhost:9090" } MSG: OK (unknown bytes) TASK [test - HTTP response is something sensible] ****************************** Wednesday 31 August 2022 15:15:31 +0000 (0:00:06.060) 0:00:48.319 ****** changed: [sut] => { "changed": true, "cmd": [ "grep", "id=\"login-user-input\"", "/run/out" ], "delta": "0:00:00.004116", "end": "2022-08-31 15:15:31.723734", "rc": 0, "start": "2022-08-31 15:15:31.719618" } STDOUT: TASK [test - clean up output file] ********************************************* Wednesday 31 August 2022 15:15:31 +0000 (0:00:00.255) 0:00:48.575 ****** changed: [sut] => { "changed": true, "path": "/run/out", "state": "absent" } TASK [test - no configuration file] ******************************************** Wednesday 31 August 2022 15:15:32 +0000 (0:00:00.258) 0:00:48.834 ****** ok: [sut] => { "changed": false, "failed_when_result": false, "stat": { "exists": false } } TASK [test - no port configuration file] *************************************** Wednesday 31 August 2022 15:15:32 +0000 (0:00:00.406) 0:00:49.240 ****** ok: [sut] => { "changed": false, "failed_when_result": false, "stat": { "exists": false } } TASK [include_tasks] *********************************************************** Wednesday 31 August 2022 15:15:32 +0000 (0:00:00.255) 0:00:49.496 ****** included: /WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/tests/tasks/cleanup.yml for sut TASK [cleanup - packages] ****************************************************** Wednesday 31 August 2022 15:15:32 +0000 (0:00:00.038) 0:00:49.534 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-275-1.el9.x86_64", "Removed: cockpit-bridge-275-1.el9.x86_64", "Removed: cockpit-packagekit-275-1.el9.noarch", "Removed: cockpit-storaged-275-1.el9.noarch", "Removed: cockpit-system-275-1.el9.noarch", "Removed: cockpit-ws-275-1.el9.x86_64", "Removed: subscription-manager-cockpit-4-1.el9.noarch" ] } TASK [cleanup - find certificates] ********************************************* Wednesday 31 August 2022 15:15:43 +0000 (0:00:10.739) 0:01:00.274 ****** ok: [sut] => { "changed": false, "examined": 3, "files": [ { "atime": 1661958925.9818647, "ctime": 1661958931.3599987, "dev": 51716, "gid": 0, "gr_name": "root", "inode": 864026863, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1661958931.3509986, "nlink": 1, "path": "/etc/cockpit/ws-certs.d/0-self-signed-ca.pem", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2277, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1661958931.370999, "ctime": 1661958931.3649988, "dev": 51716, "gid": 0, "gr_name": "root", "inode": 864026864, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1661958931.3509986, "nlink": 1, "path": "/etc/cockpit/ws-certs.d/0-self-signed.cert", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1822, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1661958931.370999, "ctime": 1661958931.368999, "dev": 51716, "gid": 0, "gr_name": "root", "inode": 864026865, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0600", "mtime": 1661958931.3509986, "nlink": 1, "path": "/etc/cockpit/ws-certs.d/0-self-signed.key", "pw_name": "root", "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 3, "skipped_paths": {} } MSG: All paths examined TASK [cleanup - certificates] ************************************************** Wednesday 31 August 2022 15:15:43 +0000 (0:00:00.413) 0:01:00.687 ****** changed: [sut] => (item={'path': '/etc/cockpit/ws-certs.d/0-self-signed-ca.pem', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 2277, 'inode': 864026863, 'dev': 51716, 'nlink': 1, 'atime': 1661958925.9818647, 'mtime': 1661958931.3509986, 'ctime': 1661958931.3599987, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "atime": 1661958925.9818647, "ctime": 1661958931.3599987, "dev": 51716, "gid": 0, "gr_name": "root", "inode": 864026863, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1661958931.3509986, "nlink": 1, "path": "/etc/cockpit/ws-certs.d/0-self-signed-ca.pem", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2277, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, "path": "/etc/cockpit/ws-certs.d/0-self-signed-ca.pem", "state": "absent" } changed: [sut] => (item={'path': '/etc/cockpit/ws-certs.d/0-self-signed.cert', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 1822, 'inode': 864026864, 'dev': 51716, 'nlink': 1, 'atime': 1661958931.370999, 'mtime': 1661958931.3509986, 'ctime': 1661958931.3649988, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "atime": 1661958931.370999, "ctime": 1661958931.3649988, "dev": 51716, "gid": 0, "gr_name": "root", "inode": 864026864, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1661958931.3509986, "nlink": 1, "path": "/etc/cockpit/ws-certs.d/0-self-signed.cert", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1822, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, "path": "/etc/cockpit/ws-certs.d/0-self-signed.cert", "state": "absent" } changed: [sut] => (item={'path': '/etc/cockpit/ws-certs.d/0-self-signed.key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 1704, 'inode': 864026865, 'dev': 51716, 'nlink': 1, 'atime': 1661958931.370999, 'mtime': 1661958931.3509986, 'ctime': 1661958931.368999, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "atime": 1661958931.370999, "ctime": 1661958931.368999, "dev": 51716, "gid": 0, "gr_name": "root", "inode": 864026865, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0600", "mtime": 1661958931.3509986, "nlink": 1, "path": "/etc/cockpit/ws-certs.d/0-self-signed.key", "pw_name": "root", "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, "path": "/etc/cockpit/ws-certs.d/0-self-signed.key", "state": "absent" } TASK [cleanup - config file] *************************************************** Wednesday 31 August 2022 15:15:44 +0000 (0:00:00.766) 0:01:01.454 ****** ok: [sut] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** Wednesday 31 August 2022 15:15:44 +0000 (0:00:00.256) 0:01:01.711 ****** ok: [sut] => { "changed": false, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ Wednesday 31 August 2022 15:15:45 +0000 (0:00:00.259) 0:01:01.970 ****** ok: [sut] => { "changed": false, "name": null, "status": {} } PLAY RECAP ********************************************************************* sut : ok=22 changed=7 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Wednesday 31 August 2022 15:15:45 +0000 (0:00:00.681) 0:01:02.652 ****** =============================================================================== linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 38.75s cleanup - packages ----------------------------------------------------- 10.74s test - cockpit works with TLS ------------------------------------------- 6.06s linux-system-roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled --- 1.10s cleanup - certificates -------------------------------------------------- 0.77s linux-system-roles.cockpit : Ensure ansible_facts used by role ---------- 0.74s cleanup - reload systemd ------------------------------------------------ 0.68s linux-system-roles.cockpit : Clean up port configuration file for undefined custom port --- 0.43s test - socket is active ------------------------------------------------- 0.41s cleanup - find certificates --------------------------------------------- 0.41s test - no configuration file -------------------------------------------- 0.41s test - socket is enabled ------------------------------------------------ 0.27s cleanup - port customization -------------------------------------------- 0.26s test - clean up output file --------------------------------------------- 0.26s cleanup - config file --------------------------------------------------- 0.26s test - HTTP response is something sensible ------------------------------ 0.26s test - no port configuration file --------------------------------------- 0.26s linux-system-roles.cockpit : Set version specific variables ------------- 0.06s linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included --- 0.05s linux-system-roles.cockpit : Manage cockpit packages using platform specific package manager if applicable --- 0.05s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---