# 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_many_self_signed.yml ******************************************* 2 plays in /WORKDIR/git-weekly-cikhz9bx22/tests/tests_many_self_signed.yml PLAY [Issue many self-signed certificates] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tests_many_self_signed.yml:2 Saturday 06 July 2024 15:00:28 +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-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 06 July 2024 15:00:28 +0000 (0:00:00.658) 0:00:00.671 ********* included: /WORKDIR/git-weekly-cikhz9bx22/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-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 06 July 2024 15:00:28 +0000 (0:00:00.011) 0:00:00.682 ********* 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-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 06 July 2024 15:00:28 +0000 (0:00:00.018) 0:00:00.700 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 06 July 2024 15:00:29 +0000 (0:00:00.244) 0:00:00.945 ********* 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-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 06 July 2024 15:00:29 +0000 (0:00:00.021) 0:00:00.966 ********* 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" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 06 July 2024 15:00:29 +0000 (0:00:00.029) 0:00:00.996 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.3.7-6.el8.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 06 July 2024 15:00:32 +0000 (0:00:03.838) 0:00:04.835 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-2.el8.x86_64", "Installed: xmlrpc-c-client-1.51.0-9.el8.x86_64", "Installed: xmlrpc-c-1.51.0-9.el8.x86_64" ] } lsrpackages: certmonger TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 06 July 2024 15:00:37 +0000 (0:00:04.068) 0:00:08.904 ********* 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-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 06 July 2024 15:00:37 +0000 (0:00:00.277) 0:00:09.182 ********* 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-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 06 July 2024 15:00:37 +0000 (0:00:00.207) 0:00:09.389 ********* 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": "dbus.service syslog.target system.slice systemd-journald.socket network.target dbus.socket basic.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "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", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "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": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "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": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 06 July 2024 15:00:38 +0000 (0:00:00.628) 0:00:10.018 ********* changed: [sut] => (item={'name': 'mycert_many_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_many_self_signed" } } MSG: Certificate requested (new). changed: [sut] => (item={'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } } MSG: Certificate requested (new). changed: [sut] => (item={'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } } MSG: Certificate requested (new). TASK [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 06 July 2024 15:00:40 +0000 (0:00:02.193) 0:00:12.211 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_many_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_many_self_signed" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_many_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_many_self_signed" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_many_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_many_self_signed" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.039) 0:00:12.251 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.018) 0:00:12.270 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.017) 0:00:12.287 ********* 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-cikhz9bx22/tests/tests_many_self_signed.yml:18 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.023) 0:00:12.311 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tests_many_self_signed.yml:50 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.468) 0:00:12.779 ********* included: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.038) 0:00:12.818 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.010) 0:00:12.828 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.020) 0:00:12.849 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:00:40 +0000 (0:00:00.019) 0:00:12.868 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:00:41 +0000 (0:00:00.017) 0:00:12.886 ********* 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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:00:43 +0000 (0:00:02.370) 0:00:15.257 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278038.746926, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c499527db498b7eb952ad616f2f48f9f7306e5ab", "ctime": 1720278038.744926, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894939, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278038.744926, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_many_self_signed.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3934838760", "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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:00:43 +0000 (0:00:00.196) 0:00:15.453 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:00:43 +0000 (0:00:00.020) 0:00:15.474 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:00:43 +0000 (0:00:00.022) 0:00:15.496 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:00:43 +0000 (0:00:00.019) 0:00:15.516 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278038.6979256, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4c75b769923266c8e866914d9763a9ce5057cca7", "ctime": 1720278038.744926, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894912, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278038.744926, "nlink": 1, "path": "/etc/pki/tls/private/mycert_many_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "3690469603", "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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:00:43 +0000 (0:00:00.196) 0:00:15.713 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:00:43 +0000 (0:00:00.020) 0:00:15.733 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:00:43 +0000 (0:00:00.022) 0:00:15.755 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8E:AC:BE:DD:05:D0:6E:FB:B3:9B:30:50:9D:06:B1:45:D1:32:47:41" }, "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": "64:83:15:EA:5E:03:92:59:90:76:DA:5F:05:3A:78:F4:40:B6:2B:85" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "04:0A:B6:43:13:1B:61:01:CD:AC:AC:C4:53:CD:A0:1A:62:4E:D0:B8:9E:87:CD:C8:65:F5:E0:A6:D0:19:E1:99:A2:A4:F2:E1:73:5A:5E:05:9B:DA:65:85:98:85:FA:5D:8B:7F:D6:12:20:B5:AB:C5:03:7F:4A:96:AB:BE:28:52:37:73:3D:48:CB:A5:35:BB:CC:06:4D:21:32:E1:13:AD:7E:F6:5E:DE:14:7B:02:5D:9E:57:D3:30:03:0E:F8:0C:6B:EA:7E:24:19:71:6F:9C:69:21:8E:53:D1:C9:E3:EC:8F:66:48:50:D3:52:E7:A8:FB:61:85:92:67:4D:64:BF:13:CE:62:ED:7A:F8:BC:21:5A:84:3C:32:41:E2:F7:CF:E0:5C:6A:81:57:87:74:6B:5C:AC:58:E0:9E:D4:3B:D8:55:31:17:8D:C6:E7:46:46:0A:B5:E1:62:49:13:E9:8F:D4:99:4E:83:D4:A5:D1:32:19:F2:EC:66:27:9A:36:C4:B7:3C:E5:E7:F8:FD:41:04:37:54:EB:52:34:D5:B7:33:82:ED:7A:33:76:ED:AE:29:3A:2B:D5:72:3A:1E:3E:30:3F:BA:9A:C0:86:7B:71:0F:8D:05:D8:87:F7:43:3D:94:EF:28:AC:BE:23:1F:E4:A3:E3:32:A3:82:C6:B3:67:F9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706150038Z", "not_valid_before": "20240706150038Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.446) 0:00:16.201 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8E:AC:BE:DD:05:D0:6E:FB:B3:9B:30:50:9D:06:B1:45:D1:32:47:41" }, "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": "64:83:15:EA:5E:03:92:59:90:76:DA:5F:05:3A:78:F4:40:B6:2B:85" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "04:0A:B6:43:13:1B:61:01:CD:AC:AC:C4:53:CD:A0:1A:62:4E:D0:B8:9E:87:CD:C8:65:F5:E0:A6:D0:19:E1:99:A2:A4:F2:E1:73:5A:5E:05:9B:DA:65:85:98:85:FA:5D:8B:7F:D6:12:20:B5:AB:C5:03:7F:4A:96:AB:BE:28:52:37:73:3D:48:CB:A5:35:BB:CC:06:4D:21:32:E1:13:AD:7E:F6:5E:DE:14:7B:02:5D:9E:57:D3:30:03:0E:F8:0C:6B:EA:7E:24:19:71:6F:9C:69:21:8E:53:D1:C9:E3:EC:8F:66:48:50:D3:52:E7:A8:FB:61:85:92:67:4D:64:BF:13:CE:62:ED:7A:F8:BC:21:5A:84:3C:32:41:E2:F7:CF:E0:5C:6A:81:57:87:74:6B:5C:AC:58:E0:9E:D4:3B:D8:55:31:17:8D:C6:E7:46:46:0A:B5:E1:62:49:13:E9:8F:D4:99:4E:83:D4:A5:D1:32:19:F2:EC:66:27:9A:36:C4:B7:3C:E5:E7:F8:FD:41:04:37:54:EB:52:34:D5:B7:33:82:ED:7A:33:76:ED:AE:29:3A:2B:D5:72:3A:1E:3E:30:3F:BA:9A:C0:86:7B:71:0F:8D:05:D8:87:F7:43:3D:94:EF:28:AC:BE:23:1F:E4:A3:E3:32:A3:82:C6:B3:67:F9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706150038Z", "not_valid_before": "20240706150038Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.025) 0:00:16.227 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.036) 0:00:16.264 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.032) 0:00:16.297 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.023) 0:00:16.321 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.029) 0:00:16.350 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.039) 0:00:16.389 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_many_self_signed.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048242", "end": "2024-07-06 15:00:44.796423", "rc": 0, "start": "2024-07-06 15:00:44.748181" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.305) 0:00:16.694 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.020) 0:00:16.715 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.008) 0:00:16.724 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.017) 0:00:16.742 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.017) 0:00:16.760 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:00:44 +0000 (0:00:00.017) 0:00:16.777 ********* 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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:00:47 +0000 (0:00:02.372) 0:00:19.150 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278039.1979294, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a6b4702705af168d3847eaafb7300e0fdcd10ea9", "ctime": 1720278039.1959295, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894943, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278039.1959295, "nlink": 1, "path": "/etc/pki/tls/certs/other-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1184082043", "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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:00:47 +0000 (0:00:00.197) 0:00:19.347 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:00:47 +0000 (0:00:00.019) 0:00:19.367 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:00:47 +0000 (0:00:00.021) 0:00:19.389 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:00:47 +0000 (0:00:00.020) 0:00:19.410 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278039.1519291, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d1c89795f5643cd4955b328f1d64176bd43e7d6a", "ctime": 1720278039.1959295, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894941, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278039.1959295, "nlink": 1, "path": "/etc/pki/tls/private/other-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1337177171", "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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:00:47 +0000 (0:00:00.203) 0:00:19.613 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:00:47 +0000 (0:00:00.022) 0:00:19.635 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:00:47 +0000 (0:00:00.023) 0:00:19.659 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8E:AC:BE:DD:05:D0:6E:FB:B3:9B:30:50:9D:06:B1:45:D1:32:47:41" }, "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.org" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "72:6E:16:09:C5:D7:2C:73:8D:9D:7C:FD:05:DA:70:5E:5E:CE:98:84" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2A:75:A9:B1:01:2E:00:59:72:14:53:7E:E0:35:EA:60:80:E9:76:00:A1:CF:BE:89:4B:0B:55:01:37:86:00:5E:06:7A:FD:E6:A2:81:5C:13:FB:8D:BF:19:E4:E1:CB:5F:BE:62:AA:26:6B:EE:83:31:A2:26:C3:38:6C:1E:8A:62:29:38:8C:98:7A:F0:45:23:F7:E4:05:A2:8B:E6:5B:86:24:03:AD:57:C8:DB:82:D7:A7:19:04:72:A3:92:F2:40:00:8A:0F:AC:07:DA:7E:7A:61:A0:9A:CB:F4:18:96:C5:EB:72:BC:A1:10:5F:96:18:7A:5D:CF:81:DA:D2:8B:73:D9:87:CB:C4:03:0A:46:6B:03:5B:8D:2C:8B:8A:10:40:1A:F0:35:77:7A:03:FD:44:AF:AB:C5:39:6C:73:BE:0C:17:CB:78:5A:C1:6A:49:A6:BE:20:D5:27:01:81:9B:7D:FA:80:BE:39:48:4E:8E:8C:3D:53:31:77:07:1A:D8:A8:1D:BB:AD:17:E8:B9:3D:E1:87:D7:CE:2C:38:ED:D4:61:44:CE:61:3D:0F:E3:F9:D2:48:9B:56:EB:0F:D8:57:8B:2E:93:8C:F3:6F:89:F3:71:63:8F:2E:D7:51:5A:6C:53:01:5C:42:EB:85:A9:81:89:DF:30:9F:B9:84:1D:F7:E5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250706150038Z", "not_valid_before": "20240706150039Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.256) 0:00:19.916 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8E:AC:BE:DD:05:D0:6E:FB:B3:9B:30:50:9D:06:B1:45:D1:32:47:41" }, "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.org" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "72:6E:16:09:C5:D7:2C:73:8D:9D:7C:FD:05:DA:70:5E:5E:CE:98:84" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2A:75:A9:B1:01:2E:00:59:72:14:53:7E:E0:35:EA:60:80:E9:76:00:A1:CF:BE:89:4B:0B:55:01:37:86:00:5E:06:7A:FD:E6:A2:81:5C:13:FB:8D:BF:19:E4:E1:CB:5F:BE:62:AA:26:6B:EE:83:31:A2:26:C3:38:6C:1E:8A:62:29:38:8C:98:7A:F0:45:23:F7:E4:05:A2:8B:E6:5B:86:24:03:AD:57:C8:DB:82:D7:A7:19:04:72:A3:92:F2:40:00:8A:0F:AC:07:DA:7E:7A:61:A0:9A:CB:F4:18:96:C5:EB:72:BC:A1:10:5F:96:18:7A:5D:CF:81:DA:D2:8B:73:D9:87:CB:C4:03:0A:46:6B:03:5B:8D:2C:8B:8A:10:40:1A:F0:35:77:7A:03:FD:44:AF:AB:C5:39:6C:73:BE:0C:17:CB:78:5A:C1:6A:49:A6:BE:20:D5:27:01:81:9B:7D:FA:80:BE:39:48:4E:8E:8C:3D:53:31:77:07:1A:D8:A8:1D:BB:AD:17:E8:B9:3D:E1:87:D7:CE:2C:38:ED:D4:61:44:CE:61:3D:0F:E3:F9:D2:48:9B:56:EB:0F:D8:57:8B:2E:93:8C:F3:6F:89:F3:71:63:8F:2E:D7:51:5A:6C:53:01:5C:42:EB:85:A9:81:89:DF:30:9F:B9:84:1D:F7:E5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250706150038Z", "not_valid_before": "20240706150039Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.019) 0:00:19.936 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.020) 0:00:19.956 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.024) 0:00:19.980 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.020) 0:00:20.001 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.022) 0:00:20.024 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.022) 0:00:20.047 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/other-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.047907", "end": "2024-07-06 15:00:48.380367", "rc": 0, "start": "2024-07-06 15:00:48.332460" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.233) 0:00:20.280 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.023) 0:00:20.304 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.018) 0:00:20.323 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.018) 0:00:20.342 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.017) 0:00:20.359 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:00:48 +0000 (0:00:00.018) 0:00:20.378 ********* 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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:00:50 +0000 (0:00:02.375) 0:00:22.754 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278040.1519368, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3e0b537c078536051a81e6168789441761f70532", "ctime": 1720278040.1499367, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894949, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278040.1499367, "nlink": 1, "path": "/etc/pki/tls/certs/another-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3615027736", "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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.195) 0:00:22.949 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.022) 0:00:22.972 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.023) 0:00:22.995 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.021) 0:00:23.017 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278040.1059363, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "245771ed0e8cff2a813e813e6d9c11898ac58a2e", "ctime": 1720278040.1489367, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894945, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278040.1489367, "nlink": 1, "path": "/etc/pki/tls/private/another-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "3444261789", "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-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.206) 0:00:23.223 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.022) 0:00:23.246 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.022) 0:00:23.268 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8E:AC:BE:DD:05:D0:6E:FB:B3:9B:30:50:9D:06:B1:45:D1:32:47:41" }, "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.net" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "00:2A:E4:11:80:6E:FD:BF:2E:DB:7D:7F:8B:2D:E7:87:D5:70:74:EA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "61:D5:04:CE:6F:AC:53:6D:C4:84:AD:68:F2:F3:E5:CA:C1:B5:B2:60:83:C3:77:33:88:83:9F:23:A8:0D:AA:9E:17:A1:3E:65:B7:E0:11:DE:AC:5F:EC:A6:C4:4E:4C:F3:F2:80:22:3B:7F:2A:13:C0:2A:BD:97:7F:D8:F0:5D:70:53:F2:F3:E0:07:57:6A:EA:50:02:B6:15:1C:57:6F:2E:87:03:46:C5:FB:0A:89:23:D5:4B:20:E5:D4:81:18:42:5C:75:0E:52:31:72:49:5B:77:79:E1:E9:6B:83:B9:E7:F4:61:D2:4E:59:8F:71:8B:48:EA:09:9B:C1:34:27:96:13:C1:66:00:54:6B:A4:B3:9E:89:39:4D:BF:65:2C:18:57:FE:57:13:B5:05:9D:2F:50:5D:2B:86:D6:3C:ED:0F:22:80:7B:D1:D4:ED:71:0B:FE:32:8E:D2:51:E6:26:E1:E6:2C:CE:F4:88:D4:23:9A:77:91:7C:E3:40:9A:DA:40:12:EA:69:9B:87:E8:45:E8:05:DE:F9:17:9F:E0:61:07:43:28:B8:94:F4:9C:46:17:5B:C1:0B:ED:90:4D:4A:5C:24:F2:16:2C:5E:71:0F:99:3C:A5:24:A2:6C:88:26:E1:15:A5:B5:EC:C9:3C:3C:98:6A:4C:8F:7F:A4:1D:74:8D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250706150038Z", "not_valid_before": "20240706150040Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.256) 0:00:23.525 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8E:AC:BE:DD:05:D0:6E:FB:B3:9B:30:50:9D:06:B1:45:D1:32:47:41" }, "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.net" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "00:2A:E4:11:80:6E:FD:BF:2E:DB:7D:7F:8B:2D:E7:87:D5:70:74:EA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "61:D5:04:CE:6F:AC:53:6D:C4:84:AD:68:F2:F3:E5:CA:C1:B5:B2:60:83:C3:77:33:88:83:9F:23:A8:0D:AA:9E:17:A1:3E:65:B7:E0:11:DE:AC:5F:EC:A6:C4:4E:4C:F3:F2:80:22:3B:7F:2A:13:C0:2A:BD:97:7F:D8:F0:5D:70:53:F2:F3:E0:07:57:6A:EA:50:02:B6:15:1C:57:6F:2E:87:03:46:C5:FB:0A:89:23:D5:4B:20:E5:D4:81:18:42:5C:75:0E:52:31:72:49:5B:77:79:E1:E9:6B:83:B9:E7:F4:61:D2:4E:59:8F:71:8B:48:EA:09:9B:C1:34:27:96:13:C1:66:00:54:6B:A4:B3:9E:89:39:4D:BF:65:2C:18:57:FE:57:13:B5:05:9D:2F:50:5D:2B:86:D6:3C:ED:0F:22:80:7B:D1:D4:ED:71:0B:FE:32:8E:D2:51:E6:26:E1:E6:2C:CE:F4:88:D4:23:9A:77:91:7C:E3:40:9A:DA:40:12:EA:69:9B:87:E8:45:E8:05:DE:F9:17:9F:E0:61:07:43:28:B8:94:F4:9C:46:17:5B:C1:0B:ED:90:4D:4A:5C:24:F2:16:2C:5E:71:0F:99:3C:A5:24:A2:6C:88:26:E1:15:A5:B5:EC:C9:3C:3C:98:6A:4C:8F:7F:A4:1D:74:8D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250706150038Z", "not_valid_before": "20240706150040Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.020) 0:00:23.545 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.020) 0:00:23.565 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.019) 0:00:23.585 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.019) 0:00:23.605 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.022) 0:00:23.628 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:00:51 +0000 (0:00:00.022) 0:00:23.651 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/another-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048488", "end": "2024-07-06 15:00:51.987477", "rc": 0, "start": "2024-07-06 15:00:51.938989" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:00:52 +0000 (0:00:00.235) 0:00:23.887 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=68 changed=6 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Saturday 06 July 2024 15:00:52 +0000 (0:00:00.019) 0:00:23.906 ********* =============================================================================== linux-system-roles.certificate : Ensure provider packages are installed --- 4.07s /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 3.84s /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.38s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.37s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.37s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate requests ------------ 2.19s /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Gathering Facts --------------------------------------------------------- 0.66s /WORKDIR/git-weekly-cikhz9bx22/tests/tests_many_self_signed.yml:2 ------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.63s /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.47s /WORKDIR/git-weekly-cikhz9bx22/tests/tests_many_self_signed.yml:18 ------------ Parse certificate ------------------------------------------------------- 0.45s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.31s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.28s /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Parse certificate ------------------------------------------------------- 0.26s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:92 Parse certificate ------------------------------------------------------- 0.26s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:92 linux-system-roles.certificate : Check if system is ostree -------------- 0.24s /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Retrieve auto-renew flag ------------------------------------------------ 0.24s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:151 Retrieve auto-renew flag ------------------------------------------------ 0.23s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.21s /WORKDIR/git-weekly-cikhz9bx22/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Retrieve key file stats ------------------------------------------------- 0.21s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:69 Retrieve key file stats ------------------------------------------------- 0.20s /WORKDIR/git-weekly-cikhz9bx22/tests/tasks/assert_certificate_parameters.yml:69 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---