# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] 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.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-ci5kcb7zwj/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_no_auto_renew.yml ********************************************** 2 plays in /WORKDIR/git-weekly-ci5kcb7zwj/tests/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tests_no_auto_renew.yml:2 Saturday 13 July 2024 13:31:45 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 13 July 2024 13:31:46 +0000 (0:00:00.839) 0:00:00.852 ********* included: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 13 July 2024 13:31:46 +0000 (0:00:00.011) 0:00:00.863 ********* skipping: [sut] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 13 July 2024 13:31:46 +0000 (0:00:00.017) 0:00:00.881 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 13 July 2024 13:31:46 +0000 (0:00:00.236) 0:00:01.118 ********* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 13 July 2024 13:31:46 +0000 (0:00:00.014) 0:00:01.133 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 13 July 2024 13:31:46 +0000 (0:00:00.023) 0:00:01.156 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.3.7-6.el8.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 13 July 2024 13:31:50 +0000 (0:00:03.692) 0:00:04.848 ********* 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 [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 13 July 2024 13:31:54 +0000 (0:00:03.962) 0:00:08.811 ********* 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 [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 13 July 2024 13:31:54 +0000 (0:00:00.277) 0:00:09.089 ********* 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 [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 13 July 2024 13:31:54 +0000 (0:00:00.205) 0:00:09.294 ********* 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": "syslog.target dbus.socket basic.target systemd-journald.socket sysinit.target dbus.service system.slice network.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "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 [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 13 July 2024 13:31:55 +0000 (0:00:00.670) 0:00:09.964 ********* changed: [sut] => (item={'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } } MSG: Certificate requested (new). changed: [sut] => (item={'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 13 July 2024 13:31:56 +0000 (0:00:01.266) 0:00:11.231 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 13 July 2024 13:31:56 +0000 (0:00:00.034) 0:00:11.265 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 13 July 2024 13:31:56 +0000 (0:00:00.019) 0:00:11.285 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 13 July 2024 13:31:56 +0000 (0:00:00.018) 0:00:11.303 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tests_no_auto_renew.yml:17 Saturday 13 July 2024 13:31:56 +0000 (0:00:00.030) 0:00:11.334 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tests_no_auto_renew.yml:42 Saturday 13 July 2024 13:31:57 +0000 (0:00:00.600) 0:00:11.934 ********* included: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_no_auto_renew.crt', 'key_path': '/etc/pki/tls/private/mycert_no_auto_renew.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': False}) included: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/defaultcert.crt', 'key_path': '/etc/pki/tls/private/defaultcert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': True}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:2 Saturday 13 July 2024 13:31:57 +0000 (0:00:00.021) 0:00:11.956 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:9 Saturday 13 July 2024 13:31:57 +0000 (0:00:00.009) 0:00:11.965 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:14 Saturday 13 July 2024 13:31:57 +0000 (0:00:00.012) 0:00:11.977 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:18 Saturday 13 July 2024 13:31:57 +0000 (0:00:00.011) 0:00:11.989 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:28 Saturday 13 July 2024 13:31:57 +0000 (0:00:00.013) 0:00:12.002 ********* 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-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:38 Saturday 13 July 2024 13:31:59 +0000 (0:00:02.333) 0:00:14.336 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720877515.9256809, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "000df358b9d4a62f2c30e781c5d4953ccce0ce6e", "ctime": 1720877515.9216807, "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": 1720877515.9216807, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_no_auto_renew.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "4081041842", "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-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:43 Saturday 13 July 2024 13:31:59 +0000 (0:00:00.185) 0:00:14.521 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:49 Saturday 13 July 2024 13:31:59 +0000 (0:00:00.013) 0:00:14.535 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:59 Saturday 13 July 2024 13:31:59 +0000 (0:00:00.024) 0:00:14.559 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:65 Saturday 13 July 2024 13:31:59 +0000 (0:00:00.023) 0:00:14.583 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720877515.8676805, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2ec9f5a45bd55ef1f7b66b3a5e8aeefdc620c1fd", "ctime": 1720877515.9216807, "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": 1720877515.9216807, "nlink": 1, "path": "/etc/pki/tls/private/mycert_no_auto_renew.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1023938930", "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-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:70 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.188) 0:00:14.771 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:76 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.011) 0:00:14.782 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:86 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.020) 0:00:14.803 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D9:D2:00:E7:B1:D4:94:22:9E:57:B4:43:8A:51:4B:2A:DC:96:60:8E" }, "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": "07:29:26:66:C0:18:28:CF:8E:4D:E1:6D:2D:60:93:D6:51:76:61:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "29:56:CF:E6:CF:5E:EA:20:89:79:46:BE:AF:80:EA:BC:C8:09:3D:7A:DB:D8:17:E0:AD:7F:18:94:18:4F:6B:74:8F:AD:6E:74:24:24:98:52:29:90:02:E4:B8:EC:29:57:6B:8E:05:37:C4:52:D5:CD:88:58:F7:59:19:74:A3:86:CA:01:E6:67:50:AF:23:97:14:46:74:AB:E7:A8:28:A0:63:5B:E3:97:DF:E2:CD:8D:91:3B:30:9C:49:46:1C:93:37:DD:B3:D7:65:6F:73:1B:A6:B5:D4:8F:D8:54:87:74:E4:DA:C1:EB:E9:CC:42:D0:24:CB:BC:13:D7:74:2E:66:1A:CF:66:7E:EA:AE:8B:AF:75:7E:12:C9:0C:02:1B:87:E3:08:0A:CF:A3:4F:19:6A:E3:67:6A:F5:59:C3:4C:47:AC:5A:40:3A:3D:6C:62:00:C7:4B:41:AB:0F:3D:C0:2F:73:95:85:7E:E5:BE:8D:7B:10:24:89:65:AC:7D:3B:AE:A8:0B:B3:5C:F7:25:B6:63:91:7B:4E:B5:C2:1D:EF:69:6F:89:2F:0D:EC:27:44:60:57:A4:5D:B4:46:7D:09:61:06:37:39:DE:41:BF:44:AF:9C:A1:EA:EC:B8:4D:34:F7:BF:88:CA:F5:26:BE:E4:24:C9:BD:D8:91:EE:AC:40:52" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250713133155Z", "not_valid_before": "20240713133155Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:92 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.494) 0:00:15.297 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D9:D2:00:E7:B1:D4:94:22:9E:57:B4:43:8A:51:4B:2A:DC:96:60:8E" }, "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": "07:29:26:66:C0:18:28:CF:8E:4D:E1:6D:2D:60:93:D6:51:76:61:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "29:56:CF:E6:CF:5E:EA:20:89:79:46:BE:AF:80:EA:BC:C8:09:3D:7A:DB:D8:17:E0:AD:7F:18:94:18:4F:6B:74:8F:AD:6E:74:24:24:98:52:29:90:02:E4:B8:EC:29:57:6B:8E:05:37:C4:52:D5:CD:88:58:F7:59:19:74:A3:86:CA:01:E6:67:50:AF:23:97:14:46:74:AB:E7:A8:28:A0:63:5B:E3:97:DF:E2:CD:8D:91:3B:30:9C:49:46:1C:93:37:DD:B3:D7:65:6F:73:1B:A6:B5:D4:8F:D8:54:87:74:E4:DA:C1:EB:E9:CC:42:D0:24:CB:BC:13:D7:74:2E:66:1A:CF:66:7E:EA:AE:8B:AF:75:7E:12:C9:0C:02:1B:87:E3:08:0A:CF:A3:4F:19:6A:E3:67:6A:F5:59:C3:4C:47:AC:5A:40:3A:3D:6C:62:00:C7:4B:41:AB:0F:3D:C0:2F:73:95:85:7E:E5:BE:8D:7B:10:24:89:65:AC:7D:3B:AE:A8:0B:B3:5C:F7:25:B6:63:91:7B:4E:B5:C2:1D:EF:69:6F:89:2F:0D:EC:27:44:60:57:A4:5D:B4:46:7D:09:61:06:37:39:DE:41:BF:44:AF:9C:A1:EA:EC:B8:4D:34:F7:BF:88:CA:F5:26:BE:E4:24:C9:BD:D8:91:EE:AC:40:52" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250713133155Z", "not_valid_before": "20240713133155Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:96 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.011) 0:00:15.309 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:104 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.022) 0:00:15.331 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:112 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.013) 0:00:15.344 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:119 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.019) 0:00:15.363 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:130 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.023) 0:00:15.387 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:143 Saturday 13 July 2024 13:32:00 +0000 (0:00:00.021) 0:00:15.409 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_no_auto_renew.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046201", "end": "2024-07-13 13:32:01.081650", "rc": 0, "start": "2024-07-13 13:32:01.035449" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:152 Saturday 13 July 2024 13:32:01 +0000 (0:00:00.278) 0:00:15.687 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:2 Saturday 13 July 2024 13:32:01 +0000 (0:00:00.019) 0:00:15.707 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:9 Saturday 13 July 2024 13:32:01 +0000 (0:00:00.008) 0:00:15.715 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:14 Saturday 13 July 2024 13:32:01 +0000 (0:00:00.010) 0:00:15.726 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:18 Saturday 13 July 2024 13:32:01 +0000 (0:00:00.010) 0:00:15.737 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:28 Saturday 13 July 2024 13:32:01 +0000 (0:00:00.008) 0:00:15.746 ********* 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-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:38 Saturday 13 July 2024 13:32:03 +0000 (0:00:02.327) 0:00:18.073 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720877516.466683, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "28b6828d051e8f8df7f0d4fb5e902249e081631a", "ctime": 1720877516.463683, "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": 1720877516.463683, "nlink": 1, "path": "/etc/pki/tls/certs/defaultcert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1855322492", "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-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:43 Saturday 13 July 2024 13:32:03 +0000 (0:00:00.197) 0:00:18.271 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:49 Saturday 13 July 2024 13:32:03 +0000 (0:00:00.012) 0:00:18.284 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:59 Saturday 13 July 2024 13:32:03 +0000 (0:00:00.022) 0:00:18.307 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:65 Saturday 13 July 2024 13:32:03 +0000 (0:00:00.021) 0:00:18.328 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720877516.4216826, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cf17a764350bcf7baae2d3f743ef8e1a80147146", "ctime": 1720877516.463683, "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": 1720877516.463683, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "401133074", "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-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:70 Saturday 13 July 2024 13:32:03 +0000 (0:00:00.193) 0:00:18.522 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:76 Saturday 13 July 2024 13:32:03 +0000 (0:00:00.013) 0:00:18.535 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:86 Saturday 13 July 2024 13:32:03 +0000 (0:00:00.027) 0:00:18.563 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D9:D2:00:E7:B1:D4:94:22:9E:57:B4:43:8A:51:4B:2A:DC:96:60:8E" }, "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": "C9:E1:0A:EE:C4:EF:33:91:7D:BF:29:78:5B:A9:9D:1B:B2:3A:A0:D1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "93:77:9F:BC:6D:2E:20:11:78:F3:73:56:3E:AB:8B:49:EF:CC:E3:95:5A:BE:C3:CB:F6:DA:6E:BA:CB:FE:4A:6A:0B:9B:F8:7D:0A:FF:ED:9E:50:E1:BD:30:4C:EB:90:1A:03:3A:3C:86:9C:6B:D7:86:07:10:BF:4C:54:B7:60:5B:BD:18:30:55:3E:6C:38:9A:C3:F6:3D:A6:FA:00:A8:1D:E9:1C:D6:42:5E:D9:2B:81:E5:93:BE:80:52:90:9A:E3:85:35:28:10:7E:5F:88:E5:95:43:1E:04:D2:33:18:5D:0B:0E:40:2A:F2:8C:A6:F9:E7:0A:84:73:AC:97:78:2A:D9:B3:DD:5D:F4:2D:28:4B:C0:16:D2:20:56:2F:D7:1C:D7:90:51:8C:6A:E5:6A:AE:FE:A0:16:1D:DD:55:8A:A5:CA:18:C1:52:52:72:15:BB:00:4C:5F:02:11:96:31:B9:F3:AD:38:6D:8C:1F:87:3A:43:63:05:20:66:38:EE:01:CE:38:BE:D6:F0:B7:99:05:C8:EE:20:9A:69:B2:0B:2A:E4:2C:91:AC:DB:41:46:26:93:3D:94:8E:15:0B:85:25:13:07:52:82:61:48:C6:82:AB:81:21:81:5D:7D:36:0B:3F:0A:BE:AC:D4:EC:42:53:B3:94:E0:19:15:EB:05:27" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250713133155Z", "not_valid_before": "20240713133156Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:92 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.247) 0:00:18.811 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D9:D2:00:E7:B1:D4:94:22:9E:57:B4:43:8A:51:4B:2A:DC:96:60:8E" }, "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": "C9:E1:0A:EE:C4:EF:33:91:7D:BF:29:78:5B:A9:9D:1B:B2:3A:A0:D1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "93:77:9F:BC:6D:2E:20:11:78:F3:73:56:3E:AB:8B:49:EF:CC:E3:95:5A:BE:C3:CB:F6:DA:6E:BA:CB:FE:4A:6A:0B:9B:F8:7D:0A:FF:ED:9E:50:E1:BD:30:4C:EB:90:1A:03:3A:3C:86:9C:6B:D7:86:07:10:BF:4C:54:B7:60:5B:BD:18:30:55:3E:6C:38:9A:C3:F6:3D:A6:FA:00:A8:1D:E9:1C:D6:42:5E:D9:2B:81:E5:93:BE:80:52:90:9A:E3:85:35:28:10:7E:5F:88:E5:95:43:1E:04:D2:33:18:5D:0B:0E:40:2A:F2:8C:A6:F9:E7:0A:84:73:AC:97:78:2A:D9:B3:DD:5D:F4:2D:28:4B:C0:16:D2:20:56:2F:D7:1C:D7:90:51:8C:6A:E5:6A:AE:FE:A0:16:1D:DD:55:8A:A5:CA:18:C1:52:52:72:15:BB:00:4C:5F:02:11:96:31:B9:F3:AD:38:6D:8C:1F:87:3A:43:63:05:20:66:38:EE:01:CE:38:BE:D6:F0:B7:99:05:C8:EE:20:9A:69:B2:0B:2A:E4:2C:91:AC:DB:41:46:26:93:3D:94:8E:15:0B:85:25:13:07:52:82:61:48:C6:82:AB:81:21:81:5D:7D:36:0B:3F:0A:BE:AC:D4:EC:42:53:B3:94:E0:19:15:EB:05:27" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250713133155Z", "not_valid_before": "20240713133156Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:96 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.011) 0:00:18.822 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:104 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.020) 0:00:18.843 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:112 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.012) 0:00:18.855 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:119 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.031) 0:00:18.887 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:130 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.034) 0:00:18.922 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:143 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.022) 0:00:18.944 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/defaultcert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.045981", "end": "2024-07-13 13:32:04.571679", "rc": 0, "start": "2024-07-13 13:32:04.525698" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:152 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.237) 0:00:19.182 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=49 changed=6 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Saturday 13 July 2024 13:32:04 +0000 (0:00:00.024) 0:00:19.207 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.96s /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.69s /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.33s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.33s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.27s /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.84s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tests_no_auto_renew.yml:2 ---------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.67s /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tests_no_auto_renew.yml:17 --------------- Parse certificate ------------------------------------------------------- 0.49s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.28s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.28s /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.25s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.24s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.24s /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.21s /WORKDIR/git-weekly-ci5kcb7zwj/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.20s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.19s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:65 Retrieve key file stats ------------------------------------------------- 0.19s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.19s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:38 Verify certificate Key Usage -------------------------------------------- 0.03s /WORKDIR/git-weekly-ci5kcb7zwj/tests/tasks/assert_certificate_parameters.yml:119 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---