# 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-cixlf5306y/tests/tests_many_self_signed.yml PLAY [Issue many self-signed certificates] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tests_many_self_signed.yml:2 Saturday 01 June 2024 13:30:54 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 01 June 2024 13:30:54 +0000 (0:00:00.761) 0:00:00.774 ********* included: /WORKDIR/git-weekly-cixlf5306y/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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 01 June 2024 13:30:54 +0000 (0:00:00.011) 0:00:00.785 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 01 June 2024 13:30:54 +0000 (0:00:00.019) 0:00:00.805 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 01 June 2024 13:30:55 +0000 (0:00:00.257) 0:00:01.062 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 01 June 2024 13:30:55 +0000 (0:00:00.021) 0:00:01.083 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 01 June 2024 13:30:55 +0000 (0:00:00.029) 0:00:01.113 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 01 June 2024 13:30:59 +0000 (0:00:04.187) 0:00:05.301 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 01 June 2024 13:31:04 +0000 (0:00:04.704) 0:00:10.005 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 01 June 2024 13:31:04 +0000 (0:00:00.304) 0:00:10.309 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 01 June 2024 13:31:04 +0000 (0:00:00.211) 0:00:10.521 ********* 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": "systemd-journald.socket sysinit.target dbus.socket basic.target network.target syslog.target dbus.service system.slice", "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": "sysinit.target dbus.socket system.slice", "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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 01 June 2024 13:31:05 +0000 (0:00:00.667) 0:00:11.189 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 01 June 2024 13:31:07 +0000 (0:00:02.186) 0:00:13.375 ********* 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-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 01 June 2024 13:31:07 +0000 (0:00:00.038) 0:00:13.414 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 01 June 2024 13:31:07 +0000 (0:00:00.018) 0:00:13.433 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 01 June 2024 13:31:07 +0000 (0:00:00.019) 0:00:13.452 ********* 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-cixlf5306y/tests/tests_many_self_signed.yml:18 Saturday 01 June 2024 13:31:07 +0000 (0:00:00.021) 0:00:13.474 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tests_many_self_signed.yml:50 Saturday 01 June 2024 13:31:07 +0000 (0:00:00.484) 0:00:13.958 ********* included: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:31:07 +0000 (0:00:00.037) 0:00:13.996 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:31:08 +0000 (0:00:00.009) 0:00:14.005 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:31:08 +0000 (0:00:00.017) 0:00:14.022 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:31:08 +0000 (0:00:00.017) 0:00:14.039 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:29 Saturday 01 June 2024 13:31:08 +0000 (0:00:00.018) 0:00:14.058 ********* 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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:40 Saturday 01 June 2024 13:31:10 +0000 (0:00:02.488) 0:00:16.546 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717248665.9257433, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d06c759912596135da67b7bdb329a48c36f19996", "ctime": 1717248665.9227433, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894942, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717248665.9227433, "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": "3131178051", "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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:45 Saturday 01 June 2024 13:31:10 +0000 (0:00:00.205) 0:00:16.751 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:51 Saturday 01 June 2024 13:31:10 +0000 (0:00:00.019) 0:00:16.771 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:63 Saturday 01 June 2024 13:31:10 +0000 (0:00:00.021) 0:00:16.793 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:69 Saturday 01 June 2024 13:31:10 +0000 (0:00:00.020) 0:00:16.814 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717248665.875745, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bfe2f315d88e71ae4020c275d8d63644f4443518", "ctime": 1717248665.9227433, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894913, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717248665.9227433, "nlink": 1, "path": "/etc/pki/tls/private/mycert_many_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "630479366", "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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:74 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.203) 0:00:17.017 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:80 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.019) 0:00:17.037 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.021) 0:00:17.059 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BA:C8:99:FB:4B:E7:53:45:C1:6E:71:10:45:4A:A5:ED:32:66:35:CA" }, "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": "B7:26:F2:15:B2:F6:A6:9F:11:BF:01:72:57:D3:26:4D:5D:1C:35:AF" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8A:D5:18:9D:31:33:7E:73:48:B5:71:77:D1:CB:BB:07:E1:3C:84:8D:8A:EC:B6:34:43:01:1B:57:DF:D3:DD:A3:39:9A:DD:62:C2:0A:33:8A:92:A3:F8:A1:EA:EA:45:45:EC:98:DF:C2:4C:18:46:95:41:17:BE:80:21:AB:FD:38:4C:5A:55:3E:AC:FB:8B:E1:50:DC:9E:6F:34:37:AF:41:99:93:FA:BF:AF:8B:EC:00:30:08:95:12:A8:EF:D2:FA:A6:70:37:E0:C9:CC:2C:52:D7:5C:46:94:54:43:62:A9:11:02:E3:2E:56:F9:35:BA:3B:63:AA:04:B5:D3:49:6E:7B:F5:13:FD:30:E6:0A:36:8E:9B:F1:9B:66:F1:A4:E9:3E:6E:AB:B8:60:7A:3E:A0:EF:1D:3A:1A:1F:F3:8F:9E:E1:C6:BB:8D:54:4A:BF:14:B4:D3:AE:65:2D:04:3A:FC:BB:71:44:13:1C:39:B3:A9:5B:BF:AD:EB:02:F1:0B:8B:4B:33:E1:D7:80:D1:D9:73:A8:0D:3C:16:74:E5:B1:E9:5C:73:FC:88:85:79:94:FA:6B:31:21:DE:9B:43:67:1D:7A:9F:C6:95:9C:E7:D2:DF:10:0B:0E:05:82:8F:40:F5:38:85:5E:90:8C:38:22:08:C7:2B:8D:47:9A:0D:E2:6C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601133105Z", "not_valid_before": "20240601133105Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:98 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.469) 0:00:17.529 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BA:C8:99:FB:4B:E7:53:45:C1:6E:71:10:45:4A:A5:ED:32:66:35:CA" }, "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": "B7:26:F2:15:B2:F6:A6:9F:11:BF:01:72:57:D3:26:4D:5D:1C:35:AF" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8A:D5:18:9D:31:33:7E:73:48:B5:71:77:D1:CB:BB:07:E1:3C:84:8D:8A:EC:B6:34:43:01:1B:57:DF:D3:DD:A3:39:9A:DD:62:C2:0A:33:8A:92:A3:F8:A1:EA:EA:45:45:EC:98:DF:C2:4C:18:46:95:41:17:BE:80:21:AB:FD:38:4C:5A:55:3E:AC:FB:8B:E1:50:DC:9E:6F:34:37:AF:41:99:93:FA:BF:AF:8B:EC:00:30:08:95:12:A8:EF:D2:FA:A6:70:37:E0:C9:CC:2C:52:D7:5C:46:94:54:43:62:A9:11:02:E3:2E:56:F9:35:BA:3B:63:AA:04:B5:D3:49:6E:7B:F5:13:FD:30:E6:0A:36:8E:9B:F1:9B:66:F1:A4:E9:3E:6E:AB:B8:60:7A:3E:A0:EF:1D:3A:1A:1F:F3:8F:9E:E1:C6:BB:8D:54:4A:BF:14:B4:D3:AE:65:2D:04:3A:FC:BB:71:44:13:1C:39:B3:A9:5B:BF:AD:EB:02:F1:0B:8B:4B:33:E1:D7:80:D1:D9:73:A8:0D:3C:16:74:E5:B1:E9:5C:73:FC:88:85:79:94:FA:6B:31:21:DE:9B:43:67:1D:7A:9F:C6:95:9C:E7:D2:DF:10:0B:0E:05:82:8F:40:F5:38:85:5E:90:8C:38:22:08:C7:2B:8D:47:9A:0D:E2:6C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601133105Z", "not_valid_before": "20240601133105Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:102 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.021) 0:00:17.550 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:111 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.022) 0:00:17.572 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:120 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.022) 0:00:17.594 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:127 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.020) 0:00:17.615 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:138 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.024) 0:00:17.639 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:151 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.023) 0:00:17.663 ********* 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.057657", "end": "2024-06-01 13:31:11.966331", "rc": 0, "start": "2024-06-01 13:31:11.908674" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:160 Saturday 01 June 2024 13:31:11 +0000 (0:00:00.320) 0:00:17.983 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:31:12 +0000 (0:00:00.020) 0:00:18.004 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:31:12 +0000 (0:00:00.008) 0:00:18.013 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:31:12 +0000 (0:00:00.017) 0:00:18.030 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:31:12 +0000 (0:00:00.017) 0:00:18.047 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:29 Saturday 01 June 2024 13:31:12 +0000 (0:00:00.017) 0:00:18.065 ********* 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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:40 Saturday 01 June 2024 13:31:14 +0000 (0:00:02.503) 0:00:20.568 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717248666.5327232, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5f3535e02a489169647af2a9fae608f2c2cae324", "ctime": 1717248666.5297234, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894946, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717248666.5297234, "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": "2540537359", "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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:45 Saturday 01 June 2024 13:31:14 +0000 (0:00:00.203) 0:00:20.772 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:51 Saturday 01 June 2024 13:31:14 +0000 (0:00:00.020) 0:00:20.793 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:63 Saturday 01 June 2024 13:31:14 +0000 (0:00:00.022) 0:00:20.816 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:69 Saturday 01 June 2024 13:31:14 +0000 (0:00:00.020) 0:00:20.837 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717248666.4837248, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "058e8a585970f6d41a00205c4e729e964061238e", "ctime": 1717248666.5297234, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894944, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717248666.5297234, "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": "1725751671", "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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:74 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.203) 0:00:21.040 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:80 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.020) 0:00:21.061 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.023) 0:00:21.085 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BA:C8:99:FB:4B:E7:53:45:C1:6E:71:10:45:4A:A5:ED:32:66:35:CA" }, "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": "1D:76:A0:97:F8:9C:56:2A:C0:E1:72:E9:24:6A:C4:8F:96:AA:41:F7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2A:8D:79:FE:C1:52:B0:98:67:04:CB:05:94:36:95:14:56:07:7C:DF:06:BF:B4:31:BF:E8:29:38:FB:CA:8D:EB:D3:21:09:F3:BC:6F:44:9F:25:A9:76:1C:14:F2:7C:95:07:2F:BC:95:DC:01:61:A7:D9:F7:27:7F:F5:47:92:2F:0B:05:9B:49:87:6E:CA:02:AC:57:4B:BA:0B:86:DC:84:91:56:EA:B8:45:1F:C6:6F:B6:F8:FA:5C:79:6F:38:BA:12:05:9D:28:08:6A:83:5E:FD:22:4C:8E:B5:97:98:D7:03:F0:5E:7D:04:D0:AE:FA:FC:D8:F5:A2:64:5F:47:EA:E9:72:88:97:3E:0E:1A:1C:DD:A1:FC:7D:AC:E1:6B:55:5C:F7:BB:A0:AA:69:06:BC:5B:EF:27:90:A3:08:3C:1D:92:E8:7A:97:B7:65:9F:A8:23:98:E4:AA:E6:D3:5B:E7:08:F0:C9:2B:36:AC:BE:28:37:25:A6:3E:E3:20:F9:79:20:AF:7C:9C:06:DC:6A:F5:81:8F:B8:78:F5:B9:4A:D1:67:26:D5:FE:71:40:10:3A:7A:29:D2:5F:51:4F:D7:82:91:49:A6:4F:AE:F3:57:1D:95:91:57:F2:9E:FB:00:FC:D4:4B:95:BA:56:98:18:00:E8:F9:37:3F:27:A8:C6:BB" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250601133105Z", "not_valid_before": "20240601133106Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:98 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.270) 0:00:21.356 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BA:C8:99:FB:4B:E7:53:45:C1:6E:71:10:45:4A:A5:ED:32:66:35:CA" }, "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": "1D:76:A0:97:F8:9C:56:2A:C0:E1:72:E9:24:6A:C4:8F:96:AA:41:F7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2A:8D:79:FE:C1:52:B0:98:67:04:CB:05:94:36:95:14:56:07:7C:DF:06:BF:B4:31:BF:E8:29:38:FB:CA:8D:EB:D3:21:09:F3:BC:6F:44:9F:25:A9:76:1C:14:F2:7C:95:07:2F:BC:95:DC:01:61:A7:D9:F7:27:7F:F5:47:92:2F:0B:05:9B:49:87:6E:CA:02:AC:57:4B:BA:0B:86:DC:84:91:56:EA:B8:45:1F:C6:6F:B6:F8:FA:5C:79:6F:38:BA:12:05:9D:28:08:6A:83:5E:FD:22:4C:8E:B5:97:98:D7:03:F0:5E:7D:04:D0:AE:FA:FC:D8:F5:A2:64:5F:47:EA:E9:72:88:97:3E:0E:1A:1C:DD:A1:FC:7D:AC:E1:6B:55:5C:F7:BB:A0:AA:69:06:BC:5B:EF:27:90:A3:08:3C:1D:92:E8:7A:97:B7:65:9F:A8:23:98:E4:AA:E6:D3:5B:E7:08:F0:C9:2B:36:AC:BE:28:37:25:A6:3E:E3:20:F9:79:20:AF:7C:9C:06:DC:6A:F5:81:8F:B8:78:F5:B9:4A:D1:67:26:D5:FE:71:40:10:3A:7A:29:D2:5F:51:4F:D7:82:91:49:A6:4F:AE:F3:57:1D:95:91:57:F2:9E:FB:00:FC:D4:4B:95:BA:56:98:18:00:E8:F9:37:3F:27:A8:C6:BB" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250601133105Z", "not_valid_before": "20240601133106Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:102 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.020) 0:00:21.376 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:111 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.023) 0:00:21.399 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:120 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.022) 0:00:21.422 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:127 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.022) 0:00:21.444 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:138 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.025) 0:00:21.470 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:151 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.023) 0:00:21.493 ********* 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.056803", "end": "2024-06-01 13:31:15.728261", "rc": 0, "start": "2024-06-01 13:31:15.671458" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:160 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.252) 0:00:21.746 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.022) 0:00:21.768 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.008) 0:00:21.777 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.018) 0:00:21.796 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.019) 0:00:21.815 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:29 Saturday 01 June 2024 13:31:15 +0000 (0:00:00.017) 0:00:21.833 ********* 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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:40 Saturday 01 June 2024 13:31:18 +0000 (0:00:02.624) 0:00:24.457 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717248667.2207005, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6ef952f599543fc9deeec6aa314a5872d2b72a5c", "ctime": 1717248667.2177005, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894952, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717248667.2177005, "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": "1826692995", "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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:45 Saturday 01 June 2024 13:31:18 +0000 (0:00:00.205) 0:00:24.663 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:51 Saturday 01 June 2024 13:31:18 +0000 (0:00:00.019) 0:00:24.683 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:63 Saturday 01 June 2024 13:31:18 +0000 (0:00:00.022) 0:00:24.705 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:69 Saturday 01 June 2024 13:31:18 +0000 (0:00:00.021) 0:00:24.726 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717248667.172702, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a9ccac7125766ed25b24341d6ccfad4ea39cdc5e", "ctime": 1717248667.2177005, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894950, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717248667.2177005, "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": "3212904596", "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-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:74 Saturday 01 June 2024 13:31:18 +0000 (0:00:00.206) 0:00:24.933 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:80 Saturday 01 June 2024 13:31:18 +0000 (0:00:00.021) 0:00:24.954 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:31:18 +0000 (0:00:00.023) 0:00:24.978 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BA:C8:99:FB:4B:E7:53:45:C1:6E:71:10:45:4A:A5:ED:32:66:35:CA" }, "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": "A0:3D:FA:52:FC:1F:8C:F8:39:77:AC:93:22:47:DC:97:3B:6A:AC:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0B:95:6E:1F:B6:D8:83:00:87:B8:34:47:B8:46:60:0B:DB:01:6D:94:0D:3E:65:54:9A:C7:39:6D:A4:3D:E8:EA:8B:A4:00:FF:F4:36:FF:2E:B1:DD:0B:FB:71:F5:F7:06:D7:63:E0:7B:D1:3A:12:C7:F6:86:22:28:71:84:33:B4:37:FE:A8:CF:29:55:B4:2F:09:D5:A2:F2:47:B0:C2:27:3B:7B:ED:EC:95:72:BF:35:61:22:DA:7B:B6:43:53:06:5C:1A:CC:58:1A:F2:8F:97:9A:FE:A7:DA:43:4D:80:AD:16:D5:0E:F2:C1:F4:53:7B:ED:57:F9:02:EA:1C:A6:0E:71:9F:8B:B7:D4:FF:88:EE:0A:0B:F6:6E:A8:C0:FD:AC:21:78:52:29:78:7C:CE:61:06:CB:C4:45:FB:97:51:54:35:49:4E:FA:6B:92:81:AB:48:1B:68:16:2D:19:45:AB:66:E5:0A:CC:70:05:96:1B:29:53:39:0D:5E:A0:FF:F5:FF:57:2A:42:94:02:55:84:A8:96:0E:E6:5A:63:27:B3:32:E2:47:89:9B:48:44:0D:E1:D6:E7:4C:25:CC:58:9E:18:8C:51:C3:E0:83:52:9D:86:64:7F:F3:D3:71:BA:7B:1B:CE:0D:57:93:45:92:8A:BF:2E:E4:80:E2:7F:5A:94" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250601133105Z", "not_valid_before": "20240601133107Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:98 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.270) 0:00:25.249 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BA:C8:99:FB:4B:E7:53:45:C1:6E:71:10:45:4A:A5:ED:32:66:35:CA" }, "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": "A0:3D:FA:52:FC:1F:8C:F8:39:77:AC:93:22:47:DC:97:3B:6A:AC:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0B:95:6E:1F:B6:D8:83:00:87:B8:34:47:B8:46:60:0B:DB:01:6D:94:0D:3E:65:54:9A:C7:39:6D:A4:3D:E8:EA:8B:A4:00:FF:F4:36:FF:2E:B1:DD:0B:FB:71:F5:F7:06:D7:63:E0:7B:D1:3A:12:C7:F6:86:22:28:71:84:33:B4:37:FE:A8:CF:29:55:B4:2F:09:D5:A2:F2:47:B0:C2:27:3B:7B:ED:EC:95:72:BF:35:61:22:DA:7B:B6:43:53:06:5C:1A:CC:58:1A:F2:8F:97:9A:FE:A7:DA:43:4D:80:AD:16:D5:0E:F2:C1:F4:53:7B:ED:57:F9:02:EA:1C:A6:0E:71:9F:8B:B7:D4:FF:88:EE:0A:0B:F6:6E:A8:C0:FD:AC:21:78:52:29:78:7C:CE:61:06:CB:C4:45:FB:97:51:54:35:49:4E:FA:6B:92:81:AB:48:1B:68:16:2D:19:45:AB:66:E5:0A:CC:70:05:96:1B:29:53:39:0D:5E:A0:FF:F5:FF:57:2A:42:94:02:55:84:A8:96:0E:E6:5A:63:27:B3:32:E2:47:89:9B:48:44:0D:E1:D6:E7:4C:25:CC:58:9E:18:8C:51:C3:E0:83:52:9D:86:64:7F:F3:D3:71:BA:7B:1B:CE:0D:57:93:45:92:8A:BF:2E:E4:80:E2:7F:5A:94" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250601133105Z", "not_valid_before": "20240601133107Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:102 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.020) 0:00:25.269 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:111 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.020) 0:00:25.289 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:120 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.020) 0:00:25.310 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:127 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.020) 0:00:25.331 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:138 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.023) 0:00:25.354 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:151 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.022) 0:00:25.377 ********* 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.057512", "end": "2024-06-01 13:31:19.610525", "rc": 0, "start": "2024-06-01 13:31:19.553013" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:160 Saturday 01 June 2024 13:31:19 +0000 (0:00:00.250) 0:00:25.627 ********* 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 01 June 2024 13:31:19 +0000 (0:00:00.019) 0:00:25.646 ********* =============================================================================== linux-system-roles.certificate : Ensure provider packages are installed --- 4.70s /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 4.19s /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.62s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.50s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.49s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate requests ------------ 2.19s /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Gathering Facts --------------------------------------------------------- 0.76s /WORKDIR/git-weekly-cixlf5306y/tests/tests_many_self_signed.yml:2 ------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.67s /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-cixlf5306y/tests/tests_many_self_signed.yml:18 ------------ Parse certificate ------------------------------------------------------- 0.47s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.32s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.30s /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Parse certificate ------------------------------------------------------- 0.27s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:92 Parse certificate ------------------------------------------------------- 0.27s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:92 linux-system-roles.certificate : Check if system is ostree -------------- 0.26s /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Retrieve auto-renew flag ------------------------------------------------ 0.25s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:151 Retrieve auto-renew flag ------------------------------------------------ 0.25s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.21s /WORKDIR/git-weekly-cixlf5306y/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Retrieve key file stats ------------------------------------------------- 0.21s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:69 Retrieve certificate file stats ----------------------------------------- 0.21s /WORKDIR/git-weekly-cixlf5306y/tests/tasks/assert_certificate_parameters.yml:40 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---