# 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-cizvjcomp1/tests/tests_many_self_signed.yml PLAY [Issue many self-signed certificates] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tests_many_self_signed.yml:2 Saturday 27 July 2024 13:30:48 +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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 27 July 2024 13:30:48 +0000 (0:00:00.659) 0:00:00.672 ********* included: /WORKDIR/git-weekly-cizvjcomp1/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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 13:30:48 +0000 (0:00:00.010) 0:00:00.683 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 27 July 2024 13:30:48 +0000 (0:00:00.016) 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 27 July 2024 13:30:48 +0000 (0:00:00.247) 0:00:00.947 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 27 July 2024 13:30:48 +0000 (0:00:00.019) 0:00:00.967 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 27 July 2024 13:30:49 +0000 (0:00:00.028) 0:00:00.995 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 27 July 2024 13:30:52 +0000 (0:00:03.952) 0:00:04.948 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 27 July 2024 13:30:57 +0000 (0:00:04.314) 0:00:09.262 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 27 July 2024 13:30:57 +0000 (0:00:00.297) 0:00:09.559 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 27 July 2024 13:30:57 +0000 (0:00:00.205) 0:00:09.764 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target dbus.socket syslog.target systemd-journald.socket sysinit.target network.target system.slice dbus.service", "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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 27 July 2024 13:30:58 +0000 (0:00:00.619) 0:00:10.384 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 27 July 2024 13:31:00 +0000 (0:00:01.869) 0:00:12.253 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.037) 0:00:12.291 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.017) 0:00:12.308 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.018) 0:00:12.326 ********* 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-cizvjcomp1/tests/tests_many_self_signed.yml:18 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.020) 0:00:12.346 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tests_many_self_signed.yml:50 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.484) 0:00:12.830 ********* included: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.036) 0:00:12.866 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.007) 0:00:12.873 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.017) 0:00:12.890 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.015) 0:00:12.906 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 13:31:00 +0000 (0:00:00.015) 0:00:12.922 ********* 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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 13:31:03 +0000 (0:00:02.585) 0:00:15.508 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722087058.9706688, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9c555c1577e139b7401c3f5ea516c0e28c2f07e2", "ctime": 1722087058.9676688, "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": 1722087058.9676688, "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": "2906496439", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 13:31:03 +0000 (0:00:00.202) 0:00:15.710 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 13:31:03 +0000 (0:00:00.019) 0:00:15.730 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 13:31:03 +0000 (0:00:00.021) 0:00:15.751 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 13:31:03 +0000 (0:00:00.019) 0:00:15.771 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722087058.917668, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "60fd1584bf5f35a00e265f889f186b925f4c35d6", "ctime": 1722087058.9676688, "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": 1722087058.9676688, "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": "2217388326", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 13:31:03 +0000 (0:00:00.198) 0:00:15.969 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 13:31:03 +0000 (0:00:00.019) 0:00:15.989 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.021) 0:00:16.011 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "05:24:70:DF:99:1A:9E:9A:2E:B3:28:83:9F:AC:60:D0:8F:34:DB:EB" }, "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": "35:BD:20:0B:86:72:09:E8:45:4F:B6:1D:D6:81:74:C9:91:6C:B7:04" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "02:48:FA:7B:7E:C2:90:D9:42:01:35:4B:44:20:9C:72:E5:C6:FC:5C:42:CF:9D:31:6B:68:08:99:83:E6:61:D5:19:42:39:A0:28:43:76:91:80:C1:08:CA:16:55:11:90:DF:76:CD:86:F6:8C:C4:5A:19:8D:3E:43:5D:5F:CD:D6:52:EB:C4:4D:4D:FB:35:E4:91:BC:8A:D4:C2:3B:DB:9F:63:B1:19:DB:6C:08:56:69:4C:91:5E:1F:CC:D7:3A:2E:72:02:25:BD:6A:3B:33:91:2B:7D:EF:3C:A4:B5:8D:AA:9F:9D:05:5C:FA:49:BD:C9:64:A8:1D:B2:1B:31:DC:A5:9F:33:43:51:F2:A1:C5:8A:F5:CF:50:C9:9D:9D:25:2C:46:7C:73:17:C2:E9:B2:1F:64:94:2C:89:ED:9C:2B:19:D2:B0:C4:EC:50:BC:F1:C4:03:FF:10:27:7C:FC:4C:04:97:55:87:38:87:84:B1:A8:71:CA:05:AA:24:65:16:C4:96:D8:F0:A4:D1:1A:09:94:49:9E:0A:65:5B:5D:AD:9A:0A:FB:BD:DD:BF:C6:16:C4:64:D2:41:45:B9:4C:55:08:EB:F7:CC:BE:49:27:0C:7A:29:C1:55:A9:B4:A7:5C:1D:6F:2F:00:72:28:38:8E:F5:A9:CB:E4:48:BB:6C:FB:8A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727133058Z", "not_valid_before": "20240727133058Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.473) 0:00:16.484 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "05:24:70:DF:99:1A:9E:9A:2E:B3:28:83:9F:AC:60:D0:8F:34:DB:EB" }, "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": "35:BD:20:0B:86:72:09:E8:45:4F:B6:1D:D6:81:74:C9:91:6C:B7:04" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "02:48:FA:7B:7E:C2:90:D9:42:01:35:4B:44:20:9C:72:E5:C6:FC:5C:42:CF:9D:31:6B:68:08:99:83:E6:61:D5:19:42:39:A0:28:43:76:91:80:C1:08:CA:16:55:11:90:DF:76:CD:86:F6:8C:C4:5A:19:8D:3E:43:5D:5F:CD:D6:52:EB:C4:4D:4D:FB:35:E4:91:BC:8A:D4:C2:3B:DB:9F:63:B1:19:DB:6C:08:56:69:4C:91:5E:1F:CC:D7:3A:2E:72:02:25:BD:6A:3B:33:91:2B:7D:EF:3C:A4:B5:8D:AA:9F:9D:05:5C:FA:49:BD:C9:64:A8:1D:B2:1B:31:DC:A5:9F:33:43:51:F2:A1:C5:8A:F5:CF:50:C9:9D:9D:25:2C:46:7C:73:17:C2:E9:B2:1F:64:94:2C:89:ED:9C:2B:19:D2:B0:C4:EC:50:BC:F1:C4:03:FF:10:27:7C:FC:4C:04:97:55:87:38:87:84:B1:A8:71:CA:05:AA:24:65:16:C4:96:D8:F0:A4:D1:1A:09:94:49:9E:0A:65:5B:5D:AD:9A:0A:FB:BD:DD:BF:C6:16:C4:64:D2:41:45:B9:4C:55:08:EB:F7:CC:BE:49:27:0C:7A:29:C1:55:A9:B4:A7:5C:1D:6F:2F:00:72:28:38:8E:F5:A9:CB:E4:48:BB:6C:FB:8A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727133058Z", "not_valid_before": "20240727133058Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.021) 0:00:16.506 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.020) 0:00:16.526 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.020) 0:00:16.547 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.019) 0:00:16.566 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.024) 0:00:16.590 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.023) 0:00:16.613 ********* 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.057948", "end": "2024-07-27 13:31:04.921829", "rc": 0, "start": "2024-07-27 13:31:04.863881" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.320) 0:00:16.934 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.020) 0:00:16.955 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.007) 0:00:16.962 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:31:04 +0000 (0:00:00.017) 0:00:16.979 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:31:05 +0000 (0:00:00.016) 0:00:16.996 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 13:31:05 +0000 (0:00:00.017) 0:00:17.013 ********* 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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 13:31:07 +0000 (0:00:02.461) 0:00:19.474 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722087059.4346738, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fb2c3bb14a62bac56932195724d8262ca1cdddeb", "ctime": 1722087059.432674, "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": 1722087059.432674, "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": "3974475038", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 13:31:07 +0000 (0:00:00.201) 0:00:19.676 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 13:31:07 +0000 (0:00:00.019) 0:00:19.696 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 13:31:07 +0000 (0:00:00.021) 0:00:19.718 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 13:31:07 +0000 (0:00:00.019) 0:00:19.737 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722087059.3876734, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a5608b9897172958d12151bbbf03ad6d57f1ef9c", "ctime": 1722087059.432674, "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": 1722087059.432674, "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": "665690530", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 13:31:07 +0000 (0:00:00.200) 0:00:19.938 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 13:31:07 +0000 (0:00:00.019) 0:00:19.958 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:31:07 +0000 (0:00:00.021) 0:00:19.980 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "05:24:70:DF:99:1A:9E:9A:2E:B3:28:83:9F:AC:60:D0:8F:34:DB:EB" }, "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": "56:C6:CC:1B:BC:4E:40:B2:DF:94:46:27:14:0A:FD:54:8E:81:5C:3A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A9:6A:7C:24:D9:4D:6E:4D:DE:82:CB:90:C9:59:98:A3:79:BD:F0:F9:1F:02:75:49:09:15:D5:9F:57:31:B9:C3:B8:D8:70:DA:6E:D6:77:F6:C3:9D:D0:50:DB:E6:D6:4A:C4:B1:6C:B3:09:46:E4:CC:99:9C:68:D8:7D:04:E6:24:0C:37:6D:4D:03:03:97:5D:21:04:88:AC:45:C8:0E:29:AE:23:7F:32:7B:D3:B0:0B:44:C4:66:6A:F8:9C:AA:8B:DC:72:6D:09:AB:90:A7:B4:78:57:74:FC:42:29:BC:3E:AE:26:BA:3B:ED:08:B9:01:BA:25:13:50:BB:18:BE:93:87:F6:FF:17:DD:AD:F9:FE:0B:24:1D:19:E8:CF:B5:6C:17:1F:DB:96:0C:CF:1F:DC:1C:17:FF:5E:17:E3:5F:37:B2:F4:BA:DE:24:CF:0E:0E:C6:6A:5C:12:48:69:94:2E:F8:54:BD:A6:8B:B7:BE:CB:EF:33:59:35:30:0C:A2:8C:F7:1D:14:53:8B:E4:1B:F4:58:BE:4D:50:69:05:78:A9:8E:37:43:BF:0D:D0:4F:03:B9:F8:B0:BF:04:56:5A:CE:F5:2A:D5:4F:35:D4:21:5A:90:06:E3:A2:A3:81:55:C6:B0:F3:AC:0D:3F:F0:8B:F2:DD:8F:02:DB:09:56:ED:B9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250727133058Z", "not_valid_before": "20240727133059Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.264) 0:00:20.244 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "05:24:70:DF:99:1A:9E:9A:2E:B3:28:83:9F:AC:60:D0:8F:34:DB:EB" }, "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": "56:C6:CC:1B:BC:4E:40:B2:DF:94:46:27:14:0A:FD:54:8E:81:5C:3A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A9:6A:7C:24:D9:4D:6E:4D:DE:82:CB:90:C9:59:98:A3:79:BD:F0:F9:1F:02:75:49:09:15:D5:9F:57:31:B9:C3:B8:D8:70:DA:6E:D6:77:F6:C3:9D:D0:50:DB:E6:D6:4A:C4:B1:6C:B3:09:46:E4:CC:99:9C:68:D8:7D:04:E6:24:0C:37:6D:4D:03:03:97:5D:21:04:88:AC:45:C8:0E:29:AE:23:7F:32:7B:D3:B0:0B:44:C4:66:6A:F8:9C:AA:8B:DC:72:6D:09:AB:90:A7:B4:78:57:74:FC:42:29:BC:3E:AE:26:BA:3B:ED:08:B9:01:BA:25:13:50:BB:18:BE:93:87:F6:FF:17:DD:AD:F9:FE:0B:24:1D:19:E8:CF:B5:6C:17:1F:DB:96:0C:CF:1F:DC:1C:17:FF:5E:17:E3:5F:37:B2:F4:BA:DE:24:CF:0E:0E:C6:6A:5C:12:48:69:94:2E:F8:54:BD:A6:8B:B7:BE:CB:EF:33:59:35:30:0C:A2:8C:F7:1D:14:53:8B:E4:1B:F4:58:BE:4D:50:69:05:78:A9:8E:37:43:BF:0D:D0:4F:03:B9:F8:B0:BF:04:56:5A:CE:F5:2A:D5:4F:35:D4:21:5A:90:06:E3:A2:A3:81:55:C6:B0:F3:AC:0D:3F:F0:8B:F2:DD:8F:02:DB:09:56:ED:B9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250727133058Z", "not_valid_before": "20240727133059Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.022) 0:00:20.266 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.020) 0:00:20.287 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.019) 0:00:20.307 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.019) 0:00:20.326 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.021) 0:00:20.348 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.021) 0:00:20.370 ********* 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.058119", "end": "2024-07-27 13:31:08.612933", "rc": 0, "start": "2024-07-27 13:31:08.554814" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.254) 0:00:20.624 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.020) 0:00:20.645 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.008) 0:00:20.653 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.016) 0:00:20.670 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.016) 0:00:20.687 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 13:31:08 +0000 (0:00:00.017) 0:00:20.704 ********* 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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 13:31:11 +0000 (0:00:02.470) 0:00:23.174 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722087060.182682, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4ad4c6690b6ba28e48dd1950a5c16e2645931b79", "ctime": 1722087060.179682, "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": 1722087060.179682, "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": "2472653046", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.198) 0:00:23.373 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.019) 0:00:23.392 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.021) 0:00:23.414 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.019) 0:00:23.433 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722087060.1356816, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7a1b4cbaf011c93a8928a413ec5f2298750afe82", "ctime": 1722087060.179682, "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": 1722087060.179682, "nlink": 1, "path": "/etc/pki/tls/private/another-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "3307500468", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.200) 0:00:23.634 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.019) 0:00:23.653 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.021) 0:00:23.674 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "05:24:70:DF:99:1A:9E:9A:2E:B3:28:83:9F:AC:60:D0:8F:34:DB:EB" }, "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": "26:EA:2B:43:A6:9D:0C:76:47:00:EB:16:98:4A:95:1A:D2:38:B0:3F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AF:83:E3:AC:BC:BE:09:D4:7E:BE:B2:18:1B:91:27:2A:F0:13:E8:80:2F:F8:2A:C9:22:02:3F:1A:53:3A:9A:7F:22:BC:E2:7F:2A:2A:F9:26:9A:98:6D:6B:C8:77:4D:85:7E:4C:26:F3:40:EB:82:F8:B3:1E:9D:8E:10:21:E9:4A:B0:AF:09:93:A6:44:2B:09:36:6E:E5:A6:EC:CA:28:AA:79:C6:07:33:B5:F8:72:38:D1:77:0B:83:89:49:46:F7:6C:D5:0B:14:61:2E:22:CF:F9:CB:82:48:02:52:FA:16:F7:1C:C3:7D:1B:2B:00:CD:30:62:6F:4A:D7:D5:D5:19:DF:F2:57:05:FC:D7:9D:6E:9E:C9:2A:01:98:85:52:1C:D4:92:06:11:0A:65:E7:17:26:BE:A0:F2:28:4E:83:5F:C6:96:02:77:B4:6C:EF:1D:95:9B:6C:EC:2B:91:49:C8:FB:46:40:06:2E:AE:03:B3:81:50:E3:A5:E3:96:9E:DB:93:79:1B:4C:FE:4E:BB:24:14:81:85:F9:10:44:7E:01:C7:47:1F:DF:C5:1C:FC:6B:12:06:7D:B7:18:BF:7E:88:1E:73:03:76:44:62:E3:03:7F:28:14:C7:F6:95:F0:CA:6C:6F:27:A3:AA:58:19:5A:B0:F4:08:B6:39:A6:4A:04" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250727133058Z", "not_valid_before": "20240727133100Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.262) 0:00:23.937 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "05:24:70:DF:99:1A:9E:9A:2E:B3:28:83:9F:AC:60:D0:8F:34:DB:EB" }, "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": "26:EA:2B:43:A6:9D:0C:76:47:00:EB:16:98:4A:95:1A:D2:38:B0:3F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AF:83:E3:AC:BC:BE:09:D4:7E:BE:B2:18:1B:91:27:2A:F0:13:E8:80:2F:F8:2A:C9:22:02:3F:1A:53:3A:9A:7F:22:BC:E2:7F:2A:2A:F9:26:9A:98:6D:6B:C8:77:4D:85:7E:4C:26:F3:40:EB:82:F8:B3:1E:9D:8E:10:21:E9:4A:B0:AF:09:93:A6:44:2B:09:36:6E:E5:A6:EC:CA:28:AA:79:C6:07:33:B5:F8:72:38:D1:77:0B:83:89:49:46:F7:6C:D5:0B:14:61:2E:22:CF:F9:CB:82:48:02:52:FA:16:F7:1C:C3:7D:1B:2B:00:CD:30:62:6F:4A:D7:D5:D5:19:DF:F2:57:05:FC:D7:9D:6E:9E:C9:2A:01:98:85:52:1C:D4:92:06:11:0A:65:E7:17:26:BE:A0:F2:28:4E:83:5F:C6:96:02:77:B4:6C:EF:1D:95:9B:6C:EC:2B:91:49:C8:FB:46:40:06:2E:AE:03:B3:81:50:E3:A5:E3:96:9E:DB:93:79:1B:4C:FE:4E:BB:24:14:81:85:F9:10:44:7E:01:C7:47:1F:DF:C5:1C:FC:6B:12:06:7D:B7:18:BF:7E:88:1E:73:03:76:44:62:E3:03:7F:28:14:C7:F6:95:F0:CA:6C:6F:27:A3:AA:58:19:5A:B0:F4:08:B6:39:A6:4A:04" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250727133058Z", "not_valid_before": "20240727133100Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.020) 0:00:23.958 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 13:31:11 +0000 (0:00:00.020) 0:00:23.978 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 13:31:12 +0000 (0:00:00.021) 0:00:24.000 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 13:31:12 +0000 (0:00:00.019) 0:00:24.020 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 13:31:12 +0000 (0:00:00.021) 0:00:24.041 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 13:31:12 +0000 (0:00:00.021) 0:00:24.063 ********* 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.058548", "end": "2024-07-27 13:31:12.301579", "rc": 0, "start": "2024-07-27 13:31:12.243031" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 13:31:12 +0000 (0:00:00.251) 0:00:24.314 ********* 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 27 July 2024 13:31:12 +0000 (0:00:00.018) 0:00:24.333 ********* =============================================================================== linux-system-roles.certificate : Ensure provider packages are installed --- 4.31s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 3.95s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.59s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.47s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.46s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate requests ------------ 1.87s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Gathering Facts --------------------------------------------------------- 0.66s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_many_self_signed.yml:2 ------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.62s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_many_self_signed.yml:18 ------------ Parse certificate ------------------------------------------------------- 0.47s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.32s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.30s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Parse certificate ------------------------------------------------------- 0.26s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Parse certificate ------------------------------------------------------- 0.26s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.25s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Retrieve auto-renew flag ------------------------------------------------ 0.25s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Check if system is ostree -------------- 0.25s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.21s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Retrieve certificate file stats ----------------------------------------- 0.20s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Retrieve certificate file stats ----------------------------------------- 0.20s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---