# STDOUT:
---v---v---v---v---v---
Using /etc/ansible/ansible.cfg as config file
PLAY [test certificate issuance with run_after shell script] *******************
TASK [Gathering Facts] *********************************************************
Wednesday 31 August 2022 15:06:34 +0000 (0:00:00.020) 0:00:00.020 ******
ok: [sut]
TASK [Download current linux-system-roles.certificate] *************************
Wednesday 31 August 2022 15:06:35 +0000 (0:00:01.071) 0:00:01.091 ******
ok: [sut -> localhost] => {
"after": "830401555e447c33248d88222b28e82ba9a29c94",
"before": "830401555e447c33248d88222b28e82ba9a29c94",
"changed": false,
"remote_url_changed": false
}
TASK [Install cockpit] *********************************************************
Wednesday 31 August 2022 15:06:37 +0000 (0:00:02.089) 0:00:03.181 ******
TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] ***
Wednesday 31 August 2022 15:06:37 +0000 (0:00:00.056) 0:00:03.237 ******
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:06:37 +0000 (0:00:00.038) 0:00:03.276 ******
ok: [sut]
TASK [linux-system-roles.cockpit : Set version specific variables] *************
Wednesday 31 August 2022 15:06:38 +0000 (0:00:00.445) 0:00:03.722 ******
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:06:38 +0000 (0:00:00.057) 0:00:03.780 ******
skipping: [sut] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [linux-system-roles.cockpit : Enable RHEL repositories] *******************
Wednesday 31 August 2022 15:06:38 +0000 (0:00:00.032) 0:00:03.813 ******
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:06:38 +0000 (0:00:00.032) 0:00:03.845 ******
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:06:38 +0000 (0:00:00.051) 0:00:03.897 ******
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:06:38 +0000 (0:00:00.055) 0:00:03.952 ******
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:07:06 +0000 (0:00:28.348) 0:00:32.301 ******
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:07:06 +0000 (0:00:00.069) 0:00:32.371 ******
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:07:06 +0000 (0:00:00.041) 0:00:32.413 ******
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:07:07 +0000 (0:00:00.041) 0:00:32.454 ******
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:07:07 +0000 (0:00:00.061) 0:00:32.515 ******
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:07:07 +0000 (0:00:00.471) 0:00:32.986 ******
changed: [sut] => {
"changed": true,
"enabled": true,
"name": "cockpit.socket",
"state": "started",
"status": {
"Accept": "no",
"ActiveEnterTimestampMonotonic": "0",
"ActiveExitTimestampMonotonic": "0",
"ActiveState": "inactive",
"After": "sysinit.target systemd-journald.socket system.slice",
"AllowIsolate": "no",
"AssertResult": "no",
"AssertTimestampMonotonic": "0",
"Backlog": "4096",
"Before": "cockpit.service sockets.target cockpit-motd.service shutdown.target",
"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:07:08 +0000 (0:00:01.097) 0:00:34.084 ******
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:07:08 +0000 (0:00:00.039) 0:00:34.123 ******
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:07:08 +0000 (0:00:00.037) 0:00:34.161 ******
skipping: [sut] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [Allow certmonger to write into Cockpit's certificate directory] **********
Wednesday 31 August 2022 15:07:08 +0000 (0:00:00.048) 0:00:34.210 ******
ok: [sut] => {
"changed": false,
"gid": 0,
"group": "root",
"mode": "0755",
"owner": "root",
"path": "/etc/cockpit/ws-certs.d/",
"secontext": "system_u:object_r:cert_t:s0",
"size": 6,
"state": "directory",
"uid": 0
}
TASK [Generate certificate with linux-system-roles.certificate] ****************
Wednesday 31 August 2022 15:07:09 +0000 (0:00:00.271) 0:00:34.481 ******
TASK [linux-system-roles.certificate : Set version specific variables] *********
Wednesday 31 August 2022 15:07:09 +0000 (0:00:00.063) 0:00:34.544 ******
included: /WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut
TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ******
Wednesday 31 August 2022 15:07:09 +0000 (0:00:00.041) 0:00:34.586 ******
ok: [sut]
TASK [linux-system-roles.certificate : Set platform/version specific variables] ***
Wednesday 31 August 2022 15:07:09 +0000 (0:00:00.461) 0:00:35.047 ******
skipping: [sut] => (item=RedHat.yml) => {
"ansible_loop_var": "item",
"changed": false,
"item": "RedHat.yml",
"skip_reason": "Conditional result was False"
}
skipping: [sut] => (item=RedHat.yml) => {
"ansible_loop_var": "item",
"changed": false,
"item": "RedHat.yml",
"skip_reason": "Conditional result was False"
}
skipping: [sut] => (item=RedHat_9.yml) => {
"ansible_loop_var": "item",
"changed": false,
"item": "RedHat_9.yml",
"skip_reason": "Conditional result was False"
}
skipping: [sut] => (item=RedHat_9.1.yml) => {
"ansible_loop_var": "item",
"changed": false,
"item": "RedHat_9.1.yml",
"skip_reason": "Conditional result was False"
}
TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] ***
Wednesday 31 August 2022 15:07:09 +0000 (0:00:00.067) 0:00:35.114 ******
changed: [sut] => {
"changed": true,
"rc": 0,
"results": [
"Installed: python3-ply-3.11-14.el9.noarch",
"Installed: python3-pyasn1-0.4.8-6.el9.noarch",
"Installed: python3-cffi-1.14.5-5.el9.x86_64",
"Installed: python3-pycparser-2.20-6.el9.noarch",
"Installed: python3-cryptography-36.0.1-2.el9.x86_64"
]
}
TASK [linux-system-roles.certificate : Ensure provider packages are installed] ***
Wednesday 31 August 2022 15:07:12 +0000 (0:00:02.417) 0:00:37.532 ******
changed: [sut] => (item=certmonger) => {
"__certificate_provider": "certmonger",
"ansible_loop_var": "__certificate_provider",
"changed": true,
"rc": 0,
"results": [
"Installed: nss-softokn-freebl-3.79.0-13.el9_0.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: certmonger-0.79.14-7.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"
]
}
TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] ***
Wednesday 31 August 2022 15:07:15 +0000 (0:00:03.688) 0:00:41.221 ******
changed: [sut] => (item=certmonger) => {
"__certificate_provider": "certmonger",
"ansible_loop_var": "__certificate_provider",
"changed": true,
"gid": 0,
"group": "root",
"mode": "0700",
"owner": "root",
"path": "/etc/certmonger//pre-scripts",
"secontext": "unconfined_u:object_r:etc_t:s0",
"size": 6,
"state": "directory",
"uid": 0
}
TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] ***
Wednesday 31 August 2022 15:07:16 +0000 (0:00:00.318) 0:00:41.539 ******
changed: [sut] => (item=certmonger) => {
"__certificate_provider": "certmonger",
"ansible_loop_var": "__certificate_provider",
"changed": true,
"gid": 0,
"group": "root",
"mode": "0700",
"owner": "root",
"path": "/etc/certmonger//post-scripts",
"secontext": "unconfined_u:object_r:etc_t:s0",
"size": 6,
"state": "directory",
"uid": 0
}
TASK [linux-system-roles.certificate : Ensure provider service is running] *****
Wednesday 31 August 2022 15:07:16 +0000 (0:00:00.334) 0:00:41.874 ******
changed: [sut] => (item=certmonger) => {
"__certificate_provider": "certmonger",
"ansible_loop_var": "__certificate_provider",
"changed": true,
"enabled": true,
"name": "certmonger",
"state": "started",
"status": {
"ActiveEnterTimestampMonotonic": "0",
"ActiveExitTimestampMonotonic": "0",
"ActiveState": "inactive",
"After": "basic.target sysinit.target dbus-broker.service system.slice network.target syslog.target systemd-journald.socket dbus.socket",
"AllowIsolate": "no",
"AssertResult": "no",
"AssertTimestampMonotonic": "0",
"Before": "shutdown.target",
"BlockIOAccounting": "no",
"BlockIOWeight": "[not set]",
"BusName": "org.fedorahosted.certmonger",
"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": "yes",
"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",
"CleanResult": "success",
"CollectMode": "inactive",
"ConditionResult": "no",
"ConditionTimestampMonotonic": "0",
"ConfigurationDirectoryMode": "0755",
"Conflicts": "shutdown.target",
"ControlPID": "0",
"CoredumpFilter": "0x33",
"DefaultDependencies": "yes",
"DefaultMemoryLow": "0",
"DefaultMemoryMin": "0",
"Delegate": "no",
"Description": "Certificate monitoring and PKI enrollment",
"DevicePolicy": "auto",
"DynamicUser": "no",
"EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)",
"ExecMainCode": "0",
"ExecMainExitTimestampMonotonic": "0",
"ExecMainPID": "0",
"ExecMainStartTimestampMonotonic": "0",
"ExecMainStatus": "0",
"ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExitType": "main",
"FailureAction": "none",
"FileDescriptorStoreMax": "0",
"FinalKillSignal": "9",
"FragmentPath": "/usr/lib/systemd/system/certmonger.service",
"FreezerState": "running",
"GID": "[not set]",
"GuessMainPID": "yes",
"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]",
"Id": "certmonger.service",
"IgnoreOnIsolate": "no",
"IgnoreSIGPIPE": "yes",
"InactiveEnterTimestampMonotonic": "0",
"InactiveExitTimestampMonotonic": "0",
"JobRunningTimeoutUSec": "infinity",
"JobTimeoutAction": "none",
"JobTimeoutUSec": "infinity",
"KeyringMode": "private",
"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",
"LoadState": "loaded",
"LockPersonality": "no",
"LogLevelMax": "-1",
"LogRateLimitBurst": "0",
"LogRateLimitIntervalUSec": "0",
"LogsDirectoryMode": "0755",
"MainPID": "0",
"ManagedOOMMemoryPressure": "auto",
"ManagedOOMMemoryPressureLimit": "0",
"ManagedOOMPreference": "none",
"ManagedOOMSwap": "auto",
"MemoryAccounting": "yes",
"MemoryAvailable": "infinity",
"MemoryCurrent": "[not set]",
"MemoryDenyWriteExecute": "no",
"MemoryHigh": "infinity",
"MemoryLimit": "infinity",
"MemoryLow": "0",
"MemoryMax": "infinity",
"MemoryMin": "0",
"MemorySwapMax": "infinity",
"MountAPIVFS": "no",
"NFileDescriptorStore": "0",
"NRestarts": "0",
"NUMAPolicy": "n/a",
"Names": "certmonger.service",
"NeedDaemonReload": "no",
"Nice": "0",
"NoNewPrivileges": "no",
"NonBlocking": "no",
"NotifyAccess": "none",
"OOMPolicy": "stop",
"OOMScoreAdjust": "0",
"OnFailureJobMode": "replace",
"OnSuccessJobMode": "fail",
"PIDFile": "/run/certmonger.pid",
"PartOf": "dbus-broker.service",
"Perpetual": "no",
"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",
"RefuseManualStart": "no",
"RefuseManualStop": "no",
"ReloadResult": "success",
"RemainAfterExit": "no",
"RemoveIPC": "no",
"Requires": "sysinit.target system.slice dbus.socket",
"Restart": "no",
"RestartKillSignal": "15",
"RestartUSec": "100ms",
"RestrictNamespaces": "no",
"RestrictRealtime": "no",
"RestrictSUIDSGID": "no",
"Result": "success",
"RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"RuntimeDirectoryPreserve": "no",
"RuntimeMaxUSec": "infinity",
"RuntimeRandomizedExtraUSec": "0",
"SameProcessGroup": "no",
"SecureBits": "0",
"SendSIGHUP": "no",
"SendSIGKILL": "yes",
"Slice": "system.slice",
"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",
"StatusErrno": "0",
"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",
"TimeoutAbortUSec": "1min 30s",
"TimeoutCleanUSec": "infinity",
"TimeoutStartFailureMode": "terminate",
"TimeoutStartUSec": "1min 30s",
"TimeoutStopFailureMode": "terminate",
"TimeoutStopUSec": "1min 30s",
"TimerSlackNSec": "50000",
"Transient": "no",
"Type": "dbus",
"UID": "[not set]",
"UMask": "0022",
"UnitFilePreset": "disabled",
"UnitFileState": "disabled",
"UtmpMode": "init",
"WatchdogSignal": "6",
"WatchdogTimestampMonotonic": "0",
"WatchdogUSec": "infinity"
}
}
TASK [linux-system-roles.certificate : Ensure certificate requests] ************
Wednesday 31 August 2022 15:07:17 +0000 (0:00:00.782) 0:00:42.656 ******
changed: [sut] => (item={'name': 'monger-cockpit', 'dns': ['localhost', 'www.example.com'], 'ca': 'local', 'group': 'cockpit-ws', 'run_after': 'DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n'}) => {
"ansible_loop_var": "item",
"changed": true,
"item": {
"ca": "local",
"dns": [
"localhost",
"www.example.com"
],
"group": "cockpit-ws",
"name": "monger-cockpit",
"run_after": "DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n"
}
}
MSG:
Certificate requested (new). Pre/Post run hooks updated. File attributes updated.
TASK [Get PEM of certmonger's local CA] ****************************************
Wednesday 31 August 2022 15:07:18 +0000 (0:00:01.503) 0:00:44.159 ******
changed: [sut] => {
"changed": true,
"cmd": [
"openssl",
"pkcs12",
"-in",
"/var/lib/certmonger/local/creds",
"-out",
"/var/lib/certmonger/local/ca.pem",
"-nokeys",
"-nodes",
"-passin",
"pass:"
],
"delta": "0:00:00.045480",
"end": "2022-08-31 15:07:19.174981",
"rc": 0,
"start": "2022-08-31 15:07:19.129501"
}
TASK [test - cockpit works with TLS and expected certificate] ******************
Wednesday 31 August 2022 15:07:19 +0000 (0:00:00.480) 0:00:44.640 ******
ok: [sut] => {
"changed": false,
"cmd": [
"curl",
"--cacert",
"/var/lib/certmonger/local/ca.pem",
"https://localhost:9090"
],
"delta": "0:00:00.120626",
"end": "2022-08-31 15:07:19.560205",
"rc": 0,
"start": "2022-08-31 15:07:19.439579"
}
STDOUT:
Loading...
Please enable JavaScript to use the Web Console.
Validating authentication token
A modern browser is required for security, reliability, and performance.
Download a new browser for free
STDERR:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 11346 0 11346 0 0 100k 0 --:--:-- --:--:-- --:--:-- 99k
TASK [test - get certmonger tracking status] ***********************************
Wednesday 31 August 2022 15:07:19 +0000 (0:00:00.381) 0:00:45.022 ******
ok: [sut] => {
"changed": false,
"cmd": [
"getcert",
"list",
"--tracking-only",
"-f",
"/etc/pki/tls/certs/monger-cockpit.crt"
],
"delta": "0:00:00.049116",
"end": "2022-08-31 15:07:19.878225",
"rc": 0,
"start": "2022-08-31 15:07:19.829109"
}
STDOUT:
Number of certificates and requests being tracked: 1.
Request ID '20220831150717':
status: MONITORING
stuck: no
key pair storage: type=FILE,location='/etc/pki/tls/private/monger-cockpit.key'
certificate: type=FILE,location='/etc/pki/tls/certs/monger-cockpit.crt'
CA: local
issuer: CN=20ec39d8-40ad4ca9-9d8c203c-d6e3d27b,CN=Local Signing Authority
subject: CN=localhost
issued: 2022-08-31 15:07:18 UTC
expires: 2023-08-31 15:07:18 UTC
dns: localhost,www.example.com
key usage: digitalSignature,keyEncipherment
eku: id-kp-serverAuth,id-kp-clientAuth
pre-save command:
post-save command: /etc/certmonger/post-scripts/monger-cockpit-59d1099.sh
track: yes
auto-renew: yes
TASK [test - ensure certificate generation succeeded] **************************
Wednesday 31 August 2022 15:07:19 +0000 (0:00:00.316) 0:00:45.338 ******
ok: [sut] => {
"changed": false
}
MSG:
All assertions passed
TASK [test - clean up tracked certificate] *************************************
Wednesday 31 August 2022 15:07:19 +0000 (0:00:00.048) 0:00:45.386 ******
ok: [sut] => {
"changed": false,
"cmd": [
"getcert",
"stop-tracking",
"-f",
"/etc/pki/tls/certs/monger-cockpit.crt"
],
"delta": "0:00:00.037797",
"end": "2022-08-31 15:07:20.227168",
"rc": 0,
"start": "2022-08-31 15:07:20.189371"
}
STDOUT:
Request "20220831150717" removed.
TASK [test - clean up generated certificate] ***********************************
Wednesday 31 August 2022 15:07:20 +0000 (0:00:00.299) 0:00:45.686 ******
changed: [sut] => {
"changed": true,
"path": "/etc/pki/tls/certs/monger-cockpit.crt",
"state": "absent"
}
TASK [test - clean up generated private key] ***********************************
Wednesday 31 August 2022 15:07:20 +0000 (0:00:00.270) 0:00:45.956 ******
changed: [sut] => {
"changed": true,
"path": "/etc/pki/tls/private/monger-cockpit.key",
"state": "absent"
}
TASK [test - clean up copied certificate] **************************************
Wednesday 31 August 2022 15:07:20 +0000 (0:00:00.268) 0:00:46.224 ******
changed: [sut] => {
"changed": true,
"path": "/etc/cockpit/ws-certs.d/monger-cockpit.cert",
"state": "absent"
}
TASK [test - generic cleanup] **************************************************
Wednesday 31 August 2022 15:07:21 +0000 (0:00:00.266) 0:00:46.490 ******
included: /WORKDIR/dist-git-cockpit-port-selinux-OYY_yu/tests/tasks/cleanup.yml for sut
TASK [cleanup - packages] ******************************************************
Wednesday 31 August 2022 15:07:21 +0000 (0:00:00.044) 0:00:46.535 ******
changed: [sut] => {
"changed": true,
"rc": 0,
"results": [
"Removed: cockpit-bridge-275-1.el9.x86_64",
"Removed: cockpit-system-275-1.el9.noarch",
"Removed: cockpit-ws-275-1.el9.x86_64"
]
}
TASK [cleanup - find certificates] *********************************************
Wednesday 31 August 2022 15:07:32 +0000 (0:00:10.967) 0:00:57.502 ******
ok: [sut] => {
"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] **************************************************
Wednesday 31 August 2022 15:07:32 +0000 (0:00:00.415) 0:00:57.918 ******
TASK [cleanup - config file] ***************************************************
Wednesday 31 August 2022 15:07:32 +0000 (0:00:00.030) 0:00:57.948 ******
ok: [sut] => {
"changed": false,
"path": "/etc/cockpit/cockpit.conf",
"state": "absent"
}
TASK [cleanup - port customization] ********************************************
Wednesday 31 August 2022 15:07:32 +0000 (0:00:00.262) 0:00:58.211 ******
ok: [sut] => {
"changed": false,
"path": "/etc/systemd/system/cockpit.socket.d/",
"state": "absent"
}
TASK [cleanup - reload systemd] ************************************************
Wednesday 31 August 2022 15:07:33 +0000 (0:00:00.265) 0:00:58.477 ******
ok: [sut] => {
"changed": false,
"name": null,
"status": {}
}
PLAY RECAP *********************************************************************
sut : ok=33 changed=13 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0
Wednesday 31 August 2022 15:07:33 +0000 (0:00:00.680) 0:00:59.157 ******
===============================================================================
linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 28.35s
cleanup - packages ----------------------------------------------------- 10.97s
linux-system-roles.certificate : Ensure provider packages are installed --- 3.69s
linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 2.42s
Download current linux-system-roles.certificate ------------------------- 2.09s
linux-system-roles.certificate : Ensure certificate requests ------------ 1.50s
linux-system-roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled --- 1.10s
Gathering Facts --------------------------------------------------------- 1.07s
linux-system-roles.certificate : Ensure provider service is running ----- 0.78s
cleanup - reload systemd ------------------------------------------------ 0.68s
Get PEM of certmonger's local CA ---------------------------------------- 0.48s
linux-system-roles.cockpit : Clean up port configuration file for undefined custom port --- 0.47s
linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.46s
linux-system-roles.cockpit : Ensure ansible_facts used by role ---------- 0.45s
cleanup - find certificates --------------------------------------------- 0.42s
test - cockpit works with TLS and expected certificate ------------------ 0.38s
linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.33s
linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.32s
test - get certmonger tracking status ----------------------------------- 0.32s
test - clean up tracked certificate ------------------------------------- 0.30s
---^---^---^---^---^---
# 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.
[WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue:
'/etc/cockpit/ws-certs.d/' is not a directory
---^---^---^---^---^---