# 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-ci1bv34rk4/.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_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:2 Saturday 01 June 2024 13:01:14 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:5 Saturday 01 June 2024 13:01:15 +0000 (0:00:00.848) 0:00:00.860 ********* changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:9 Saturday 01 June 2024 13:01:15 +0000 (0:00:00.409) 0:00:01.269 ********* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:14 Saturday 01 June 2024 13:01:15 +0000 (0:00:00.290) 0:00:01.559 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 01 June 2024 13:01:16 +0000 (0:00:00.604) 0:00:02.164 ********* included: /WORKDIR/git-weekly-ci1bv34rk4/.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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 01 June 2024 13:01:16 +0000 (0:00:00.011) 0:00:02.175 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 01 June 2024 13:01:16 +0000 (0:00:00.021) 0:00:02.196 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 01 June 2024 13:01:16 +0000 (0:00:00.245) 0:00:02.442 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 01 June 2024 13:01:16 +0000 (0:00:00.014) 0:00:02.457 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 01 June 2024 13:01:16 +0000 (0:00:00.020) 0:00:02.477 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.3.7-6.el8.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 01 June 2024 13:01:20 +0000 (0:00:04.068) 0:00:06.545 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-2.el8.x86_64", "Installed: xmlrpc-c-client-1.51.0-9.el8.x86_64", "Installed: xmlrpc-c-1.51.0-9.el8.x86_64" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 01 June 2024 13:01:25 +0000 (0:00:04.430) 0:00:10.976 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 01 June 2024 13:01:25 +0000 (0:00:00.293) 0:00:11.269 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 01 June 2024 13:01:25 +0000 (0:00:00.205) 0:00:11.474 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network.target basic.target sysinit.target dbus.socket system.slice dbus.service systemd-journald.socket syslog.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 01 June 2024 13:01:26 +0000 (0:00:00.663) 0:00:12.138 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 01 June 2024 13:01:27 +0000 (0:00:01.216) 0:00:13.354 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', '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", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, '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", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', '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", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, '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", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', '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", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, '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", "group": 1041, "name": "certid", "owner": 1040 } ], "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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 01 June 2024 13:01:27 +0000 (0:00:00.029) 0:00:13.384 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 01 June 2024 13:01:27 +0000 (0:00:00.017) 0:00:13.401 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 01 June 2024 13:01:27 +0000 (0:00:00.017) 0:00:13.419 ********* 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-ci1bv34rk4/tests/tests_fs_attrs.yml:32 Saturday 01 June 2024 13:01:27 +0000 (0:00:00.033) 0:00:13.453 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:61 Saturday 01 June 2024 13:01:28 +0000 (0:00:00.603) 0:00:14.056 ********* included: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:01:28 +0000 (0:00:00.022) 0:00:14.078 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:01:28 +0000 (0:00:00.008) 0:00:14.087 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:01:28 +0000 (0:00:00.011) 0:00:14.098 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:01:28 +0000 (0:00:00.011) 0:00:14.109 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:01:28 +0000 (0:00:00.007) 0:00:14.117 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:01:30 +0000 (0:00:02.344) 0:00:16.461 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246886.7959526, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "59c5dcc93f620b1598c77bee1a35f64d8095a614", "ctime": 1717246886.917953, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894952, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246886.7939525, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "4286931440", "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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:01:30 +0000 (0:00:00.189) 0:00:16.651 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:01:30 +0000 (0:00:00.011) 0:00:16.662 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:01:30 +0000 (0:00:00.021) 0:00:16.683 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:01:30 +0000 (0:00:00.020) 0:00:16.704 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246886.7489524, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9a233079d0c7dfd1bd2cf6bdb041b1aa7764990a", "ctime": 1717246886.917953, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894913, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246886.7939525, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "3034145190", "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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.192) 0:00:16.896 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.011) 0:00:16.907 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.021) 0:00:16.929 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "9C:B6:11:E6:F9:19:B7:BB:AE:13:96:48:C9:1A:2B:93:41:D7:71:C0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4A:71:B6:F0:0D:78:B5:3A:09:BA:FE:42:CD:97:80:15:01:3E:11:02:1D:EE:D1:BC:8D:5E:22:DF:9C:D7:0F:9E:90:CF:F9:BB:F3:19:3E:73:60:52:71:4C:81:77:51:7A:B1:6A:6D:CE:F4:25:BF:76:81:8D:01:91:BD:59:CC:AF:5C:F7:0D:C0:BF:F3:62:06:95:A2:D7:F1:A8:72:9A:9F:6A:ED:CD:BA:D9:43:2C:CF:83:65:75:C5:BD:A3:EC:C3:58:68:C5:DD:FA:C3:DE:27:DA:76:7F:BB:6A:85:59:0A:25:D5:42:F9:D0:84:37:E4:46:CB:C1:00:C9:12:75:E9:96:47:7A:DF:13:CD:8F:DB:2B:80:A4:33:62:74:5B:65:17:CA:3C:C0:A9:78:C2:AF:DC:C4:D5:35:5F:5D:BD:EC:7D:3C:C7:D1:E2:E9:C3:2D:A4:45:34:2F:48:26:96:86:C7:0E:47:51:2D:1F:E9:79:DB:A0:B1:3A:4C:85:BB:85:43:7A:51:76:24:4B:6A:09:44:70:1B:46:83:AA:23:6B:B4:BF:17:F8:1A:29:0A:DF:FF:56:E2:8F:15:1A:B5:66:9D:2C:CF:43:38:F4:B1:0C:48:5D:DD:75:65:9F:5B:FF:CD:69:79:DD:FD:88:FF:9F:5F:45:95:87:29:71:BF:14" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130126Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.428) 0:00:17.358 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "9C:B6:11:E6:F9:19:B7:BB:AE:13:96:48:C9:1A:2B:93:41:D7:71:C0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4A:71:B6:F0:0D:78:B5:3A:09:BA:FE:42:CD:97:80:15:01:3E:11:02:1D:EE:D1:BC:8D:5E:22:DF:9C:D7:0F:9E:90:CF:F9:BB:F3:19:3E:73:60:52:71:4C:81:77:51:7A:B1:6A:6D:CE:F4:25:BF:76:81:8D:01:91:BD:59:CC:AF:5C:F7:0D:C0:BF:F3:62:06:95:A2:D7:F1:A8:72:9A:9F:6A:ED:CD:BA:D9:43:2C:CF:83:65:75:C5:BD:A3:EC:C3:58:68:C5:DD:FA:C3:DE:27:DA:76:7F:BB:6A:85:59:0A:25:D5:42:F9:D0:84:37:E4:46:CB:C1:00:C9:12:75:E9:96:47:7A:DF:13:CD:8F:DB:2B:80:A4:33:62:74:5B:65:17:CA:3C:C0:A9:78:C2:AF:DC:C4:D5:35:5F:5D:BD:EC:7D:3C:C7:D1:E2:E9:C3:2D:A4:45:34:2F:48:26:96:86:C7:0E:47:51:2D:1F:E9:79:DB:A0:B1:3A:4C:85:BB:85:43:7A:51:76:24:4B:6A:09:44:70:1B:46:83:AA:23:6B:B4:BF:17:F8:1A:29:0A:DF:FF:56:E2:8F:15:1A:B5:66:9D:2C:CF:43:38:F4:B1:0C:48:5D:DD:75:65:9F:5B:FF:CD:69:79:DD:FD:88:FF:9F:5F:45:95:87:29:71:BF:14" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130126Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.012) 0:00:17.370 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.022) 0:00:17.393 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.021) 0:00:17.414 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.022) 0:00:17.437 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.024) 0:00:17.461 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.022) 0:00:17.484 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046196", "end": "2024-06-01 13:01:31.886978", "rc": 0, "start": "2024-06-01 13:01:31.840782" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.284) 0:00:17.768 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.020) 0:00:17.789 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.008) 0:00:17.797 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.012) 0:00:17.810 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.011) 0:00:17.822 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:01:31 +0000 (0:00:00.008) 0:00:17.831 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:01:34 +0000 (0:00:02.354) 0:00:20.185 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246887.3829553, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "83b3475bef8dfde7a87d57976752c2b72269100d", "ctime": 1717246887.4679556, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894958, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246887.3799553, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 1040, "version": "604869978", "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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:01:34 +0000 (0:00:00.193) 0:00:20.379 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:01:34 +0000 (0:00:00.024) 0:00:20.404 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:01:34 +0000 (0:00:00.022) 0:00:20.427 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:01:34 +0000 (0:00:00.025) 0:00:20.452 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246887.335955, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "25a825e5450d09419cd2d4ea98962f081d200e51", "ctime": 1717246887.4679556, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894955, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246887.3799553, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "2868291883", "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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:01:34 +0000 (0:00:00.190) 0:00:20.643 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:01:34 +0000 (0:00:00.011) 0:00:20.655 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:01:34 +0000 (0:00:00.022) 0:00:20.677 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "F9:0B:67:14:B2:8A:26:FA:BC:06:02:E1:5F:1B:22:44:28:0B:B8:AE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6E:DF:1A:67:5E:45:5F:C5:0C:11:F8:CA:7F:3C:F3:93:C1:5A:24:1B:0A:48:04:9D:CC:6E:34:D0:20:9A:9F:1B:74:37:82:19:0A:E5:1A:59:47:FA:12:E0:4B:45:5E:3E:EC:72:38:2E:60:63:90:8E:9D:11:68:FE:43:B5:FC:F8:89:A2:E8:9F:94:8E:54:E7:48:14:14:92:B1:AF:8C:6C:3B:A6:D0:40:D4:D2:CA:0C:AD:1A:4E:B0:39:6E:88:50:02:92:78:5E:A5:59:38:5A:B7:1F:90:CC:CE:90:33:E8:A9:92:77:6E:D9:7B:C0:BD:30:86:FB:24:09:67:26:94:17:89:BD:04:4C:2D:B2:AB:94:04:D9:1D:27:F6:91:AE:DD:3F:8D:30:AC:B0:1F:A0:EA:0B:FE:C1:90:09:04:7D:FD:DD:64:FC:CE:1A:83:9C:FA:64:49:62:1E:BF:34:4C:C0:F0:C2:25:EB:FE:39:E3:4F:06:FF:15:E7:95:99:38:24:76:73:0B:2E:7F:6F:C6:65:9D:03:BC:95:F8:F9:2E:9C:A5:55:E4:83:7B:41:41:3F:A1:91:01:3F:C7:C9:BB:39:55:31:61:51:F7:8A:F0:D8:31:B8:2E:F6:33:67:28:41:F8:4D:37:14:0F:41:D6:F0:CC:D0:2D:CB:F5:C8:1A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130127Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.243) 0:00:20.921 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "F9:0B:67:14:B2:8A:26:FA:BC:06:02:E1:5F:1B:22:44:28:0B:B8:AE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6E:DF:1A:67:5E:45:5F:C5:0C:11:F8:CA:7F:3C:F3:93:C1:5A:24:1B:0A:48:04:9D:CC:6E:34:D0:20:9A:9F:1B:74:37:82:19:0A:E5:1A:59:47:FA:12:E0:4B:45:5E:3E:EC:72:38:2E:60:63:90:8E:9D:11:68:FE:43:B5:FC:F8:89:A2:E8:9F:94:8E:54:E7:48:14:14:92:B1:AF:8C:6C:3B:A6:D0:40:D4:D2:CA:0C:AD:1A:4E:B0:39:6E:88:50:02:92:78:5E:A5:59:38:5A:B7:1F:90:CC:CE:90:33:E8:A9:92:77:6E:D9:7B:C0:BD:30:86:FB:24:09:67:26:94:17:89:BD:04:4C:2D:B2:AB:94:04:D9:1D:27:F6:91:AE:DD:3F:8D:30:AC:B0:1F:A0:EA:0B:FE:C1:90:09:04:7D:FD:DD:64:FC:CE:1A:83:9C:FA:64:49:62:1E:BF:34:4C:C0:F0:C2:25:EB:FE:39:E3:4F:06:FF:15:E7:95:99:38:24:76:73:0B:2E:7F:6F:C6:65:9D:03:BC:95:F8:F9:2E:9C:A5:55:E4:83:7B:41:41:3F:A1:91:01:3F:C7:C9:BB:39:55:31:61:51:F7:8A:F0:D8:31:B8:2E:F6:33:67:28:41:F8:4D:37:14:0F:41:D6:F0:CC:D0:2D:CB:F5:C8:1A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130127Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.012) 0:00:20.933 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.021) 0:00:20.955 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.012) 0:00:20.968 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.021) 0:00:20.989 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.025) 0:00:21.015 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.025) 0:00:21.041 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.047354", "end": "2024-06-01 13:01:35.390940", "rc": 0, "start": "2024-06-01 13:01:35.343586" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.227) 0:00:21.268 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:67 Saturday 01 June 2024 13:01:35 +0000 (0:00:00.029) 0:00:21.298 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 01 June 2024 13:01:36 +0000 (0:00:00.629) 0:00:21.927 ********* included: /WORKDIR/git-weekly-ci1bv34rk4/.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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 01 June 2024 13:01:36 +0000 (0:00:00.013) 0:00:21.941 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 01 June 2024 13:01:36 +0000 (0:00:00.018) 0:00:21.959 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 01 June 2024 13:01:36 +0000 (0:00:00.011) 0:00:21.971 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 01 June 2024 13:01:36 +0000 (0:00:00.010) 0:00:21.982 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 01 June 2024 13:01:36 +0000 (0:00:00.021) 0:00:22.003 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 01 June 2024 13:01:38 +0000 (0:00:02.343) 0:00:24.347 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 01 June 2024 13:01:40 +0000 (0:00:02.372) 0:00:26.719 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 01 June 2024 13:01:41 +0000 (0:00:00.212) 0:00:26.931 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 01 June 2024 13:01:41 +0000 (0:00:00.214) 0:00:27.146 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-06-01 13:01:26 UTC", "ActiveEnterTimestampMonotonic": "770252816", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target basic.target dbus.socket network.target systemd-journald.socket dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-01 13:01:26 UTC", "AssertTimestampMonotonic": "770243589", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-06-01 13:01:26 UTC", "ConditionTimestampMonotonic": "770243587", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "10619", "ExecMainStartTimestamp": "Sat 2024-06-01 13:01:26 UTC", "ExecMainStartTimestampMonotonic": "770244349", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-06-01 13:01:26 UTC] ; stop_time=[n/a] ; pid=10619 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-06-01 13:01:26 UTC", "InactiveExitTimestampMonotonic": "770244391", "InvocationID": "f41a35b2385c4061b357924b5a6fc1c0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10619", "MemoryAccounting": "yes", "MemoryCurrent": "3588096", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-06-01 13:01:26 UTC", "StateChangeTimestampMonotonic": "770252816", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-06-01 13:01:26 UTC", "WatchdogTimestampMonotonic": "770252814", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 01 June 2024 13:01:41 +0000 (0:00:00.343) 0:00:27.490 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 01 June 2024 13:01:42 +0000 (0:00:01.033) 0:00:28.523 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', '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", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', '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", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', '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", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', '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", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', '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", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', '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", "mode": "0600", "name": "certid_mode" } ], "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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 01 June 2024 13:01:42 +0000 (0:00:00.035) 0:00:28.558 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 01 June 2024 13:01:42 +0000 (0:00:00.018) 0:00:28.577 ********* 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-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 01 June 2024 13:01:42 +0000 (0:00:00.020) 0:00:28.597 ********* 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-ci1bv34rk4/tests/tests_fs_attrs.yml:85 Saturday 01 June 2024 13:01:42 +0000 (0:00:00.030) 0:00:28.628 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:112 Saturday 01 June 2024 13:01:43 +0000 (0:00:00.597) 0:00:29.225 ********* included: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs_mode.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0620'}) included: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid_mode.crt', 'key_path': '/etc/pki/tls/private/certid_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'mode': '0600'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:01:43 +0000 (0:00:00.020) 0:00:29.246 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:01:43 +0000 (0:00:00.010) 0:00:29.256 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:01:43 +0000 (0:00:00.010) 0:00:29.267 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:01:43 +0000 (0:00:00.010) 0:00:29.278 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:01:43 +0000 (0:00:00.009) 0:00:29.287 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:01:45 +0000 (0:00:02.350) 0:00:31.637 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246902.0850232, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8119ac1ffc8afae85a3ea694f35a9c741e005b10", "ctime": 1717246902.1920238, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894963, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717246902.083023, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs_mode.crt", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "3122002145", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:01:45 +0000 (0:00:00.191) 0:00:31.829 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:01:45 +0000 (0:00:00.011) 0:00:31.840 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.021) 0:00:31.862 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.019) 0:00:31.881 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246902.039023, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "03a903f746ab369fed35c724dd0edbe92ddccac0", "ctime": 1717246902.1930237, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894960, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717246902.083023, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "2923695288", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.190) 0:00:32.072 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.012) 0:00:32.084 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.020) 0:00:32.105 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "11:E5:5A:30:B4:58:63:9D:FE:11:D8:07:29:F0:48:27:BA:56:76:7D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6F:0F:23:20:91:A9:D8:96:3D:3F:B0:AE:6D:2D:9E:1A:DB:EE:7E:42:C2:9D:01:84:F4:EF:2D:BA:DA:F5:94:CF:C5:AF:6A:B5:91:7C:A9:B7:CD:75:25:3D:D5:E9:55:27:E9:30:82:2D:EF:A0:FA:E5:F9:03:32:31:21:91:39:5A:07:57:A4:BC:7C:CF:87:C8:38:A1:60:5A:19:91:C0:98:62:FC:45:61:AE:87:CE:DB:40:01:0A:F7:EC:6D:85:51:F6:E4:A7:FF:AA:CA:43:FD:AF:5C:06:AA:4A:3E:9D:8A:15:CA:6A:1F:C1:2B:F9:18:A6:8A:9A:9E:B0:ED:69:2A:43:27:D2:20:1E:58:F1:AC:B8:B4:7D:CF:A9:52:25:39:BA:A9:EA:12:20:09:20:65:C0:60:4E:59:ED:5E:C3:94:18:3E:5F:26:D7:8C:CC:19:FF:1D:A5:20:26:04:DA:2B:73:32:A1:8B:A9:4F:E7:2A:E3:D9:60:7A:81:B4:64:75:9D:70:FF:72:2A:FF:C3:7C:5C:88:3A:86:7C:FD:54:00:C6:02:CE:AF:34:8A:5B:7E:21:C2:49:0A:00:7E:7A:34:2D:2D:FC:78:19:D6:FD:C3:2A:DC:5E:59:17:48:D4:E1:EE:20:5C:B9:12:A5:0C:22:9A:3F:42:48:AD:CF:F4:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130142Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.242) 0:00:32.347 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "11:E5:5A:30:B4:58:63:9D:FE:11:D8:07:29:F0:48:27:BA:56:76:7D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6F:0F:23:20:91:A9:D8:96:3D:3F:B0:AE:6D:2D:9E:1A:DB:EE:7E:42:C2:9D:01:84:F4:EF:2D:BA:DA:F5:94:CF:C5:AF:6A:B5:91:7C:A9:B7:CD:75:25:3D:D5:E9:55:27:E9:30:82:2D:EF:A0:FA:E5:F9:03:32:31:21:91:39:5A:07:57:A4:BC:7C:CF:87:C8:38:A1:60:5A:19:91:C0:98:62:FC:45:61:AE:87:CE:DB:40:01:0A:F7:EC:6D:85:51:F6:E4:A7:FF:AA:CA:43:FD:AF:5C:06:AA:4A:3E:9D:8A:15:CA:6A:1F:C1:2B:F9:18:A6:8A:9A:9E:B0:ED:69:2A:43:27:D2:20:1E:58:F1:AC:B8:B4:7D:CF:A9:52:25:39:BA:A9:EA:12:20:09:20:65:C0:60:4E:59:ED:5E:C3:94:18:3E:5F:26:D7:8C:CC:19:FF:1D:A5:20:26:04:DA:2B:73:32:A1:8B:A9:4F:E7:2A:E3:D9:60:7A:81:B4:64:75:9D:70:FF:72:2A:FF:C3:7C:5C:88:3A:86:7C:FD:54:00:C6:02:CE:AF:34:8A:5B:7E:21:C2:49:0A:00:7E:7A:34:2D:2D:FC:78:19:D6:FD:C3:2A:DC:5E:59:17:48:D4:E1:EE:20:5C:B9:12:A5:0C:22:9A:3F:42:48:AD:CF:F4:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130142Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.012) 0:00:32.360 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.020) 0:00:32.380 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.011) 0:00:32.392 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.018) 0:00:32.410 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.021) 0:00:32.431 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.022) 0:00:32.453 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048336", "end": "2024-06-01 13:01:46.801923", "rc": 0, "start": "2024-06-01 13:01:46.753587" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.230) 0:00:32.684 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.020) 0:00:32.705 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.010) 0:00:32.715 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.011) 0:00:32.727 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.011) 0:00:32.738 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:01:46 +0000 (0:00:00.012) 0:00:32.751 ********* 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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:01:49 +0000 (0:00:02.330) 0:00:35.082 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246902.6080256, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1b22cd58ee5dc407c9932781f8851d5df36b4b0b", "ctime": 1717246902.6050255, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894969, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717246902.6050255, "nlink": 1, "path": "/etc/pki/tls/certs/certid_mode.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3306836576", "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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.193) 0:00:35.275 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.011) 0:00:35.286 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.022) 0:00:35.309 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.020) 0:00:35.330 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246902.5600255, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "dc62f83241577353bdf8380dbf645b530b9f6310", "ctime": 1717246902.6040256, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894967, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717246902.6040256, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "386270745", "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-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.189) 0:00:35.519 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.014) 0:00:35.534 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.021) 0:00:35.556 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "01:D2:82:88:C2:D3:1A:67:3B:48:2F:20:99:D0:9D:EE:8B:44:D2:E1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C6:44:C9:EB:37:15:01:73:96:05:C4:B6:FD:08:CE:D8:AF:D1:BB:71:99:4B:11:B7:AC:D6:CF:84:6E:85:38:0E:91:1E:9C:D1:6C:2F:C8:47:09:A6:EF:56:05:68:AC:36:84:1D:5A:01:70:03:C9:4C:13:0F:19:CC:54:CA:FF:49:5B:9E:58:D3:70:1D:C4:24:39:22:96:ED:33:A6:B4:42:63:71:D8:0F:47:E5:52:E3:42:FE:15:19:8E:A8:DC:61:A7:C4:B3:F9:BB:08:29:F5:76:7C:BB:B7:1A:32:4D:2F:C5:F1:55:EC:77:C1:18:82:20:3E:8B:4A:90:29:6E:CE:39:A9:25:D8:AE:43:E4:35:99:C9:88:93:AC:55:B9:30:18:7E:4E:DE:76:CC:E4:91:2B:07:0D:86:16:30:51:29:71:A0:D4:71:16:18:79:CE:CC:15:CE:91:46:17:7C:09:A2:BC:B7:6C:C2:33:AA:74:F2:C9:88:ED:C2:C4:A8:71:DC:D0:14:CB:3C:A2:F5:42:E5:82:F9:57:21:FB:A7:D3:3A:91:B9:A0:0D:2E:28:FE:8F:19:59:C4:09:A5:8C:CC:12:EA:7F:B7:43:9C:5E:17:7F:88:6E:ED:3E:80:29:25:14:47:0C:15:94:23:43:07:0F:F4:DA:CC:16:D3:05:A8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130142Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.241) 0:00:35.798 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6D:93:E9:D8:BA:C8:F6:FD:54:E5:F2:3D:31:2C:58:43:93:89:1D:E4" }, "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": "01:D2:82:88:C2:D3:1A:67:3B:48:2F:20:99:D0:9D:EE:8B:44:D2:E1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C6:44:C9:EB:37:15:01:73:96:05:C4:B6:FD:08:CE:D8:AF:D1:BB:71:99:4B:11:B7:AC:D6:CF:84:6E:85:38:0E:91:1E:9C:D1:6C:2F:C8:47:09:A6:EF:56:05:68:AC:36:84:1D:5A:01:70:03:C9:4C:13:0F:19:CC:54:CA:FF:49:5B:9E:58:D3:70:1D:C4:24:39:22:96:ED:33:A6:B4:42:63:71:D8:0F:47:E5:52:E3:42:FE:15:19:8E:A8:DC:61:A7:C4:B3:F9:BB:08:29:F5:76:7C:BB:B7:1A:32:4D:2F:C5:F1:55:EC:77:C1:18:82:20:3E:8B:4A:90:29:6E:CE:39:A9:25:D8:AE:43:E4:35:99:C9:88:93:AC:55:B9:30:18:7E:4E:DE:76:CC:E4:91:2B:07:0D:86:16:30:51:29:71:A0:D4:71:16:18:79:CE:CC:15:CE:91:46:17:7C:09:A2:BC:B7:6C:C2:33:AA:74:F2:C9:88:ED:C2:C4:A8:71:DC:D0:14:CB:3C:A2:F5:42:E5:82:F9:57:21:FB:A7:D3:3A:91:B9:A0:0D:2E:28:FE:8F:19:59:C4:09:A5:8C:CC:12:EA:7F:B7:43:9C:5E:17:7F:88:6E:ED:3E:80:29:25:14:47:0C:15:94:23:43:07:0F:F4:DA:CC:16:D3:05:A8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601130126Z", "not_valid_before": "20240601130142Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.011) 0:00:35.810 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.020) 0:00:35.831 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:01:49 +0000 (0:00:00.013) 0:00:35.844 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:01:50 +0000 (0:00:00.021) 0:00:35.865 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:01:50 +0000 (0:00:00.035) 0:00:35.901 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:01:50 +0000 (0:00:00.039) 0:00:35.940 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.049907", "end": "2024-06-01 13:01:50.294212", "rc": 0, "start": "2024-06-01 13:01:50.244305" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:01:50 +0000 (0:00:00.232) 0:00:36.172 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=99 changed=9 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 Saturday 01 June 2024 13:01:50 +0000 (0:00:00.026) 0:00:36.199 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.43s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 4.07s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.37s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.35s /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.35s /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.34s /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.34s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.33s /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.22s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.03s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.85s /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.66s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.63s /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:85 -------------------- Parse certificate ------------------------------------------------------- 0.43s /WORKDIR/git-weekly-ci1bv34rk4/tests/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.41s /WORKDIR/git-weekly-ci1bv34rk4/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.34s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.29s /WORKDIR/git-weekly-ci1bv34rk4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---