# 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-cicpp6b4fn/.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-cicpp6b4fn/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:2 Saturday 22 June 2024 14:52:50 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:5 Saturday 22 June 2024 14:52:50 +0000 (0:00:00.858) 0:00:00.871 ********* 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-cicpp6b4fn/tests/tests_fs_attrs.yml:9 Saturday 22 June 2024 14:52:51 +0000 (0:00:00.422) 0:00:01.293 ********* 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-cicpp6b4fn/tests/tests_fs_attrs.yml:14 Saturday 22 June 2024 14:52:51 +0000 (0:00:00.293) 0:00:01.587 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 22 June 2024 14:52:52 +0000 (0:00:00.617) 0:00:02.204 ********* included: /WORKDIR/git-weekly-cicpp6b4fn/.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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 22 June 2024 14:52:52 +0000 (0:00:00.012) 0:00:02.216 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 22 June 2024 14:52:52 +0000 (0:00:00.019) 0:00:02.236 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 22 June 2024 14:52:52 +0000 (0:00:00.244) 0:00:02.480 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 22 June 2024 14:52:52 +0000 (0:00:00.016) 0:00:02.497 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 22 June 2024 14:52:52 +0000 (0:00:00.026) 0:00:02.523 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 22 June 2024 14:52:56 +0000 (0:00:04.147) 0:00:06.671 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 22 June 2024 14:53:01 +0000 (0:00:04.290) 0:00:10.962 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 22 June 2024 14:53:01 +0000 (0:00:00.306) 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 22 June 2024 14:53:01 +0000 (0:00:00.216) 0:00:11.486 ********* 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": "dbus.socket dbus.service network.target systemd-journald.socket basic.target system.slice syslog.target sysinit.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": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 22 June 2024 14:53:02 +0000 (0:00:00.708) 0:00:12.195 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 22 June 2024 14:53:03 +0000 (0:00:01.234) 0:00:13.429 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 22 June 2024 14:53:03 +0000 (0:00:00.035) 0:00:13.465 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 22 June 2024 14:53:03 +0000 (0:00:00.022) 0:00:13.487 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 22 June 2024 14:53:03 +0000 (0:00:00.024) 0:00:13.511 ********* 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-cicpp6b4fn/tests/tests_fs_attrs.yml:32 Saturday 22 June 2024 14:53:03 +0000 (0:00:00.033) 0:00:13.545 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:61 Saturday 22 June 2024 14:53:04 +0000 (0:00:00.620) 0:00:14.165 ********* included: /WORKDIR/git-weekly-cicpp6b4fn/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-cicpp6b4fn/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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 14:53:04 +0000 (0:00:00.026) 0:00:14.192 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 14:53:04 +0000 (0:00:00.010) 0:00:14.202 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 14:53:04 +0000 (0:00:00.012) 0:00:14.215 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 14:53:04 +0000 (0:00:00.013) 0:00:14.229 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 14:53:04 +0000 (0:00:00.010) 0:00:14.239 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 14:53:06 +0000 (0:00:02.463) 0:00:16.702 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067982.838928, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "59da25d6fd8db070fa95fb3c1920378e635bf96b", "ctime": 1719067982.9179285, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894939, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719067982.8359282, "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": "1866619128", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 14:53:06 +0000 (0:00:00.196) 0:00:16.899 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 14:53:06 +0000 (0:00:00.012) 0:00:16.911 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.025) 0:00:16.937 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.022) 0:00:16.959 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067982.7879279, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8662694dd91058251de2265d09f139a6348a38c8", "ctime": 1719067982.9189284, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894912, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719067982.8359282, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "3809901489", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.198) 0:00:17.157 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.013) 0:00:17.171 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.023) 0:00:17.195 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "B8:B2:8D:40:44:6B:BC:8C:B6:5A:45:B5:80:9E:DD:7F:E0:32:78:10" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5D:3B:52:97:85:24:31:29:18:09:96:79:A6:E6:60:7A:BE:52:09:60:2C:8F:D0:67:A2:35:05:6E:16:E7:C2:21:CC:DD:04:E7:A5:FB:62:CF:CB:9E:C2:11:D9:81:AF:3E:53:D0:6A:1B:45:95:17:97:C3:C4:42:B1:86:5E:FB:DD:D5:20:9E:24:BC:4D:56:79:53:15:40:60:42:C4:30:69:FE:CE:20:4E:CE:CC:D7:42:12:67:B6:1B:77:F8:16:61:39:83:31:13:FD:A6:6E:2E:24:94:37:34:99:FA:67:BD:31:7C:6E:D6:FF:31:98:40:2B:23:99:04:6A:F4:AC:4E:85:3B:05:95:4B:E1:12:AD:33:71:A8:54:0D:7C:67:01:B3:20:AC:7C:22:19:BD:A9:53:8A:A7:D4:79:CB:75:76:3D:35:E3:3B:B9:D9:2B:61:A1:23:CF:80:4E:40:0E:CF:FF:AE:E7:70:19:11:4F:93:46:A9:BE:A1:7E:EC:C2:66:E3:E5:4E:7D:FA:78:22:12:DE:1C:7D:F8:F2:71:41:A0:82:76:9B:37:9C:98:14:62:B0:8D:DC:3C:9B:7A:4A:43:8E:95:CE:6B:2F:7D:C0:59:0E:D8:8E:5F:89:72:08:1E:29:0C:9D:44:59:27:B6:A3:F7:9E:8B:F5:FC:2C:62:A5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145302Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.434) 0:00:17.629 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "B8:B2:8D:40:44:6B:BC:8C:B6:5A:45:B5:80:9E:DD:7F:E0:32:78:10" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5D:3B:52:97:85:24:31:29:18:09:96:79:A6:E6:60:7A:BE:52:09:60:2C:8F:D0:67:A2:35:05:6E:16:E7:C2:21:CC:DD:04:E7:A5:FB:62:CF:CB:9E:C2:11:D9:81:AF:3E:53:D0:6A:1B:45:95:17:97:C3:C4:42:B1:86:5E:FB:DD:D5:20:9E:24:BC:4D:56:79:53:15:40:60:42:C4:30:69:FE:CE:20:4E:CE:CC:D7:42:12:67:B6:1B:77:F8:16:61:39:83:31:13:FD:A6:6E:2E:24:94:37:34:99:FA:67:BD:31:7C:6E:D6:FF:31:98:40:2B:23:99:04:6A:F4:AC:4E:85:3B:05:95:4B:E1:12:AD:33:71:A8:54:0D:7C:67:01:B3:20:AC:7C:22:19:BD:A9:53:8A:A7:D4:79:CB:75:76:3D:35:E3:3B:B9:D9:2B:61:A1:23:CF:80:4E:40:0E:CF:FF:AE:E7:70:19:11:4F:93:46:A9:BE:A1:7E:EC:C2:66:E3:E5:4E:7D:FA:78:22:12:DE:1C:7D:F8:F2:71:41:A0:82:76:9B:37:9C:98:14:62:B0:8D:DC:3C:9B:7A:4A:43:8E:95:CE:6B:2F:7D:C0:59:0E:D8:8E:5F:89:72:08:1E:29:0C:9D:44:59:27:B6:A3:F7:9E:8B:F5:FC:2C:62:A5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145302Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.012) 0:00:17.641 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.022) 0:00:17.664 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.012) 0:00:17.677 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.021) 0:00:17.698 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.025) 0:00:17.724 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 14:53:07 +0000 (0:00:00.022) 0:00:17.746 ********* 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.053854", "end": "2024-06-22 14:53:08.137765", "rc": 0, "start": "2024-06-22 14:53:08.083911" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 14:53:08 +0000 (0:00:00.325) 0:00:18.072 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 14:53:08 +0000 (0:00:00.021) 0:00:18.093 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 14:53:08 +0000 (0:00:00.009) 0:00:18.102 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 14:53:08 +0000 (0:00:00.012) 0:00:18.114 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 14:53:08 +0000 (0:00:00.011) 0:00:18.126 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 14:53:08 +0000 (0:00:00.008) 0:00:18.135 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 14:53:10 +0000 (0:00:02.449) 0:00:20.585 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067983.400931, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e893296e8659f91b30ecc9852d0bc28e935ef663", "ctime": 1719067983.4849312, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894943, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719067983.3979309, "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": "3531227659", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 14:53:10 +0000 (0:00:00.198) 0:00:20.783 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 14:53:10 +0000 (0:00:00.014) 0:00:20.798 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 14:53:10 +0000 (0:00:00.024) 0:00:20.823 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 14:53:10 +0000 (0:00:00.022) 0:00:20.845 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067983.3529305, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2982eda08bcfcde1b424f80372da5e0125479efd", "ctime": 1719067983.4859312, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894941, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719067983.3979309, "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": "1825508177", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.203) 0:00:21.048 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.012) 0:00:21.061 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.029) 0:00:21.091 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "00:1B:6B:0B:02:3F:C8:A3:B3:41:12:C2:44:EB:11:DB:60:B4:E0:37" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0D:B4:7A:8C:2F:96:61:C5:66:41:6D:12:49:C2:9F:81:EF:54:19:80:CC:08:E1:B9:E2:D1:88:71:E8:BD:39:1F:7B:20:2A:5A:B7:DD:E0:DF:D8:D5:62:BB:6A:63:21:D5:B6:F7:82:19:B6:D8:79:A1:3E:CC:3B:CF:EC:3C:00:1F:11:9A:E8:0E:86:79:E5:90:F8:5F:57:56:78:FF:A4:48:8C:6C:7E:2C:5D:7E:E2:07:3B:54:B1:54:E4:3B:37:90:25:6C:85:E8:7E:BB:08:89:21:B6:A3:09:4F:CB:85:4D:48:08:3A:D9:92:49:0A:EA:81:A0:CF:0E:39:B0:9C:04:E9:27:82:CF:EB:C8:E3:C7:D1:3E:06:F7:B9:E1:E0:B6:E3:28:BF:EE:58:CE:75:C2:4F:BA:DF:64:59:6B:B7:C9:E2:85:29:F6:F4:AD:8A:75:94:69:E6:DC:20:52:B9:B0:37:C7:03:17:6F:27:DD:B0:A6:DC:9D:A1:A1:FF:62:CF:9A:9E:27:F8:72:DC:25:E6:1E:AB:7C:94:52:E5:06:DA:19:E8:D3:9D:F6:3E:E1:9F:6C:BC:E0:0A:08:C1:AD:D5:38:D8:D6:0E:42:18:78:7C:10:C1:61:C2:A8:1E:5A:FB:B5:B8:62:E8:F7:89:A0:D6:EE:EC:AE:FC:2E:ED:F3:2E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145303Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.260) 0:00:21.351 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "00:1B:6B:0B:02:3F:C8:A3:B3:41:12:C2:44:EB:11:DB:60:B4:E0:37" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0D:B4:7A:8C:2F:96:61:C5:66:41:6D:12:49:C2:9F:81:EF:54:19:80:CC:08:E1:B9:E2:D1:88:71:E8:BD:39:1F:7B:20:2A:5A:B7:DD:E0:DF:D8:D5:62:BB:6A:63:21:D5:B6:F7:82:19:B6:D8:79:A1:3E:CC:3B:CF:EC:3C:00:1F:11:9A:E8:0E:86:79:E5:90:F8:5F:57:56:78:FF:A4:48:8C:6C:7E:2C:5D:7E:E2:07:3B:54:B1:54:E4:3B:37:90:25:6C:85:E8:7E:BB:08:89:21:B6:A3:09:4F:CB:85:4D:48:08:3A:D9:92:49:0A:EA:81:A0:CF:0E:39:B0:9C:04:E9:27:82:CF:EB:C8:E3:C7:D1:3E:06:F7:B9:E1:E0:B6:E3:28:BF:EE:58:CE:75:C2:4F:BA:DF:64:59:6B:B7:C9:E2:85:29:F6:F4:AD:8A:75:94:69:E6:DC:20:52:B9:B0:37:C7:03:17:6F:27:DD:B0:A6:DC:9D:A1:A1:FF:62:CF:9A:9E:27:F8:72:DC:25:E6:1E:AB:7C:94:52:E5:06:DA:19:E8:D3:9D:F6:3E:E1:9F:6C:BC:E0:0A:08:C1:AD:D5:38:D8:D6:0E:42:18:78:7C:10:C1:61:C2:A8:1E:5A:FB:B5:B8:62:E8:F7:89:A0:D6:EE:EC:AE:FC:2E:ED:F3:2E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145303Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.015) 0:00:21.367 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.023) 0:00:21.390 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.012) 0:00:21.403 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.021) 0:00:21.424 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.024) 0:00:21.449 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.023) 0:00:21.472 ********* 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.054228", "end": "2024-06-22 14:53:11.781212", "rc": 0, "start": "2024-06-22 14:53:11.726984" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.244) 0:00:21.716 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:67 Saturday 22 June 2024 14:53:11 +0000 (0:00:00.029) 0:00:21.746 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 22 June 2024 14:53:12 +0000 (0:00:00.650) 0:00:22.397 ********* included: /WORKDIR/git-weekly-cicpp6b4fn/.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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 22 June 2024 14:53:12 +0000 (0:00:00.016) 0:00:22.413 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 22 June 2024 14:53:12 +0000 (0:00:00.022) 0:00:22.436 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 22 June 2024 14:53:12 +0000 (0:00:00.016) 0:00:22.452 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 22 June 2024 14:53:12 +0000 (0:00:00.016) 0:00:22.468 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 22 June 2024 14:53:12 +0000 (0:00:00.032) 0:00:22.500 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 22 June 2024 14:53:15 +0000 (0:00:02.540) 0:00:25.041 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 22 June 2024 14:53:17 +0000 (0:00:02.468) 0:00:27.510 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 22 June 2024 14:53:17 +0000 (0:00:00.214) 0:00:27.724 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 22 June 2024 14:53:18 +0000 (0:00:00.219) 0:00:27.944 ********* 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-22 14:53:02 UTC", "ActiveEnterTimestampMonotonic": "773316372", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target syslog.target system.slice dbus.socket basic.target network.target dbus.service systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-22 14:53:02 UTC", "AssertTimestampMonotonic": "773305628", "Before": "shutdown.target multi-user.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-22 14:53:02 UTC", "ConditionTimestampMonotonic": "773305626", "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": "10749", "ExecMainStartTimestamp": "Sat 2024-06-22 14:53:02 UTC", "ExecMainStartTimestampMonotonic": "773306386", "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-22 14:53:02 UTC] ; stop_time=[n/a] ; pid=10749 ; 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-22 14:53:02 UTC", "InactiveExitTimestampMonotonic": "773306432", "InvocationID": "922cd4166e5942819e277142ef052785", "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": "10749", "MemoryAccounting": "yes", "MemoryCurrent": "3584000", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-06-22 14:53:02 UTC", "StateChangeTimestampMonotonic": "773316372", "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-22 14:53:02 UTC", "WatchdogTimestampMonotonic": "773316370", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 22 June 2024 14:53:18 +0000 (0:00:00.344) 0:00:28.289 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 22 June 2024 14:53:19 +0000 (0:00:01.074) 0:00:29.363 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 22 June 2024 14:53:19 +0000 (0:00:00.034) 0:00:29.397 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 22 June 2024 14:53:19 +0000 (0:00:00.019) 0:00:29.416 ********* 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-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 22 June 2024 14:53:19 +0000 (0:00:00.019) 0:00:29.435 ********* 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-cicpp6b4fn/tests/tests_fs_attrs.yml:85 Saturday 22 June 2024 14:53:19 +0000 (0:00:00.029) 0:00:29.464 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:112 Saturday 22 June 2024 14:53:20 +0000 (0:00:00.650) 0:00:30.115 ********* included: /WORKDIR/git-weekly-cicpp6b4fn/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-cicpp6b4fn/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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 14:53:20 +0000 (0:00:00.024) 0:00:30.139 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 14:53:20 +0000 (0:00:00.014) 0:00:30.154 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 14:53:20 +0000 (0:00:00.015) 0:00:30.169 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 14:53:20 +0000 (0:00:00.015) 0:00:30.184 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 14:53:20 +0000 (0:00:00.012) 0:00:30.197 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 14:53:22 +0000 (0:00:02.594) 0:00:32.792 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067998.7940056, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ef683c4ce346bfecf554c45e980c88a056f063d6", "ctime": 1719067998.9450064, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894949, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1719067998.7910058, "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": "2806544717", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.200) 0:00:32.992 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.014) 0:00:33.007 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.031) 0:00:33.038 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.039) 0:00:33.077 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067998.7470055, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3e9a91e386c7de5a921d4eff70625f970b12412d", "ctime": 1719067998.9460065, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894945, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1719067998.7910058, "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": "1287650244", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.198) 0:00:33.276 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.012) 0:00:33.288 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.023) 0:00:33.312 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "89:FA:35:D2:FF:F2:2F:23:60:E6:B1:21:F2:F4:3B:27:5D:6A:4A:62" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "79:30:F2:D0:6F:4F:46:7B:CC:91:CF:F5:D1:03:3E:9E:C0:2F:AB:9F:7E:CA:77:70:2E:62:A2:19:A8:2C:29:B9:19:84:83:BA:4C:E8:76:61:A1:3F:9B:EB:9D:73:34:5D:23:D2:00:44:F4:DD:11:68:1B:F7:35:AD:EB:34:D4:AE:78:2E:9A:93:0B:51:B2:49:18:83:38:3D:E2:59:D7:DA:F9:03:C2:07:27:43:51:D6:67:54:67:A7:43:DE:0A:38:00:03:95:E2:DD:DB:84:F5:77:1E:F0:61:AB:91:20:C6:20:7C:BC:06:45:2C:1C:4F:36:A8:81:62:AB:10:AE:74:91:AC:65:B0:97:68:D1:10:08:01:6C:CE:6E:76:C1:7D:C2:B1:5C:BD:1F:AE:2A:7B:24:30:24:84:41:B2:0D:22:0E:05:B7:07:4E:8C:9C:4F:BA:B1:CC:28:69:29:EB:F4:F2:19:35:D1:D2:36:E0:28:47:23:A1:80:76:DC:A4:65:27:CA:19:34:93:E4:42:84:85:05:49:CF:D2:B3:36:18:04:68:D2:D3:F7:74:85:C7:C5:E4:11:31:B9:7B:B8:61:8E:C8:6C:BE:D4:7E:D3:5E:57:82:92:93:C0:C7:0B:78:2C:1E:CE:C2:50:09:15:F2:47:96:32:53:A3:0A:D9:3C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145318Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.258) 0:00:33.570 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "89:FA:35:D2:FF:F2:2F:23:60:E6:B1:21:F2:F4:3B:27:5D:6A:4A:62" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "79:30:F2:D0:6F:4F:46:7B:CC:91:CF:F5:D1:03:3E:9E:C0:2F:AB:9F:7E:CA:77:70:2E:62:A2:19:A8:2C:29:B9:19:84:83:BA:4C:E8:76:61:A1:3F:9B:EB:9D:73:34:5D:23:D2:00:44:F4:DD:11:68:1B:F7:35:AD:EB:34:D4:AE:78:2E:9A:93:0B:51:B2:49:18:83:38:3D:E2:59:D7:DA:F9:03:C2:07:27:43:51:D6:67:54:67:A7:43:DE:0A:38:00:03:95:E2:DD:DB:84:F5:77:1E:F0:61:AB:91:20:C6:20:7C:BC:06:45:2C:1C:4F:36:A8:81:62:AB:10:AE:74:91:AC:65:B0:97:68:D1:10:08:01:6C:CE:6E:76:C1:7D:C2:B1:5C:BD:1F:AE:2A:7B:24:30:24:84:41:B2:0D:22:0E:05:B7:07:4E:8C:9C:4F:BA:B1:CC:28:69:29:EB:F4:F2:19:35:D1:D2:36:E0:28:47:23:A1:80:76:DC:A4:65:27:CA:19:34:93:E4:42:84:85:05:49:CF:D2:B3:36:18:04:68:D2:D3:F7:74:85:C7:C5:E4:11:31:B9:7B:B8:61:8E:C8:6C:BE:D4:7E:D3:5E:57:82:92:93:C0:C7:0B:78:2C:1E:CE:C2:50:09:15:F2:47:96:32:53:A3:0A:D9:3C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145318Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.014) 0:00:33.584 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.023) 0:00:33.608 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.014) 0:00:33.622 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.021) 0:00:33.644 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.025) 0:00:33.669 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 14:53:23 +0000 (0:00:00.024) 0:00:33.693 ********* 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.059341", "end": "2024-06-22 14:53:24.005467", "rc": 0, "start": "2024-06-22 14:53:23.946126" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 14:53:24 +0000 (0:00:00.248) 0:00:33.942 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 14:53:24 +0000 (0:00:00.022) 0:00:33.965 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 14:53:24 +0000 (0:00:00.010) 0:00:33.975 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 14:53:24 +0000 (0:00:00.012) 0:00:33.988 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 14:53:24 +0000 (0:00:00.014) 0:00:34.002 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 14:53:24 +0000 (0:00:00.009) 0:00:34.012 ********* 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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 14:53:26 +0000 (0:00:02.455) 0:00:36.468 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067999.3590086, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "02b20d429d33b360fd67a287d414cd53d74ffc64", "ctime": 1719067999.3560085, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894954, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1719067999.3560085, "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": "2583594295", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 14:53:26 +0000 (0:00:00.199) 0:00:36.668 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 14:53:26 +0000 (0:00:00.012) 0:00:36.680 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 14:53:26 +0000 (0:00:00.023) 0:00:36.703 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 14:53:26 +0000 (0:00:00.022) 0:00:36.726 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719067999.3110082, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6a1135e7386d1137c091f2ed1ff04d07b04935da", "ctime": 1719067999.3560085, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894951, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1719067999.3560085, "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": "353404646", "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-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.198) 0:00:36.924 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.014) 0:00:36.939 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.022) 0:00:36.961 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "9F:A5:B9:47:66:30:47:CA:B3:16:3F:66:98:AA:69:BD:C5:CC:BC:57" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "84:6C:A7:C9:48:5F:CD:A3:6C:56:9F:29:D5:93:DF:59:2B:DE:07:63:2F:EA:2F:1D:1C:37:C2:E4:A7:5C:40:C6:FD:D2:BB:6D:F7:B0:FA:BC:63:49:93:45:77:E6:BE:92:C0:22:A5:86:03:99:76:60:E1:12:42:F3:33:22:A9:ED:7F:E9:B2:5B:45:FE:24:E1:6B:78:F8:82:AF:7D:9F:0B:34:75:3A:89:5E:C0:E9:81:F0:29:94:78:15:37:10:A4:DB:33:E1:2F:0D:15:23:C2:92:8D:81:2B:D5:FE:C0:42:2E:DA:B7:7E:4C:3F:CB:12:7C:4C:EC:A0:DB:1C:9B:BB:2E:05:B5:1A:45:1F:AD:6E:1C:E6:8E:EF:88:EC:19:20:0C:30:E1:08:C3:37:BB:AF:88:E8:E2:F5:CD:DD:26:5F:B0:AE:5B:21:32:26:53:C4:CF:5D:63:7D:3B:90:19:2F:C3:C0:46:7B:FC:F2:24:C4:A0:84:9A:D0:61:5A:4D:F8:9D:A6:C7:61:52:2F:7E:A9:55:09:29:51:97:A1:83:B5:B3:84:A5:A8:1E:0D:AB:FB:CE:D8:AF:21:8D:3D:2A:B9:1B:16:2A:C7:64:49:73:93:FA:6A:54:AD:64:29:C8:52:01:B4:F7:80:58:A4:19:AE:9A:78:06:E7:59:59:99:2B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145319Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.255) 0:00:37.217 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:EC:F3:F7:BA:2A:0E:C1:3C:7A:AF:05:68:51:EB:14:58:0E:01:A6" }, "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": "9F:A5:B9:47:66:30:47:CA:B3:16:3F:66:98:AA:69:BD:C5:CC:BC:57" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "84:6C:A7:C9:48:5F:CD:A3:6C:56:9F:29:D5:93:DF:59:2B:DE:07:63:2F:EA:2F:1D:1C:37:C2:E4:A7:5C:40:C6:FD:D2:BB:6D:F7:B0:FA:BC:63:49:93:45:77:E6:BE:92:C0:22:A5:86:03:99:76:60:E1:12:42:F3:33:22:A9:ED:7F:E9:B2:5B:45:FE:24:E1:6B:78:F8:82:AF:7D:9F:0B:34:75:3A:89:5E:C0:E9:81:F0:29:94:78:15:37:10:A4:DB:33:E1:2F:0D:15:23:C2:92:8D:81:2B:D5:FE:C0:42:2E:DA:B7:7E:4C:3F:CB:12:7C:4C:EC:A0:DB:1C:9B:BB:2E:05:B5:1A:45:1F:AD:6E:1C:E6:8E:EF:88:EC:19:20:0C:30:E1:08:C3:37:BB:AF:88:E8:E2:F5:CD:DD:26:5F:B0:AE:5B:21:32:26:53:C4:CF:5D:63:7D:3B:90:19:2F:C3:C0:46:7B:FC:F2:24:C4:A0:84:9A:D0:61:5A:4D:F8:9D:A6:C7:61:52:2F:7E:A9:55:09:29:51:97:A1:83:B5:B3:84:A5:A8:1E:0D:AB:FB:CE:D8:AF:21:8D:3D:2A:B9:1B:16:2A:C7:64:49:73:93:FA:6A:54:AD:64:29:C8:52:01:B4:F7:80:58:A4:19:AE:9A:78:06:E7:59:59:99:2B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622145302Z", "not_valid_before": "20240622145319Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.012) 0:00:37.230 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.022) 0:00:37.253 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.013) 0:00:37.267 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.020) 0:00:37.288 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.025) 0:00:37.313 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.023) 0:00:37.337 ********* 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.058923", "end": "2024-06-22 14:53:27.647224", "rc": 0, "start": "2024-06-22 14:53:27.588301" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 14:53:27 +0000 (0:00:00.245) 0:00:37.582 ********* 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 22 June 2024 14:53:27 +0000 (0:00:00.026) 0:00:37.609 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.29s /WORKDIR/git-weekly-cicpp6b4fn/.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.15s /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.59s /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.54s /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.47s /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.46s /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.46s /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.45s /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.23s /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.07s /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.86s /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.71s /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.65s /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.65s /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.62s /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.62s /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:14 -------------------- Parse certificate ------------------------------------------------------- 0.43s /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.42s /WORKDIR/git-weekly-cicpp6b4fn/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.34s /WORKDIR/git-weekly-cicpp6b4fn/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Retrieve auto-renew flag ------------------------------------------------ 0.33s /WORKDIR/git-weekly-cicpp6b4fn/tests/tasks/assert_certificate_parameters.yml:143 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---