# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_no_auto_renew.yml ********************************************** 2 plays in /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_no_auto_renew.yml:2 Saturday 06 July 2024 15:31:50 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 06 July 2024 15:31:50 +0000 (0:00:00.698) 0:00:00.711 ********* included: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 06 July 2024 15:31:50 +0000 (0:00:00.010) 0:00:00.722 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 06 July 2024 15:31:50 +0000 (0:00:00.018) 0:00:00.740 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 06 July 2024 15:31:51 +0000 (0:00:00.258) 0:00:00.999 ********* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 06 July 2024 15:31:51 +0000 (0:00:00.031) 0:00:01.030 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 06 July 2024 15:31:51 +0000 (0:00:00.036) 0:00:01.067 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64", "Installed: python3-pyasn1-0.4.8-6.el9.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 06 July 2024 15:31:55 +0000 (0:00:04.117) 0:00:05.184 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-2.el9.x86_64", "Installed: python3-pyparsing-2.4.7-9.el9.noarch", "Installed: python3-packaging-20.9-5.el9.noarch" ] } lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 06 July 2024 15:31:58 +0000 (0:00:02.837) 0:00:08.021 ********* 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] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 06 July 2024 15:31:58 +0000 (0:00:00.297) 0:00:08.319 ********* 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] ***** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 06 July 2024 15:31:58 +0000 (0:00:00.215) 0:00:08.535 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network.target dbus.socket system.slice systemd-journald.socket dbus-broker.service basic.target syslog.target sysinit.target", "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", "ControlGroupId": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "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", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "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": "22356", "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] ************ task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 06 July 2024 15:31:59 +0000 (0:00:00.722) 0:00:09.257 ********* changed: [sut] => (item={'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } } MSG: Certificate requested (new). changed: [sut] => (item={'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } } MSG: Certificate requested (new). TASK [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 06 July 2024 15:32:00 +0000 (0:00:01.390) 0:00:10.648 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 06 July 2024 15:32:00 +0000 (0:00:00.032) 0:00:10.680 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 06 July 2024 15:32:00 +0000 (0:00:00.017) 0:00:10.697 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 06 July 2024 15:32:00 +0000 (0:00:00.018) 0:00:10.716 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_no_auto_renew.yml:17 Saturday 06 July 2024 15:32:00 +0000 (0:00:00.020) 0:00:10.736 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_no_auto_renew.yml:42 Saturday 06 July 2024 15:32:01 +0000 (0:00:00.503) 0:00:11.240 ********* included: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:32:01 +0000 (0:00:00.041) 0:00:11.281 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:32:01 +0000 (0:00:00.009) 0:00:11.290 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:32:01 +0000 (0:00:00.018) 0:00:11.309 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:32:01 +0000 (0:00:00.018) 0:00:11.327 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:32:01 +0000 (0:00:00.017) 0:00:11.345 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.948) 0:00:12.293 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720279920.0767858, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3d37b5cc46c4802b296c94892a1d0d2cae57af93", "ctime": 1720279920.073786, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2358674, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720279920.073786, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_no_auto_renew.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3318148920", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.205) 0:00:12.499 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.019) 0:00:12.519 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.021) 0:00:12.541 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.020) 0:00:12.561 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720279920.0157886, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8598303bfa0fa2f74e85fe0067669ee914b6497d", "ctime": 1720279920.073786, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 270028, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720279920.073786, "nlink": 1, "path": "/etc/pki/tls/private/mycert_no_auto_renew.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2764404990", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.207) 0:00:12.768 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.019) 0:00:12.788 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:32:02 +0000 (0:00:00.021) 0:00:12.810 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:C8:4D:6D:D5:08:65:1D:2C:76:CB:AE:0C:50:43:9B:FC:3B:47:C0" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "90:24:AA:3C:16:A4:08:7F:65:AD:83:6F:66:B2:32:37:6A:BE:8E:3D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "82:3A:CE:84:C6:1A:DC:0B:E5:A2:A2:E2:40:24:3F:FD:E8:D2:9A:0E:06:73:37:2E:98:49:C8:DB:F4:27:E6:E7:83:82:9D:83:E1:EA:BF:3C:08:6C:B7:BA:C6:41:38:59:55:02:E6:28:54:C5:A4:7D:94:79:2D:BB:C5:E7:F2:56:3A:08:D9:0F:9D:D7:A0:A6:FF:FB:16:18:E6:C7:ED:B4:19:E7:2A:22:3C:B7:7F:21:87:ED:89:5F:AE:75:B6:71:E2:0E:21:96:20:6C:B0:F4:87:9E:55:5E:CA:82:D5:FD:79:50:05:17:37:26:83:89:E6:F2:8A:92:90:A8:C1:4C:5B:83:FF:F6:46:99:DD:D2:C1:12:27:6F:FC:CB:7E:EF:00:05:F3:C9:31:55:D8:46:BA:00:BF:92:BD:3C:D2:B0:0F:CA:5D:A0:88:DC:50:91:12:B9:00:8B:4C:DB:FA:3E:59:2A:30:E3:E8:29:F5:9A:2B:1F:82:43:47:FA:0C:97:BC:D1:80:06:7B:93:06:A9:F0:AB:9A:66:E4:FF:BA:56:C2:7E:D4:B8:4E:8E:10:9A:08:F4:B9:2E:70:31:53:72:35:79:BE:2E:D4:21:7B:C6:57:B1:3E:42:30:4F:41:BB:9C:E3:5F:9B:ED:ED:05:74:ED:7E:1E:09:BE:14:43:9E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706153159Z", "not_valid_before": "20240706153200Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.361) 0:00:13.171 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:C8:4D:6D:D5:08:65:1D:2C:76:CB:AE:0C:50:43:9B:FC:3B:47:C0" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "90:24:AA:3C:16:A4:08:7F:65:AD:83:6F:66:B2:32:37:6A:BE:8E:3D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "82:3A:CE:84:C6:1A:DC:0B:E5:A2:A2:E2:40:24:3F:FD:E8:D2:9A:0E:06:73:37:2E:98:49:C8:DB:F4:27:E6:E7:83:82:9D:83:E1:EA:BF:3C:08:6C:B7:BA:C6:41:38:59:55:02:E6:28:54:C5:A4:7D:94:79:2D:BB:C5:E7:F2:56:3A:08:D9:0F:9D:D7:A0:A6:FF:FB:16:18:E6:C7:ED:B4:19:E7:2A:22:3C:B7:7F:21:87:ED:89:5F:AE:75:B6:71:E2:0E:21:96:20:6C:B0:F4:87:9E:55:5E:CA:82:D5:FD:79:50:05:17:37:26:83:89:E6:F2:8A:92:90:A8:C1:4C:5B:83:FF:F6:46:99:DD:D2:C1:12:27:6F:FC:CB:7E:EF:00:05:F3:C9:31:55:D8:46:BA:00:BF:92:BD:3C:D2:B0:0F:CA:5D:A0:88:DC:50:91:12:B9:00:8B:4C:DB:FA:3E:59:2A:30:E3:E8:29:F5:9A:2B:1F:82:43:47:FA:0C:97:BC:D1:80:06:7B:93:06:A9:F0:AB:9A:66:E4:FF:BA:56:C2:7E:D4:B8:4E:8E:10:9A:08:F4:B9:2E:70:31:53:72:35:79:BE:2E:D4:21:7B:C6:57:B1:3E:42:30:4F:41:BB:9C:E3:5F:9B:ED:ED:05:74:ED:7E:1E:09:BE:14:43:9E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706153159Z", "not_valid_before": "20240706153200Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.019) 0:00:13.191 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.020) 0:00:13.211 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.020) 0:00:13.232 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.019) 0:00:13.251 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.023) 0:00:13.274 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.024) 0:00:13.299 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_no_auto_renew.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046843", "end": "2024-07-06 15:32:03.776930", "rc": 0, "start": "2024-07-06 15:32:03.730087" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.307) 0:00:13.606 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.021) 0:00:13.627 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.008) 0:00:13.635 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.018) 0:00:13.654 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.017) 0:00:13.671 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:32:03 +0000 (0:00:00.017) 0:00:13.689 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:32:04 +0000 (0:00:00.935) 0:00:14.624 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720279920.6867592, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "079010ff221c796932c5a0a999327141d8377459", "ctime": 1720279920.6847594, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2358697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720279920.6847594, "nlink": 1, "path": "/etc/pki/tls/certs/defaultcert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "86524897", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.207) 0:00:14.832 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.019) 0:00:14.852 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.021) 0:00:14.873 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.019) 0:00:14.893 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720279920.6317616, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ef87fd4d5298275c0f623a4c192c4bfaf8c83446", "ctime": 1720279920.6847594, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 270032, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720279920.6847594, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2259139138", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.206) 0:00:15.099 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.019) 0:00:15.119 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.021) 0:00:15.141 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:C8:4D:6D:D5:08:65:1D:2C:76:CB:AE:0C:50:43:9B:FC:3B:47:C0" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "FC:0A:C6:E5:5F:1A:8D:4C:1D:C0:AB:B1:93:E0:25:06:05:E9:3E:E2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "10:BF:E3:42:F8:63:FA:D8:31:98:10:B6:F5:83:ED:A8:10:BC:8E:20:41:B8:47:CA:62:F6:CC:C4:8B:1D:C2:1D:13:16:8B:C3:9E:D1:6E:86:51:01:1B:59:A2:33:DD:E6:A9:8B:5C:FD:1D:2F:DF:E8:A7:66:49:0E:4E:73:B3:77:EA:74:0E:CF:6D:0A:73:92:BB:6F:42:1B:FE:6A:B0:EB:C8:24:75:5A:9B:D7:0C:5A:D0:24:CE:B6:B9:99:74:91:5B:55:9D:1A:C1:77:15:E3:0B:78:CE:B5:10:E2:37:88:DA:2D:9B:E5:DE:48:AF:5E:9D:C1:BE:9A:AC:8C:D7:AD:FD:5C:54:C3:AC:33:24:BC:DD:81:CC:B5:7F:FE:C6:D5:41:E3:5B:A5:94:8D:EA:51:32:A0:74:5A:41:EA:4C:76:AC:6A:90:A9:13:B4:2A:86:91:A1:1D:AA:8B:00:68:3A:36:3E:AF:82:80:B9:B7:2D:B4:FA:95:83:ED:AA:81:F6:BE:A0:76:95:B6:65:2F:4E:85:1C:38:07:11:40:8C:73:DA:47:A4:0C:6E:B9:44:7C:B1:4E:D2:A9:C1:A8:E1:65:3C:4C:0E:B2:8F:83:BB:37:9F:B9:61:26:7D:48:33:16:7D:B8:87:1D:CA:55:D4:0E:DA:0F:EB:A3:81:85:15:A8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706153159Z", "not_valid_before": "20240706153200Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.251) 0:00:15.393 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:C8:4D:6D:D5:08:65:1D:2C:76:CB:AE:0C:50:43:9B:FC:3B:47:C0" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "FC:0A:C6:E5:5F:1A:8D:4C:1D:C0:AB:B1:93:E0:25:06:05:E9:3E:E2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "10:BF:E3:42:F8:63:FA:D8:31:98:10:B6:F5:83:ED:A8:10:BC:8E:20:41:B8:47:CA:62:F6:CC:C4:8B:1D:C2:1D:13:16:8B:C3:9E:D1:6E:86:51:01:1B:59:A2:33:DD:E6:A9:8B:5C:FD:1D:2F:DF:E8:A7:66:49:0E:4E:73:B3:77:EA:74:0E:CF:6D:0A:73:92:BB:6F:42:1B:FE:6A:B0:EB:C8:24:75:5A:9B:D7:0C:5A:D0:24:CE:B6:B9:99:74:91:5B:55:9D:1A:C1:77:15:E3:0B:78:CE:B5:10:E2:37:88:DA:2D:9B:E5:DE:48:AF:5E:9D:C1:BE:9A:AC:8C:D7:AD:FD:5C:54:C3:AC:33:24:BC:DD:81:CC:B5:7F:FE:C6:D5:41:E3:5B:A5:94:8D:EA:51:32:A0:74:5A:41:EA:4C:76:AC:6A:90:A9:13:B4:2A:86:91:A1:1D:AA:8B:00:68:3A:36:3E:AF:82:80:B9:B7:2D:B4:FA:95:83:ED:AA:81:F6:BE:A0:76:95:B6:65:2F:4E:85:1C:38:07:11:40:8C:73:DA:47:A4:0C:6E:B9:44:7C:B1:4E:D2:A9:C1:A8:E1:65:3C:4C:0E:B2:8F:83:BB:37:9F:B9:61:26:7D:48:33:16:7D:B8:87:1D:CA:55:D4:0E:DA:0F:EB:A3:81:85:15:A8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706153159Z", "not_valid_before": "20240706153200Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.019) 0:00:15.413 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.020) 0:00:15.433 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.019) 0:00:15.453 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.019) 0:00:15.472 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.022) 0:00:15.495 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.022) 0:00:15.518 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/defaultcert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.047782", "end": "2024-07-06 15:32:05.930707", "rc": 0, "start": "2024-07-06 15:32:05.882925" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.242) 0:00:15.760 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=50 changed=6 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Saturday 06 July 2024 15:32:05 +0000 (0:00:00.019) 0:00:15.779 ********* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 4.12s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 2.84s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.39s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Ensure python3 is installed --------------------------------------------- 0.95s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.94s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider service is running ----- 0.72s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.70s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_no_auto_renew.yml:2 ---------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_no_auto_renew.yml:17 --------------- Parse certificate ------------------------------------------------------- 0.36s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.31s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.30s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 linux-system-roles.certificate : Check if system is ostree -------------- 0.26s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Parse certificate ------------------------------------------------------- 0.25s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.24s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.22s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Retrieve certificate file stats ----------------------------------------- 0.21s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Retrieve key file stats ------------------------------------------------- 0.21s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Retrieve key file stats ------------------------------------------------- 0.21s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Retrieve certificate file stats ----------------------------------------- 0.21s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Verify each certificate ------------------------------------------------- 0.04s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_no_auto_renew.yml:42 --------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---