# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.15.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.15/lib/python3.9/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-civwdy0ad2/.collection executable location = /opt/ansible-2.15/bin/ansible-playbook python version = 3.9.16 (main, Jan 17 2023, 18:53:15) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/opt/ansible-2.15/bin/python3.9) 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-civwdy0ad2/tests/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_no_auto_renew.yml:2 Saturday 26 August 2023 16:39:26 +0000 (0:00:00.019) 0:00:00.019 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 26 August 2023 16:39:27 +0000 (0:00:00.864) 0:00:00.883 ******* included: /WORKDIR/git-weekly-civwdy0ad2/.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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 26 August 2023 16:39:27 +0000 (0:00:00.022) 0:00:00.906 ******* 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 : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Saturday 26 August 2023 16:39:27 +0000 (0:00:00.067) 0:00:00.973 ******* 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=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=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_9.3.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_9.3.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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 26 August 2023 16:39:27 +0000 (0:00:00.037) 0:00:01.011 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-cryptography-36.0.1-4.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Saturday 26 August 2023 16:39:30 +0000 (0:00:02.784) 0:00:03.796 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: nspr-4.35.0-3.el9_2.x86_64", "Installed: nss-3.90.0-3.el9_2.x86_64", "Installed: nss-softokn-3.90.0-3.el9_2.x86_64", "Installed: nss-softokn-freebl-3.90.0-3.el9_2.x86_64", "Installed: certmonger-0.79.17-1.el9.x86_64", "Installed: nss-sysinit-3.90.0-3.el9_2.x86_64", "Installed: nss-util-3.90.0-3.el9_2.x86_64" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Saturday 26 August 2023 16:39:34 +0000 (0:00:03.437) 0:00:07.233 ******* 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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Saturday 26 August 2023 16:39:34 +0000 (0:00:00.373) 0:00:07.606 ******* 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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Saturday 26 August 2023 16:39:34 +0000 (0:00:00.253) 0:00:07.859 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network.target systemd-journald.socket dbus.socket sysinit.target syslog.target system.slice dbus-broker.service basic.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13929", "LimitNPROCSoft": "13929", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13929", "LimitSIGPENDINGSoft": "13929", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22286", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Saturday 26 August 2023 16:39:35 +0000 (0:00:00.892) 0:00:08.752 ******* 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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:150 Saturday 26 August 2023 16:39:37 +0000 (0:00:01.825) 0:00:10.577 ******* 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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:158 Saturday 26 August 2023 16:39:37 +0000 (0:00:00.082) 0:00:10.660 ******* 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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Saturday 26 August 2023 16:39:37 +0000 (0:00:00.029) 0:00:10.689 ******* 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-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:179 Saturday 26 August 2023 16:39:37 +0000 (0:00:00.038) 0:00:10.728 ******* 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-civwdy0ad2/tests/tests_no_auto_renew.yml:17 Saturday 26 August 2023 16:39:37 +0000 (0:00:00.110) 0:00:10.838 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_no_auto_renew.yml:42 Saturday 26 August 2023 16:39:38 +0000 (0:00:00.666) 0:00:11.504 ******* included: /WORKDIR/git-weekly-civwdy0ad2/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-civwdy0ad2/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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 26 August 2023 16:39:38 +0000 (0:00:00.036) 0:00:11.541 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:6 Saturday 26 August 2023 16:39:38 +0000 (0:00:00.013) 0:00:11.555 ******* 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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Saturday 26 August 2023 16:39:38 +0000 (0:00:00.011) 0:00:11.567 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 Saturday 26 August 2023 16:39:39 +0000 (0:00:00.779) 0:00:12.346 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067976.527105, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "935bfd9a64c5351e122147a068a6ba4097e7e746", "ctime": 1693067976.5251052, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17075313, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1693067976.5251052, "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": "572376515", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:29 Saturday 26 August 2023 16:39:39 +0000 (0:00:00.341) 0:00:12.687 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:35 Saturday 26 August 2023 16:39:39 +0000 (0:00:00.018) 0:00:12.706 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:45 Saturday 26 August 2023 16:39:39 +0000 (0:00:00.059) 0:00:12.765 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 Saturday 26 August 2023 16:39:39 +0000 (0:00:00.041) 0:00:12.806 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067976.4681048, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cb17c5da55b9c3203382a099adef871cd3eb6748", "ctime": 1693067976.5251052, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 278544, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1693067976.5251052, "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": "2388954066", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:56 Saturday 26 August 2023 16:39:39 +0000 (0:00:00.205) 0:00:13.012 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:62 Saturday 26 August 2023 16:39:39 +0000 (0:00:00.017) 0:00:13.029 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.060) 0:00:13.090 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "36:DE:35:0A:12:51:82:EF:4E:53:52:9C:24:B0:44:83:56:E6:AE:5A" }, "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": "0C:A3:62:34:A2:20:FB:FA:0B:B3:FC:EE:25:3B:E7:13:34:6A:25:5B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CA:B0:40:5A:D2:1C:1F:66:D5:82:A7:2E:18:DB:05:9F:DC:BF:A4:F0:B2:4F:66:C9:03:9F:48:43:71:65:B1:7C:3C:D7:16:06:04:6E:C1:72:79:F7:0F:91:A3:39:2E:49:09:21:BB:AE:04:71:B7:45:E4:3E:10:E0:0F:A5:F2:B1:A8:07:AF:92:D0:0B:DF:9A:4B:94:AA:6F:5E:D1:70:67:99:DA:32:46:44:CD:25:27:17:5A:F4:F0:D9:5C:14:30:02:5E:B7:E0:CF:2B:C2:D6:AE:B5:07:D2:9F:68:ED:A4:A0:B0:21:4C:B1:66:66:4F:6C:A0:63:70:4F:53:5F:5A:06:86:8E:84:F0:DD:9B:BE:88:44:E6:BF:DD:9B:22:50:75:2A:AB:68:33:D1:EE:7A:65:E4:E9:21:2B:20:B6:37:59:32:3C:91:2C:C7:6B:9A:2D:E8:63:A7:EB:74:49:23:81:78:53:0A:4F:A7:C0:1B:43:E2:E3:D7:DC:F8:D9:78:1F:9D:57:16:24:CD:34:D1:A4:0A:08:65:4B:A6:73:8F:28:68:71:6D:C6:99:31:8B:7E:CF:FC:37:5C:21:93:D9:5C:12:97:D5:16:64:02:C6:29:53:92:29:E1:04:DC:3A:B7:AE:87:57:02:D3:C2:47:51:95:46:C5:74:53:67:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826163936Z", "not_valid_before": "20230826163936Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:78 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.390) 0:00:13.480 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "36:DE:35:0A:12:51:82:EF:4E:53:52:9C:24:B0:44:83:56:E6:AE:5A" }, "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": "0C:A3:62:34:A2:20:FB:FA:0B:B3:FC:EE:25:3B:E7:13:34:6A:25:5B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CA:B0:40:5A:D2:1C:1F:66:D5:82:A7:2E:18:DB:05:9F:DC:BF:A4:F0:B2:4F:66:C9:03:9F:48:43:71:65:B1:7C:3C:D7:16:06:04:6E:C1:72:79:F7:0F:91:A3:39:2E:49:09:21:BB:AE:04:71:B7:45:E4:3E:10:E0:0F:A5:F2:B1:A8:07:AF:92:D0:0B:DF:9A:4B:94:AA:6F:5E:D1:70:67:99:DA:32:46:44:CD:25:27:17:5A:F4:F0:D9:5C:14:30:02:5E:B7:E0:CF:2B:C2:D6:AE:B5:07:D2:9F:68:ED:A4:A0:B0:21:4C:B1:66:66:4F:6C:A0:63:70:4F:53:5F:5A:06:86:8E:84:F0:DD:9B:BE:88:44:E6:BF:DD:9B:22:50:75:2A:AB:68:33:D1:EE:7A:65:E4:E9:21:2B:20:B6:37:59:32:3C:91:2C:C7:6B:9A:2D:E8:63:A7:EB:74:49:23:81:78:53:0A:4F:A7:C0:1B:43:E2:E3:D7:DC:F8:D9:78:1F:9D:57:16:24:CD:34:D1:A4:0A:08:65:4B:A6:73:8F:28:68:71:6D:C6:99:31:8B:7E:CF:FC:37:5C:21:93:D9:5C:12:97:D5:16:64:02:C6:29:53:92:29:E1:04:DC:3A:B7:AE:87:57:02:D3:C2:47:51:95:46:C5:74:53:67:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826163936Z", "not_valid_before": "20230826163936Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:82 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.017) 0:00:13.498 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:90 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.049) 0:00:13.548 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:98 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.021) 0:00:13.569 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:105 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.043) 0:00:13.613 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:116 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.067) 0:00:13.680 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.041) 0:00:13.722 ******* 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.046071", "end": "2023-08-26 16:39:40.959014", "rc": 0, "start": "2023-08-26 16:39:40.912943" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:138 Saturday 26 August 2023 16:39:40 +0000 (0:00:00.341) 0:00:14.063 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 26 August 2023 16:39:41 +0000 (0:00:00.049) 0:00:14.113 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:6 Saturday 26 August 2023 16:39:41 +0000 (0:00:00.014) 0:00:14.127 ******* 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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Saturday 26 August 2023 16:39:41 +0000 (0:00:00.012) 0:00:14.140 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 Saturday 26 August 2023 16:39:41 +0000 (0:00:00.774) 0:00:14.915 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067977.4201097, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8b9642f77d7b2f6a25fb420b25308bc76810484f", "ctime": 1693067977.4171097, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17075214, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1693067977.4171097, "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": "3300783406", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:29 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.209) 0:00:15.125 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:35 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.019) 0:00:15.144 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:45 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.055) 0:00:15.200 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.044) 0:00:15.245 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067977.3631094, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c44cb04c3b3f113859e8dab8b3f096cfb00437a5", "ctime": 1693067977.4171097, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 278545, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1693067977.4171097, "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": "2572836066", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:56 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.207) 0:00:15.452 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:62 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.020) 0:00:15.472 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.060) 0:00:15.533 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "36:DE:35:0A:12:51:82:EF:4E:53:52:9C:24:B0:44:83:56:E6:AE:5A" }, "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": "1A:F0:85:C7:1E:7E:FF:A1:9B:B5:15:90:7D:C6:EF:E4:94:1C:F0:EC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "38:FE:51:48:48:AF:1F:30:BF:E1:77:63:E4:03:E1:7E:9A:AC:51:2B:5C:32:6C:D6:E8:C0:08:D0:2E:40:29:2D:F1:CF:EC:84:97:90:6D:AF:30:DB:68:90:0C:38:1E:7C:CA:90:29:0B:A0:61:F4:8D:F9:CC:B6:75:C0:6D:A1:74:FB:BA:EB:45:B6:5A:B1:94:E6:38:6D:CA:04:70:91:52:11:37:A7:47:E9:CF:E6:48:1A:9D:2F:52:27:5A:BC:4C:E2:60:9A:0D:CA:EA:53:E4:1C:6E:97:29:9B:AB:57:92:35:90:2B:3E:58:E6:3E:0B:0D:36:5D:A4:8D:27:A1:6B:A4:6D:26:ED:17:3F:2F:F0:37:30:F5:E8:66:F8:FE:E3:C7:99:40:41:25:E6:CB:A4:01:53:06:48:62:2A:78:BA:B3:C9:55:01:09:45:EF:0F:35:91:11:61:00:DB:93:DA:DD:54:BA:A8:A5:EA:FE:01:B1:0C:12:7C:04:DC:1F:11:FB:9B:F2:32:43:50:15:C7:5D:26:88:FA:02:A6:51:41:95:D8:20:1B:55:8F:B5:17:BE:21:47:AF:43:34:E2:DB:86:21:2E:FF:E4:FA:B4:A2:A2:AA:36:93:0B:9E:73:E5:58:30:D7:A9:35:7A:B0:D8:F5:DE:32:AC:60:66:8F:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826163936Z", "not_valid_before": "20230826163937Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:78 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.249) 0:00:15.783 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "36:DE:35:0A:12:51:82:EF:4E:53:52:9C:24:B0:44:83:56:E6:AE:5A" }, "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": "1A:F0:85:C7:1E:7E:FF:A1:9B:B5:15:90:7D:C6:EF:E4:94:1C:F0:EC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "38:FE:51:48:48:AF:1F:30:BF:E1:77:63:E4:03:E1:7E:9A:AC:51:2B:5C:32:6C:D6:E8:C0:08:D0:2E:40:29:2D:F1:CF:EC:84:97:90:6D:AF:30:DB:68:90:0C:38:1E:7C:CA:90:29:0B:A0:61:F4:8D:F9:CC:B6:75:C0:6D:A1:74:FB:BA:EB:45:B6:5A:B1:94:E6:38:6D:CA:04:70:91:52:11:37:A7:47:E9:CF:E6:48:1A:9D:2F:52:27:5A:BC:4C:E2:60:9A:0D:CA:EA:53:E4:1C:6E:97:29:9B:AB:57:92:35:90:2B:3E:58:E6:3E:0B:0D:36:5D:A4:8D:27:A1:6B:A4:6D:26:ED:17:3F:2F:F0:37:30:F5:E8:66:F8:FE:E3:C7:99:40:41:25:E6:CB:A4:01:53:06:48:62:2A:78:BA:B3:C9:55:01:09:45:EF:0F:35:91:11:61:00:DB:93:DA:DD:54:BA:A8:A5:EA:FE:01:B1:0C:12:7C:04:DC:1F:11:FB:9B:F2:32:43:50:15:C7:5D:26:88:FA:02:A6:51:41:95:D8:20:1B:55:8F:B5:17:BE:21:47:AF:43:34:E2:DB:86:21:2E:FF:E4:FA:B4:A2:A2:AA:36:93:0B:9E:73:E5:58:30:D7:A9:35:7A:B0:D8:F5:DE:32:AC:60:66:8F:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826163936Z", "not_valid_before": "20230826163937Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:82 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.020) 0:00:15.803 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:90 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.054) 0:00:15.857 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:98 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.020) 0:00:15.878 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:105 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.057) 0:00:15.935 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:116 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.077) 0:00:16.013 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Saturday 26 August 2023 16:39:42 +0000 (0:00:00.055) 0:00:16.069 ******* 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.046458", "end": "2023-08-26 16:39:43.210127", "rc": 0, "start": "2023-08-26 16:39:43.163669" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:138 Saturday 26 August 2023 16:39:43 +0000 (0:00:00.247) 0:00:16.317 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=47 changed=6 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Saturday 26 August 2023 16:39:43 +0000 (0:00:00.074) 0:00:16.391 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.44s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.78s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.83s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.89s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.86s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_no_auto_renew.yml:2 ---------------- Ensure python3 is installed --------------------------------------------- 0.78s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Ensure python3 is installed --------------------------------------------- 0.77s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Gathering Facts --------------------------------------------------------- 0.67s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_no_auto_renew.yml:17 --------------- Parse certificate ------------------------------------------------------- 0.39s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.37s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve auto-renew flag ------------------------------------------------ 0.34s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Retrieve certificate file stats ----------------------------------------- 0.34s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.25s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Parse certificate ------------------------------------------------------- 0.25s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 Retrieve auto-renew flag ------------------------------------------------ 0.25s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Retrieve certificate file stats ----------------------------------------- 0.21s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 Retrieve key file stats ------------------------------------------------- 0.21s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 Retrieve key file stats ------------------------------------------------- 0.21s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 fedora.linux_system_roles.certificate : Remove files -------------------- 0.11s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:179 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.08s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:150 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---