# 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-cije2jar1h/.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-cije2jar1h/tests/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tests_no_auto_renew.yml:2 Saturday 09 December 2023 13:17:07 +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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 09 December 2023 13:17:08 +0000 (0:00:00.768) 0:00:00.781 ***** included: /WORKDIR/git-weekly-cije2jar1h/.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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 09 December 2023 13:17:08 +0000 (0:00:00.011) 0:00:00.793 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 09 December 2023 13:17:08 +0000 (0:00:00.017) 0:00:00.810 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 09 December 2023 13:17:08 +0000 (0:00:00.242) 0:00:01.053 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 09 December 2023 13:17:08 +0000 (0:00:00.014) 0:00:01.068 ***** 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.4.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_9.4.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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 09 December 2023 13:17:08 +0000 (0:00:00.019) 0:00:01.087 ***** 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" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 09 December 2023 13:17:11 +0000 (0:00:03.093) 0:00:04.181 ***** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-1.el9.x86_64" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 09 December 2023 13:17:14 +0000 (0:00:02.788) 0:00:06.969 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 09 December 2023 13:17:14 +0000 (0:00:00.273) 0:00:07.243 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 09 December 2023 13:17:15 +0000 (0:00:00.213) 0:00:07.456 ***** 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 sysinit.target system.slice basic.target dbus-broker.service syslog.target dbus.socket systemd-journald.socket", "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": "13975", "LimitNPROCSoft": "13975", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13975", "LimitSIGPENDINGSoft": "13975", "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": "system.slice sysinit.target 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": "22360", "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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 09 December 2023 13:17:15 +0000 (0:00:00.765) 0:00:08.222 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 09 December 2023 13:17:17 +0000 (0:00:01.697) 0:00:09.919 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 09 December 2023 13:17:17 +0000 (0:00:00.028) 0:00:09.948 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 09 December 2023 13:17:17 +0000 (0:00:00.016) 0:00:09.965 ***** 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-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 09 December 2023 13:17:17 +0000 (0:00:00.016) 0:00:09.981 ***** 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-cije2jar1h/tests/tests_no_auto_renew.yml:17 Saturday 09 December 2023 13:17:17 +0000 (0:00:00.029) 0:00:10.011 ***** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tests_no_auto_renew.yml:42 Saturday 09 December 2023 13:17:18 +0000 (0:00:00.637) 0:00:10.648 ***** included: /WORKDIR/git-weekly-cije2jar1h/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-cije2jar1h/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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:2 Saturday 09 December 2023 13:17:18 +0000 (0:00:00.022) 0:00:10.671 ***** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:9 Saturday 09 December 2023 13:17:18 +0000 (0:00:00.007) 0:00:10.678 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:14 Saturday 09 December 2023 13:17:18 +0000 (0:00:00.010) 0:00:10.689 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:18 Saturday 09 December 2023 13:17:18 +0000 (0:00:00.009) 0:00:10.699 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:28 Saturday 09 December 2023 13:17:18 +0000 (0:00:00.007) 0:00:10.706 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:38 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.826) 0:00:11.533 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702127836.8085003, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e53839c8cfb17e6a1fb061f0c2ad5db6d87472de", "ctime": 1702127836.8055003, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 390682, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1702127836.8055003, "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": "2218592077", "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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:43 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.204) 0:00:11.737 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:49 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.010) 0:00:11.748 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:59 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.019) 0:00:11.767 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:65 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.018) 0:00:11.786 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702127836.716504, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e464086d48df0a44b84b40d49ab7f290a8ae9b84", "ctime": 1702127836.8055003, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17296348, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1702127836.8055003, "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": "2016876287", "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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:70 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.198) 0:00:11.984 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:76 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.011) 0:00:11.995 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:86 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.021) 0:00:12.016 ***** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "84:98:CF:EF:75:76:C2:05:0A:ED:15:E1:A2:D7:CA:37:F2:E7:56:04" }, "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": "92:BC:19:0C:19:21:3F:F0:F5:3D:9B:E1:43:DA:C9:ED:32:FD:F0:38" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "27:D3:02:51:BD:EB:F8:A3:7B:3A:93:55:77:62:CC:34:BC:27:61:9D:5D:F2:33:E4:99:05:E0:68:9C:50:03:75:2C:4C:AC:70:5F:88:0D:AE:CF:86:3C:11:D7:73:3D:FA:8D:2E:87:EA:7A:37:9C:F7:0E:00:38:98:FF:BE:70:B1:49:F1:B1:2B:A5:DA:37:AB:D9:96:CF:2D:87:9F:58:8F:74:BF:9B:2F:01:C1:36:94:28:B3:F9:3A:70:35:EC:7D:88:29:21:55:E4:D0:2F:A7:96:C5:58:2C:EC:2B:A6:84:31:E5:85:CC:92:9E:BE:97:10:16:78:C0:92:02:E9:0F:C5:C4:FA:95:6D:0B:A0:0A:31:3F:0C:DB:31:DA:B1:FD:EE:FA:6D:BB:AA:7D:6F:6E:1D:26:3A:AE:32:83:E8:AD:5C:1D:39:2F:4B:08:C8:02:52:43:6B:31:07:9C:91:8E:FB:8F:47:03:64:10:CA:AD:EE:CA:02:E4:2D:19:F9:F5:B3:3A:79:BA:5B:6B:D3:1C:07:76:AA:DD:63:A2:B7:7D:48:E2:C6:90:A3:86:87:6F:86:BE:9C:34:09:53:1C:3B:1F:31:DD:39:AD:55:50:B3:B5:C1:91:4B:FC:8B:63:FB:FA:29:4E:5F:53:31:4F:C5:34:8D:D9:BB:37:37:A8:AC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209131716Z", "not_valid_before": "20231209131716Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:92 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.296) 0:00:12.313 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "84:98:CF:EF:75:76:C2:05:0A:ED:15:E1:A2:D7:CA:37:F2:E7:56:04" }, "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": "92:BC:19:0C:19:21:3F:F0:F5:3D:9B:E1:43:DA:C9:ED:32:FD:F0:38" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "27:D3:02:51:BD:EB:F8:A3:7B:3A:93:55:77:62:CC:34:BC:27:61:9D:5D:F2:33:E4:99:05:E0:68:9C:50:03:75:2C:4C:AC:70:5F:88:0D:AE:CF:86:3C:11:D7:73:3D:FA:8D:2E:87:EA:7A:37:9C:F7:0E:00:38:98:FF:BE:70:B1:49:F1:B1:2B:A5:DA:37:AB:D9:96:CF:2D:87:9F:58:8F:74:BF:9B:2F:01:C1:36:94:28:B3:F9:3A:70:35:EC:7D:88:29:21:55:E4:D0:2F:A7:96:C5:58:2C:EC:2B:A6:84:31:E5:85:CC:92:9E:BE:97:10:16:78:C0:92:02:E9:0F:C5:C4:FA:95:6D:0B:A0:0A:31:3F:0C:DB:31:DA:B1:FD:EE:FA:6D:BB:AA:7D:6F:6E:1D:26:3A:AE:32:83:E8:AD:5C:1D:39:2F:4B:08:C8:02:52:43:6B:31:07:9C:91:8E:FB:8F:47:03:64:10:CA:AD:EE:CA:02:E4:2D:19:F9:F5:B3:3A:79:BA:5B:6B:D3:1C:07:76:AA:DD:63:A2:B7:7D:48:E2:C6:90:A3:86:87:6F:86:BE:9C:34:09:53:1C:3B:1F:31:DD:39:AD:55:50:B3:B5:C1:91:4B:FC:8B:63:FB:FA:29:4E:5F:53:31:4F:C5:34:8D:D9:BB:37:37:A8:AC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209131716Z", "not_valid_before": "20231209131716Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:96 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.011) 0:00:12.324 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:104 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.019) 0:00:12.344 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:112 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.011) 0:00:12.355 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:119 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.018) 0:00:12.373 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:130 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.020) 0:00:12.393 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:143 Saturday 09 December 2023 13:17:19 +0000 (0:00:00.019) 0:00:12.413 ***** 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.046510", "end": "2023-12-09 13:17:20.264106", "rc": 0, "start": "2023-12-09 13:17:20.217596" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:152 Saturday 09 December 2023 13:17:20 +0000 (0:00:00.289) 0:00:12.703 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:2 Saturday 09 December 2023 13:17:20 +0000 (0:00:00.019) 0:00:12.722 ***** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:9 Saturday 09 December 2023 13:17:20 +0000 (0:00:00.007) 0:00:12.730 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:14 Saturday 09 December 2023 13:17:20 +0000 (0:00:00.010) 0:00:12.740 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:18 Saturday 09 December 2023 13:17:20 +0000 (0:00:00.010) 0:00:12.751 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:28 Saturday 09 December 2023 13:17:20 +0000 (0:00:00.007) 0:00:12.758 ***** 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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:38 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.824) 0:00:13.583 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702127837.4034743, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c62109459119c797c30bef0dcb8af2137010ff76", "ctime": 1702127837.4004745, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 390702, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1702127837.4004745, "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": "93336210", "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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:43 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.199) 0:00:13.782 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:49 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.013) 0:00:13.795 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:59 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.027) 0:00:13.823 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:65 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.026) 0:00:13.850 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702127837.344477, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "594398bdf379299c2a3727b73011c658e1f13939", "ctime": 1702127837.4004745, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17296353, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1702127837.4004745, "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": "661596256", "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-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:70 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.212) 0:00:14.062 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:76 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.011) 0:00:14.074 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:86 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.021) 0:00:14.096 ***** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "84:98:CF:EF:75:76:C2:05:0A:ED:15:E1:A2:D7:CA:37:F2:E7:56:04" }, "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": "D8:F7:94:68:71:66:C0:DA:0C:65:1A:52:65:03:6D:ED:D8:C9:31:6E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "85:10:54:C4:8D:E0:4D:51:76:59:9D:95:63:0D:D9:2F:CB:DB:88:4D:E0:09:3A:80:40:AA:EB:39:87:25:05:F4:F9:59:B7:C8:72:1A:3E:7B:FE:2F:AE:08:A1:46:25:A8:7D:2B:35:04:EB:D4:40:01:79:26:28:0E:CC:20:05:49:72:7D:62:E5:47:46:D2:E2:31:AE:5E:B8:BF:C4:0D:7A:A4:BD:0E:76:FC:AD:E4:9C:88:DD:E7:0B:25:9C:07:DC:A9:CA:F1:93:D8:55:54:7F:34:84:4C:8D:6A:17:A7:0F:7B:AB:63:8C:95:2D:5A:FE:69:AD:35:8A:83:48:9E:DE:87:BF:61:C0:02:E6:81:A5:76:E8:5A:78:72:23:1D:77:4B:F0:2A:FC:7E:DF:59:47:6C:DF:66:AF:D1:5C:3D:CA:02:9E:6F:EB:32:DA:BE:EA:26:D0:8F:D6:4E:91:7B:69:60:AA:EE:E2:3D:57:8A:52:45:9B:FB:16:54:1B:49:67:83:42:12:A3:82:3F:E0:91:47:A7:FF:A6:B2:DC:6A:7D:0F:C2:D5:B9:73:7E:B3:22:28:12:A5:C3:05:69:03:C0:06:9C:99:F3:C4:12:76:F7:BE:2C:E7:55:DC:2D:A2:06:7B:9D:2F:5C:4A:F4:44:12:D0:C9:D3:C8:15:9C:D9:57" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209131716Z", "not_valid_before": "20231209131717Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:92 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.239) 0:00:14.336 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "84:98:CF:EF:75:76:C2:05:0A:ED:15:E1:A2:D7:CA:37:F2:E7:56:04" }, "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": "D8:F7:94:68:71:66:C0:DA:0C:65:1A:52:65:03:6D:ED:D8:C9:31:6E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "85:10:54:C4:8D:E0:4D:51:76:59:9D:95:63:0D:D9:2F:CB:DB:88:4D:E0:09:3A:80:40:AA:EB:39:87:25:05:F4:F9:59:B7:C8:72:1A:3E:7B:FE:2F:AE:08:A1:46:25:A8:7D:2B:35:04:EB:D4:40:01:79:26:28:0E:CC:20:05:49:72:7D:62:E5:47:46:D2:E2:31:AE:5E:B8:BF:C4:0D:7A:A4:BD:0E:76:FC:AD:E4:9C:88:DD:E7:0B:25:9C:07:DC:A9:CA:F1:93:D8:55:54:7F:34:84:4C:8D:6A:17:A7:0F:7B:AB:63:8C:95:2D:5A:FE:69:AD:35:8A:83:48:9E:DE:87:BF:61:C0:02:E6:81:A5:76:E8:5A:78:72:23:1D:77:4B:F0:2A:FC:7E:DF:59:47:6C:DF:66:AF:D1:5C:3D:CA:02:9E:6F:EB:32:DA:BE:EA:26:D0:8F:D6:4E:91:7B:69:60:AA:EE:E2:3D:57:8A:52:45:9B:FB:16:54:1B:49:67:83:42:12:A3:82:3F:E0:91:47:A7:FF:A6:B2:DC:6A:7D:0F:C2:D5:B9:73:7E:B3:22:28:12:A5:C3:05:69:03:C0:06:9C:99:F3:C4:12:76:F7:BE:2C:E7:55:DC:2D:A2:06:7B:9D:2F:5C:4A:F4:44:12:D0:C9:D3:C8:15:9C:D9:57" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209131716Z", "not_valid_before": "20231209131717Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:96 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.011) 0:00:14.347 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:104 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.019) 0:00:14.367 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:112 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.011) 0:00:14.378 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:119 Saturday 09 December 2023 13:17:21 +0000 (0:00:00.020) 0:00:14.399 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:130 Saturday 09 December 2023 13:17:22 +0000 (0:00:00.027) 0:00:14.427 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:143 Saturday 09 December 2023 13:17:22 +0000 (0:00:00.021) 0:00:14.448 ***** 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.046443", "end": "2023-12-09 13:17:22.243105", "rc": 0, "start": "2023-12-09 13:17:22.196662" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:152 Saturday 09 December 2023 13:17:22 +0000 (0:00:00.232) 0:00:14.681 ***** 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 09 December 2023 13:17:22 +0000 (0:00:00.024) 0:00:14.705 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.09s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.79s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.70s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Ensure python3 is installed --------------------------------------------- 0.83s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.82s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:28 Gathering Facts --------------------------------------------------------- 0.77s /WORKDIR/git-weekly-cije2jar1h/tests/tests_no_auto_renew.yml:2 ---------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.77s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.64s /WORKDIR/git-weekly-cije2jar1h/tests/tests_no_auto_renew.yml:17 --------------- Parse certificate ------------------------------------------------------- 0.30s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.29s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.27s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.24s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.24s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.23s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.21s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve key file stats ------------------------------------------------- 0.21s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.20s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:38 Retrieve certificate file stats ----------------------------------------- 0.20s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.20s /WORKDIR/git-weekly-cije2jar1h/tests/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Remove files -------------------- 0.03s /WORKDIR/git-weekly-cije2jar1h/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---