# 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-ci7h4szcpr/.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-ci7h4szcpr/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:2 Saturday 27 July 2024 13:00:50 +0000 (0:00:00.010) 0:00:00.010 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:5 Saturday 27 July 2024 13:00:51 +0000 (0:00:00.891) 0:00:00.902 ********* 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-ci7h4szcpr/tests/tests_fs_attrs.yml:9 Saturday 27 July 2024 13:00:51 +0000 (0:00:00.400) 0:00:01.302 ********* 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-ci7h4szcpr/tests/tests_fs_attrs.yml:14 Saturday 27 July 2024 13:00:51 +0000 (0:00:00.287) 0:00:01.589 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 July 2024 13:00:52 +0000 (0:00:00.628) 0:00:02.217 ********* included: /WORKDIR/git-weekly-ci7h4szcpr/.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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 13:00:52 +0000 (0:00:00.011) 0:00:02.229 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 27 July 2024 13:00:52 +0000 (0:00:00.017) 0:00:02.246 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 27 July 2024 13:00:52 +0000 (0:00:00.238) 0:00:02.485 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 27 July 2024 13:00:52 +0000 (0:00:00.014) 0:00:02.499 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 July 2024 13:00:52 +0000 (0:00:00.020) 0:00:02.519 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 27 July 2024 13:00:56 +0000 (0:00:03.803) 0:00:06.323 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 27 July 2024 13:01:00 +0000 (0:00:03.939) 0:00:10.262 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 27 July 2024 13:01:00 +0000 (0:00:00.266) 0:00:10.529 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 27 July 2024 13:01:01 +0000 (0:00:00.206) 0:00:10.735 ********* 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 syslog.target system.slice dbus.service basic.target network.target systemd-journald.socket 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": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 27 July 2024 13:01:01 +0000 (0:00:00.658) 0:00:11.394 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 27 July 2024 13:01:03 +0000 (0:00:01.632) 0:00:13.026 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 27 July 2024 13:01:03 +0000 (0:00:00.029) 0:00:13.056 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 27 July 2024 13:01:03 +0000 (0:00:00.016) 0:00:13.072 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 27 July 2024 13:01:03 +0000 (0:00:00.017) 0:00:13.089 ********* 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-ci7h4szcpr/tests/tests_fs_attrs.yml:32 Saturday 27 July 2024 13:01:03 +0000 (0:00:00.026) 0:00:13.116 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:61 Saturday 27 July 2024 13:01:04 +0000 (0:00:00.599) 0:00:13.716 ********* included: /WORKDIR/git-weekly-ci7h4szcpr/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-ci7h4szcpr/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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:01:04 +0000 (0:00:00.020) 0:00:13.736 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:01:04 +0000 (0:00:00.007) 0:00:13.744 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:01:04 +0000 (0:00:00.010) 0:00:13.754 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:01:04 +0000 (0:00:00.010) 0:00:13.765 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:01:04 +0000 (0:00:00.007) 0:00:13.772 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:01:06 +0000 (0:00:02.351) 0:00:16.123 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085262.2660434, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8d5452971f01afbe93a7b06cd052ac5065c7f4db", "ctime": 1722085262.333044, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894937, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722085262.2640433, "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": "2989065628", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:01:06 +0000 (0:00:00.190) 0:00:16.313 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:01:06 +0000 (0:00:00.010) 0:00:16.324 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:01:06 +0000 (0:00:00.020) 0:00:16.344 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:01:06 +0000 (0:00:00.017) 0:00:16.362 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085262.218043, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3697c0af4e58c2fad0f5f3d1c1f72b91e1ff727e", "ctime": 1722085262.333044, "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": 1722085262.2640433, "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": "1237529949", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:01:06 +0000 (0:00:00.187) 0:00:16.550 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:01:06 +0000 (0:00:00.010) 0:00:16.560 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:01:06 +0000 (0:00:00.019) 0:00:16.580 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "23:73:40:17:07:9E:42:81:4D:7B:14:DA:E7:99:9D:D1:ED:2D:5B:AA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "05:DA:E5:18:29:8C:EA:A7:F4:F3:DB:20:4B:57:CB:1F:16:40:87:21:4A:F3:AD:DF:A6:86:BB:C0:CB:F1:33:B6:D4:9F:3D:FB:D6:7F:6B:DA:25:DB:61:B5:CF:A4:DC:2F:DA:5D:FD:31:F3:61:71:C2:D0:4F:BD:35:BE:50:68:8E:48:0F:9C:FC:9D:93:22:B2:7F:5D:A2:5A:A6:B7:9C:44:89:05:27:F1:4B:87:2E:57:68:96:DD:E1:D5:3C:E6:07:C3:80:E6:6C:A1:19:36:AE:AE:8C:E3:DB:F5:7F:46:99:8F:DA:03:49:A5:DD:EC:83:FD:52:87:85:0A:9C:4B:8E:3B:ED:1E:5B:DA:46:06:B9:08:57:21:3F:8D:4D:C0:F9:CF:BC:98:25:1A:C9:78:8B:DB:F7:E7:96:2D:A4:61:5F:C4:E3:3D:04:38:C3:B5:7A:9F:7C:24:5C:A3:BC:53:AF:12:25:0E:B4:F4:36:21:53:82:E3:CA:A3:1F:53:22:97:66:F2:56:B9:9E:15:07:28:67:5A:C6:84:00:9E:42:7E:D4:49:87:AA:E7:9D:06:6D:14:5B:EE:1F:C2:06:3F:BA:FF:BD:FB:A1:A4:CC:9C:FA:30:9A:76:3C:6A:4E:19:93:6C:40:E7:1B:7D:6F:FF:DA:14:17:70:2B:15:2F:B6:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130102Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.404) 0:00:16.985 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "23:73:40:17:07:9E:42:81:4D:7B:14:DA:E7:99:9D:D1:ED:2D:5B:AA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "05:DA:E5:18:29:8C:EA:A7:F4:F3:DB:20:4B:57:CB:1F:16:40:87:21:4A:F3:AD:DF:A6:86:BB:C0:CB:F1:33:B6:D4:9F:3D:FB:D6:7F:6B:DA:25:DB:61:B5:CF:A4:DC:2F:DA:5D:FD:31:F3:61:71:C2:D0:4F:BD:35:BE:50:68:8E:48:0F:9C:FC:9D:93:22:B2:7F:5D:A2:5A:A6:B7:9C:44:89:05:27:F1:4B:87:2E:57:68:96:DD:E1:D5:3C:E6:07:C3:80:E6:6C:A1:19:36:AE:AE:8C:E3:DB:F5:7F:46:99:8F:DA:03:49:A5:DD:EC:83:FD:52:87:85:0A:9C:4B:8E:3B:ED:1E:5B:DA:46:06:B9:08:57:21:3F:8D:4D:C0:F9:CF:BC:98:25:1A:C9:78:8B:DB:F7:E7:96:2D:A4:61:5F:C4:E3:3D:04:38:C3:B5:7A:9F:7C:24:5C:A3:BC:53:AF:12:25:0E:B4:F4:36:21:53:82:E3:CA:A3:1F:53:22:97:66:F2:56:B9:9E:15:07:28:67:5A:C6:84:00:9E:42:7E:D4:49:87:AA:E7:9D:06:6D:14:5B:EE:1F:C2:06:3F:BA:FF:BD:FB:A1:A4:CC:9C:FA:30:9A:76:3C:6A:4E:19:93:6C:40:E7:1B:7D:6F:FF:DA:14:17:70:2B:15:2F:B6:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130102Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.010) 0:00:16.996 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.019) 0:00:17.015 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.010) 0:00:17.025 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.017) 0:00:17.043 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.020) 0:00:17.063 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.019) 0:00:17.083 ********* 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.044694", "end": "2024-07-27 13:01:07.626977", "rc": 0, "start": "2024-07-27 13:01:07.582283" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.277) 0:00:17.360 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.019) 0:00:17.379 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.007) 0:00:17.387 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.010) 0:00:17.397 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.010) 0:00:17.408 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:01:07 +0000 (0:00:00.007) 0:00:17.415 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:01:10 +0000 (0:00:02.350) 0:00:19.765 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085263.1880522, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "11fbc0a69783a62201863d2a973c48da4b18f153", "ctime": 1722085263.281053, "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": 1722085263.186052, "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": "1664183033", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.188) 0:00:19.954 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.012) 0:00:19.967 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.020) 0:00:19.987 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.018) 0:00:20.005 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085263.1420517, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1d4f0e018aef9abcd3a0f4783ef3a6f2234aaabf", "ctime": 1722085263.282053, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "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": 1722085263.186052, "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": "3716168315", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.199) 0:00:20.204 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.010) 0:00:20.215 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.020) 0:00:20.235 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "B4:6B:04:6C:4E:FD:66:68:B4:0C:E5:21:2B:14:85:35:02:0A:12:AC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6B:4B:70:CE:E1:91:C3:EC:0F:FF:52:36:52:C5:31:F2:E1:62:52:BD:98:AB:24:8E:7D:BB:A0:A0:77:20:59:40:06:EA:8A:6F:9E:23:0A:EC:F9:92:ED:2E:2F:7A:99:05:BF:B4:FE:2C:2E:B7:BC:D5:B7:9B:10:45:C2:D9:79:B2:76:2E:1A:DE:3B:AC:9C:63:C2:1D:FD:6F:F4:03:54:17:12:08:B0:BB:14:FD:47:98:FF:54:D6:5C:7A:4F:AD:00:D3:E0:F7:DB:92:E3:5D:93:92:FD:DF:A5:B8:20:11:76:D8:65:05:B0:86:9B:24:25:09:E6:35:55:4C:46:90:EF:7E:C5:C3:90:A4:8B:FE:9E:54:B8:0A:3A:24:A4:B4:1A:F4:24:B5:F3:19:62:6A:CE:C9:50:32:92:37:8A:5E:56:F7:B7:48:37:08:F0:DE:9F:CD:D7:CA:0F:31:CF:96:3B:C1:78:2F:71:D8:8A:27:6A:7F:98:BA:94:EB:47:3A:A2:10:F1:38:D8:A2:69:AF:65:CF:A0:FC:FA:EC:D6:76:53:73:30:77:AC:90:68:AF:A3:A2:9E:68:AA:F3:74:37:D3:26:7C:06:AF:7B:74:F4:33:82:94:4F:3B:35:42:F4:A1:E5:77:13:BA:CC:1A:DA:4B:AF:0C:5F:B8:31:A9:F7:81" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130103Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.241) 0:00:20.476 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "B4:6B:04:6C:4E:FD:66:68:B4:0C:E5:21:2B:14:85:35:02:0A:12:AC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6B:4B:70:CE:E1:91:C3:EC:0F:FF:52:36:52:C5:31:F2:E1:62:52:BD:98:AB:24:8E:7D:BB:A0:A0:77:20:59:40:06:EA:8A:6F:9E:23:0A:EC:F9:92:ED:2E:2F:7A:99:05:BF:B4:FE:2C:2E:B7:BC:D5:B7:9B:10:45:C2:D9:79:B2:76:2E:1A:DE:3B:AC:9C:63:C2:1D:FD:6F:F4:03:54:17:12:08:B0:BB:14:FD:47:98:FF:54:D6:5C:7A:4F:AD:00:D3:E0:F7:DB:92:E3:5D:93:92:FD:DF:A5:B8:20:11:76:D8:65:05:B0:86:9B:24:25:09:E6:35:55:4C:46:90:EF:7E:C5:C3:90:A4:8B:FE:9E:54:B8:0A:3A:24:A4:B4:1A:F4:24:B5:F3:19:62:6A:CE:C9:50:32:92:37:8A:5E:56:F7:B7:48:37:08:F0:DE:9F:CD:D7:CA:0F:31:CF:96:3B:C1:78:2F:71:D8:8A:27:6A:7F:98:BA:94:EB:47:3A:A2:10:F1:38:D8:A2:69:AF:65:CF:A0:FC:FA:EC:D6:76:53:73:30:77:AC:90:68:AF:A3:A2:9E:68:AA:F3:74:37:D3:26:7C:06:AF:7B:74:F4:33:82:94:4F:3B:35:42:F4:A1:E5:77:13:BA:CC:1A:DA:4B:AF:0C:5F:B8:31:A9:F7:81" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130103Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.011) 0:00:20.487 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.019) 0:00:20.507 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.010) 0:00:20.517 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.018) 0:00:20.535 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.020) 0:00:20.556 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:01:10 +0000 (0:00:00.019) 0:00:20.576 ********* 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.046567", "end": "2024-07-27 13:01:11.067928", "rc": 0, "start": "2024-07-27 13:01:11.021361" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.227) 0:00:20.803 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:67 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.026) 0:00:20.830 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.595) 0:00:21.425 ********* included: /WORKDIR/git-weekly-ci7h4szcpr/.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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.010) 0:00:21.436 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.017) 0:00:21.453 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.010) 0:00:21.464 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.011) 0:00:21.475 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.021) 0:00:21.497 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 27 July 2024 13:01:14 +0000 (0:00:02.335) 0:00:23.832 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 27 July 2024 13:01:16 +0000 (0:00:02.348) 0:00:26.181 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 27 July 2024 13:01:16 +0000 (0:00:00.206) 0:00:26.387 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 27 July 2024 13:01:16 +0000 (0:00:00.207) 0:00:26.595 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-07-27 13:01:01 UTC", "ActiveEnterTimestampMonotonic": "779643527", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target network.target basic.target dbus.service dbus.socket system.slice systemd-journald.socket syslog.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-27 13:01:01 UTC", "AssertTimestampMonotonic": "779633530", "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-07-27 13:01:01 UTC", "ConditionTimestampMonotonic": "779633529", "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": "10827", "ExecMainStartTimestamp": "Sat 2024-07-27 13:01:01 UTC", "ExecMainStartTimestampMonotonic": "779634352", "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-07-27 13:01:01 UTC] ; stop_time=[n/a] ; pid=10827 ; 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-07-27 13:01:01 UTC", "InactiveExitTimestampMonotonic": "779634397", "InvocationID": "1c3880adb973476fa87bdd35d5c56486", "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": "10827", "MemoryAccounting": "yes", "MemoryCurrent": "3588096", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-07-27 13:01:01 UTC", "StateChangeTimestampMonotonic": "779643527", "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-07-27 13:01:01 UTC", "WatchdogTimestampMonotonic": "779643525", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 27 July 2024 13:01:17 +0000 (0:00:00.341) 0:00:26.937 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 27 July 2024 13:01:18 +0000 (0:00:01.015) 0:00:27.952 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.029) 0:00:27.982 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.016) 0:00:27.998 ********* 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-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.017) 0:00:28.015 ********* 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-ci7h4szcpr/tests/tests_fs_attrs.yml:85 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.027) 0:00:28.042 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:112 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.605) 0:00:28.647 ********* included: /WORKDIR/git-weekly-ci7h4szcpr/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-ci7h4szcpr/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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.019) 0:00:28.667 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.009) 0:00:28.676 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.010) 0:00:28.687 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.010) 0:00:28.697 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:01:18 +0000 (0:00:00.007) 0:00:28.705 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:01:21 +0000 (0:00:02.345) 0:00:31.050 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085277.6511893, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b37d2f1d0c575a12fea8c861360231a48ccfc5a2", "ctime": 1722085277.7691905, "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": 1722085277.6471894, "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": "3776655009", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:01:21 +0000 (0:00:00.190) 0:00:31.241 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:01:21 +0000 (0:00:00.010) 0:00:31.252 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:01:21 +0000 (0:00:00.020) 0:00:31.272 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:01:21 +0000 (0:00:00.019) 0:00:31.291 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085277.5951889, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d10e10da21258f89221738aa6608c972ba3642bd", "ctime": 1722085277.7691905, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894943, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722085277.6461892, "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": "2966640625", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:01:21 +0000 (0:00:00.191) 0:00:31.483 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:01:21 +0000 (0:00:00.010) 0:00:31.494 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:01:21 +0000 (0:00:00.020) 0:00:31.514 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "7A:1E:72:8D:FB:4C:5D:D4:1E:CF:4E:EE:26:82:8A:32:CE:49:2D:53" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1C:DF:B9:2A:72:34:CE:A6:F7:E4:76:3F:1F:2F:D4:08:D6:FD:15:36:EE:93:A7:1A:15:22:8E:78:CB:05:2F:8E:38:DB:52:56:88:BD:D4:0E:58:10:36:27:27:49:02:A7:56:C3:CA:9B:A3:57:30:B4:CE:71:01:45:69:03:4E:CB:FB:C0:63:12:F8:DF:7F:B7:D0:74:EF:01:C9:56:32:51:97:CB:81:1E:53:9E:44:BD:50:5D:53:BD:84:31:10:FE:F1:5B:2D:8D:D5:61:9E:8C:A4:98:C7:5A:7B:F9:CF:CF:F9:1C:01:E1:59:94:BD:5B:20:A7:8B:7B:AB:2D:FD:F6:D7:89:9B:69:8B:89:E7:B6:A5:7B:68:A3:F0:CD:C2:1B:72:47:36:E8:43:04:4D:95:9A:B3:29:5E:73:36:07:68:AD:17:4D:6A:0A:4B:41:04:C2:AF:70:4F:B5:B1:FB:EF:B8:98:B1:47:1B:DC:A4:EF:4C:9E:D0:89:A8:1F:D5:ED:11:52:5C:18:D2:07:56:AF:F7:6F:2D:CC:BA:1E:9C:ED:76:61:55:3C:90:D8:D8:E9:EC:0C:04:71:D1:0E:11:2B:D3:AB:11:9B:DE:9A:F6:2F:23:61:34:78:B9:14:A2:08:F0:27:DF:06:2C:61:E9:E2:A9:06:AD:0C:15:3C:A3:D5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130117Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.238) 0:00:31.752 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "7A:1E:72:8D:FB:4C:5D:D4:1E:CF:4E:EE:26:82:8A:32:CE:49:2D:53" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1C:DF:B9:2A:72:34:CE:A6:F7:E4:76:3F:1F:2F:D4:08:D6:FD:15:36:EE:93:A7:1A:15:22:8E:78:CB:05:2F:8E:38:DB:52:56:88:BD:D4:0E:58:10:36:27:27:49:02:A7:56:C3:CA:9B:A3:57:30:B4:CE:71:01:45:69:03:4E:CB:FB:C0:63:12:F8:DF:7F:B7:D0:74:EF:01:C9:56:32:51:97:CB:81:1E:53:9E:44:BD:50:5D:53:BD:84:31:10:FE:F1:5B:2D:8D:D5:61:9E:8C:A4:98:C7:5A:7B:F9:CF:CF:F9:1C:01:E1:59:94:BD:5B:20:A7:8B:7B:AB:2D:FD:F6:D7:89:9B:69:8B:89:E7:B6:A5:7B:68:A3:F0:CD:C2:1B:72:47:36:E8:43:04:4D:95:9A:B3:29:5E:73:36:07:68:AD:17:4D:6A:0A:4B:41:04:C2:AF:70:4F:B5:B1:FB:EF:B8:98:B1:47:1B:DC:A4:EF:4C:9E:D0:89:A8:1F:D5:ED:11:52:5C:18:D2:07:56:AF:F7:6F:2D:CC:BA:1E:9C:ED:76:61:55:3C:90:D8:D8:E9:EC:0C:04:71:D1:0E:11:2B:D3:AB:11:9B:DE:9A:F6:2F:23:61:34:78:B9:14:A2:08:F0:27:DF:06:2C:61:E9:E2:A9:06:AD:0C:15:3C:A3:D5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130117Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.010) 0:00:31.763 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.018) 0:00:31.782 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.010) 0:00:31.793 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.017) 0:00:31.810 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.020) 0:00:31.831 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.020) 0:00:31.851 ********* 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.049677", "end": "2024-07-27 13:01:22.345034", "rc": 0, "start": "2024-07-27 13:01:22.295357" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.229) 0:00:32.081 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.019) 0:00:32.100 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.008) 0:00:32.109 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.010) 0:00:32.119 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.010) 0:00:32.130 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:01:22 +0000 (0:00:00.007) 0:00:32.137 ********* 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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:01:24 +0000 (0:00:02.349) 0:00:34.487 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085278.1561942, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d788706ed4b31936ef2ab527b626291fea5b6e73", "ctime": 1722085278.154194, "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": 1722085278.154194, "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": "3212411708", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:01:24 +0000 (0:00:00.187) 0:00:34.674 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:01:24 +0000 (0:00:00.010) 0:00:34.685 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:01:24 +0000 (0:00:00.021) 0:00:34.707 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.020) 0:00:34.728 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085278.1111937, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4be447cbdea672260af8f46e714862f561f4f007", "ctime": 1722085278.154194, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894949, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722085278.154194, "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": "632141105", "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-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.188) 0:00:34.916 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.012) 0:00:34.929 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.020) 0:00:34.950 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "4D:1D:5A:4A:02:B6:6D:3C:C1:98:54:F0:02:79:4A:E2:37:33:19:CD" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "37:42:79:8D:26:60:FD:20:84:B5:1B:E5:90:0E:E6:CC:1B:63:7B:B9:70:36:1F:E5:4B:FE:FB:50:8C:0E:8C:2D:9B:C0:E9:14:F4:23:D9:87:51:69:C3:D7:42:60:82:42:BE:A1:E9:01:A8:85:AF:62:1F:90:9A:19:AF:D8:21:0E:4A:67:F2:FA:D5:52:C9:F5:8F:E5:DF:C8:24:3D:B2:FE:F8:55:57:63:C1:2B:1E:CC:40:09:D9:A0:42:A8:DE:1A:DF:C6:5C:C1:8F:78:7C:7C:02:1D:0C:72:6D:DC:68:29:96:82:C5:20:2D:C9:F2:56:E1:A5:D0:3E:37:16:E6:7D:B1:9B:E0:3E:66:93:85:7E:86:DC:AE:FE:D8:49:88:86:26:D7:69:99:E2:5F:D1:22:98:4B:94:D1:A0:30:78:78:06:96:EF:C3:33:33:99:7F:6B:C0:78:78:C5:90:6B:04:21:CC:88:02:44:13:81:16:26:B4:C0:77:1E:1B:75:41:28:63:0F:C2:B1:33:08:D1:A7:41:66:5E:54:CB:5B:48:02:72:4A:2F:48:D3:4B:89:3F:4F:D5:D3:80:07:A8:53:C2:78:24:22:A0:33:E5:30:DC:D1:44:7E:AE:D8:11:C8:02:EA:0C:70:1A:2A:A2:10:F6:E8:D1:93:E2:DC:64:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130118Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.239) 0:00:35.189 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D5:20:A8:1F:46:39:E9:2A:4B:A6:EC:C3:E3:56:4E:F9:DE:F3:10:DE" }, "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": "4D:1D:5A:4A:02:B6:6D:3C:C1:98:54:F0:02:79:4A:E2:37:33:19:CD" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "37:42:79:8D:26:60:FD:20:84:B5:1B:E5:90:0E:E6:CC:1B:63:7B:B9:70:36:1F:E5:4B:FE:FB:50:8C:0E:8C:2D:9B:C0:E9:14:F4:23:D9:87:51:69:C3:D7:42:60:82:42:BE:A1:E9:01:A8:85:AF:62:1F:90:9A:19:AF:D8:21:0E:4A:67:F2:FA:D5:52:C9:F5:8F:E5:DF:C8:24:3D:B2:FE:F8:55:57:63:C1:2B:1E:CC:40:09:D9:A0:42:A8:DE:1A:DF:C6:5C:C1:8F:78:7C:7C:02:1D:0C:72:6D:DC:68:29:96:82:C5:20:2D:C9:F2:56:E1:A5:D0:3E:37:16:E6:7D:B1:9B:E0:3E:66:93:85:7E:86:DC:AE:FE:D8:49:88:86:26:D7:69:99:E2:5F:D1:22:98:4B:94:D1:A0:30:78:78:06:96:EF:C3:33:33:99:7F:6B:C0:78:78:C5:90:6B:04:21:CC:88:02:44:13:81:16:26:B4:C0:77:1E:1B:75:41:28:63:0F:C2:B1:33:08:D1:A7:41:66:5E:54:CB:5B:48:02:72:4A:2F:48:D3:4B:89:3F:4F:D5:D3:80:07:A8:53:C2:78:24:22:A0:33:E5:30:DC:D1:44:7E:AE:D8:11:C8:02:EA:0C:70:1A:2A:A2:10:F6:E8:D1:93:E2:DC:64:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130101Z", "not_valid_before": "20240727130118Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.011) 0:00:35.200 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.020) 0:00:35.220 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.011) 0:00:35.232 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.019) 0:00:35.251 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.022) 0:00:35.274 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.021) 0:00:35.296 ********* 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.049144", "end": "2024-07-27 13:01:25.791439", "rc": 0, "start": "2024-07-27 13:01:25.742295" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:01:25 +0000 (0:00:00.230) 0:00:35.526 ********* 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 27 July 2024 13:01:25 +0000 (0:00:00.024) 0:00:35.551 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.94s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.80s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.35s /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.35s /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.35s /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.35s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.35s /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.34s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.63s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.02s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.89s /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.66s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.63s /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.61s /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:67 -------------------- Parse certificate ------------------------------------------------------- 0.40s /WORKDIR/git-weekly-ci7h4szcpr/tests/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.40s /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.34s /WORKDIR/git-weekly-ci7h4szcpr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure group "somegroup" exists ----------------------------------------- 0.29s /WORKDIR/git-weekly-ci7h4szcpr/tests/tests_fs_attrs.yml:9 --------------------- ---^---^---^---^---^--- # 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. ---^---^---^---^---^---