# 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-cixbdm0taz/.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-cixbdm0taz/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:2 Saturday 06 July 2024 14:36:07 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:5 Saturday 06 July 2024 14:36:08 +0000 (0:00:00.862) 0:00:00.874 ********* 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-cixbdm0taz/tests/tests_fs_attrs.yml:9 Saturday 06 July 2024 14:36:08 +0000 (0:00:00.392) 0:00:01.267 ********* 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-cixbdm0taz/tests/tests_fs_attrs.yml:14 Saturday 06 July 2024 14:36:08 +0000 (0:00:00.296) 0:00:01.563 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 06 July 2024 14:36:09 +0000 (0:00:00.601) 0:00:02.165 ********* included: /WORKDIR/git-weekly-cixbdm0taz/.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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 06 July 2024 14:36:09 +0000 (0:00:00.012) 0:00:02.178 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 06 July 2024 14:36:09 +0000 (0:00:00.019) 0:00:02.197 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 06 July 2024 14:36:09 +0000 (0:00:00.244) 0:00:02.442 ********* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 06 July 2024 14:36:09 +0000 (0:00:00.014) 0:00:02.457 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 06 July 2024 14:36:09 +0000 (0:00:00.021) 0:00:02.479 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 06 July 2024 14:36:13 +0000 (0:00:04.038) 0:00:06.518 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 06 July 2024 14:36:17 +0000 (0:00:04.055) 0:00:10.573 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 06 July 2024 14:36:18 +0000 (0:00:00.282) 0:00:10.856 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 06 July 2024 14:36:18 +0000 (0:00:00.208) 0:00:11.064 ********* 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": "sysinit.target syslog.target dbus.socket systemd-journald.socket basic.target network.target system.slice dbus.service", "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": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "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": "22406", "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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 06 July 2024 14:36:19 +0000 (0:00:00.654) 0:00:11.719 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 06 July 2024 14:36:20 +0000 (0:00:01.345) 0:00:13.065 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 06 July 2024 14:36:20 +0000 (0:00:00.030) 0:00:13.096 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 06 July 2024 14:36:20 +0000 (0:00:00.016) 0:00:13.112 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 06 July 2024 14:36:20 +0000 (0:00:00.017) 0:00:13.130 ********* 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-cixbdm0taz/tests/tests_fs_attrs.yml:32 Saturday 06 July 2024 14:36:20 +0000 (0:00:00.027) 0:00:13.158 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:61 Saturday 06 July 2024 14:36:21 +0000 (0:00:00.596) 0:00:13.754 ********* included: /WORKDIR/git-weekly-cixbdm0taz/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-cixbdm0taz/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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 14:36:21 +0000 (0:00:00.022) 0:00:13.776 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 14:36:21 +0000 (0:00:00.008) 0:00:13.784 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 14:36:21 +0000 (0:00:00.010) 0:00:13.795 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 14:36:21 +0000 (0:00:00.010) 0:00:13.806 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 Saturday 06 July 2024 14:36:21 +0000 (0:00:00.007) 0:00:13.813 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:38 Saturday 06 July 2024 14:36:23 +0000 (0:00:02.334) 0:00:16.148 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276579.5927534, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3038b7f14c18e98b8929171cc428aa2f938ad7f7", "ctime": 1720276579.673754, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894939, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1720276579.5897534, "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": "2208675617", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:43 Saturday 06 July 2024 14:36:23 +0000 (0:00:00.186) 0:00:16.334 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:49 Saturday 06 July 2024 14:36:23 +0000 (0:00:00.011) 0:00:16.345 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:59 Saturday 06 July 2024 14:36:23 +0000 (0:00:00.020) 0:00:16.366 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:65 Saturday 06 July 2024 14:36:23 +0000 (0:00:00.019) 0:00:16.385 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276579.547753, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "40ff1ba1961369f57a63cc11316bc9f1ee34cda7", "ctime": 1720276579.673754, "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": 1720276579.5897534, "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": "3259921053", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:70 Saturday 06 July 2024 14:36:23 +0000 (0:00:00.189) 0:00:16.575 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:76 Saturday 06 July 2024 14:36:23 +0000 (0:00:00.012) 0:00:16.587 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:86 Saturday 06 July 2024 14:36:23 +0000 (0:00:00.021) 0:00:16.608 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "4F:3C:FA:CC:28:34:B9:69:6C:AB:1C:73:43:D8:1C:39:DF:D6:CD:5F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CE:FA:50:36:C6:7A:FB:84:A9:61:B0:E3:8B:60:33:E4:EC:17:6F:92:C7:1E:2D:AC:7D:F0:7D:66:11:D2:3D:99:24:89:D0:24:6F:F9:CF:EA:FD:C6:42:6A:4D:CE:17:FE:6E:86:BA:77:75:EE:90:D7:55:30:97:A2:9A:84:39:0E:51:7F:6E:DC:6B:A4:57:8F:DD:13:19:F9:88:F2:EB:A9:66:7C:E5:4B:17:E8:6D:54:00:B8:78:A1:05:0E:27:A2:EA:38:0B:7A:0B:93:7E:18:74:6D:57:17:A4:E5:45:FE:B3:0B:21:7E:46:13:AA:7C:7D:9B:87:96:A1:DD:98:09:06:2C:19:BF:00:88:83:57:9C:B5:D9:38:45:44:14:9A:CF:4F:D1:A0:E4:AA:2C:88:13:A6:EC:B9:98:1F:8D:3F:49:0F:26:E8:51:46:4D:E1:8E:10:C2:96:1F:4C:39:97:77:3A:52:1A:22:CB:58:AF:0C:0A:94:60:B6:9A:ED:2D:9D:E6:C9:99:E0:87:F7:DE:F7:80:C3:04:43:8C:4B:94:63:B5:B5:E4:17:F9:F8:D6:0F:CF:8B:7B:45:85:18:81:28:87:A0:43:10:FD:95:76:77:95:C7:B0:11:9A:D4:73:5D:8B:75:FF:D3:98:01:4C:14:8F:F0:6A:B5:28:DF:A9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143619Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.469) 0:00:17.078 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "4F:3C:FA:CC:28:34:B9:69:6C:AB:1C:73:43:D8:1C:39:DF:D6:CD:5F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CE:FA:50:36:C6:7A:FB:84:A9:61:B0:E3:8B:60:33:E4:EC:17:6F:92:C7:1E:2D:AC:7D:F0:7D:66:11:D2:3D:99:24:89:D0:24:6F:F9:CF:EA:FD:C6:42:6A:4D:CE:17:FE:6E:86:BA:77:75:EE:90:D7:55:30:97:A2:9A:84:39:0E:51:7F:6E:DC:6B:A4:57:8F:DD:13:19:F9:88:F2:EB:A9:66:7C:E5:4B:17:E8:6D:54:00:B8:78:A1:05:0E:27:A2:EA:38:0B:7A:0B:93:7E:18:74:6D:57:17:A4:E5:45:FE:B3:0B:21:7E:46:13:AA:7C:7D:9B:87:96:A1:DD:98:09:06:2C:19:BF:00:88:83:57:9C:B5:D9:38:45:44:14:9A:CF:4F:D1:A0:E4:AA:2C:88:13:A6:EC:B9:98:1F:8D:3F:49:0F:26:E8:51:46:4D:E1:8E:10:C2:96:1F:4C:39:97:77:3A:52:1A:22:CB:58:AF:0C:0A:94:60:B6:9A:ED:2D:9D:E6:C9:99:E0:87:F7:DE:F7:80:C3:04:43:8C:4B:94:63:B5:B5:E4:17:F9:F8:D6:0F:CF:8B:7B:45:85:18:81:28:87:A0:43:10:FD:95:76:77:95:C7:B0:11:9A:D4:73:5D:8B:75:FF:D3:98:01:4C:14:8F:F0:6A:B5:28:DF:A9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143619Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:96 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.012) 0:00:17.090 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:104 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.019) 0:00:17.110 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:112 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.010) 0:00:17.120 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:119 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.018) 0:00:17.139 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:130 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.021) 0:00:17.160 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:143 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.020) 0:00:17.181 ********* 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.043844", "end": "2024-07-06 14:36:24.729612", "rc": 0, "start": "2024-07-06 14:36:24.685768" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:152 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.281) 0:00:17.462 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.020) 0:00:17.483 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.008) 0:00:17.492 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.010) 0:00:17.502 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.010) 0:00:17.513 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 Saturday 06 July 2024 14:36:24 +0000 (0:00:00.008) 0:00:17.521 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:38 Saturday 06 July 2024 14:36:27 +0000 (0:00:02.337) 0:00:19.859 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276580.1947575, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "182d3f1bc97329ab40eb74f6683ef8d1b143a847", "ctime": 1720276580.3227582, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894943, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1720276580.1917574, "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": "3622291025", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:43 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.192) 0:00:20.051 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:49 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.011) 0:00:20.063 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:59 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.022) 0:00:20.085 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:65 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.023) 0:00:20.108 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276580.1497571, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fde7f44c58341e6e39c53bb46c33fb486c633499", "ctime": 1720276580.3227582, "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": 1720276580.1917574, "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": "471591454", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:70 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.191) 0:00:20.299 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:76 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.012) 0:00:20.311 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:86 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.020) 0:00:20.332 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "D9:85:DE:20:7A:8A:93:BE:FC:92:24:B7:83:02:D1:DD:15:D8:17:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C9:EA:E1:45:8A:58:FB:17:DF:22:BB:22:9D:4C:42:53:47:09:48:B7:8B:22:45:3F:31:4B:BD:2D:57:C2:DD:98:8B:E3:3E:E9:F8:A0:E7:0C:08:E1:C7:46:CE:77:DE:63:97:88:96:34:12:67:A6:D5:99:29:8D:96:4D:5B:0A:7F:47:FC:EA:53:A5:FE:F3:76:77:27:DC:7F:18:45:AA:2E:D7:FE:A8:4E:87:0D:1F:F9:48:8A:0A:20:31:24:57:D6:A6:D7:6E:1B:3F:57:C4:32:A3:9A:F8:4C:68:40:E8:48:47:DB:92:63:73:C5:C3:48:99:04:16:4F:55:5E:F9:6F:C4:EE:49:11:B4:FC:3A:B8:9D:72:9C:A7:0A:CC:03:75:8A:DB:B2:77:A4:FC:5E:9F:CE:64:E8:61:05:F1:26:ED:9A:97:07:60:7C:2E:F0:5B:C6:73:5F:1B:1F:22:88:A8:04:20:58:C7:E3:96:35:F3:E7:FA:69:8E:06:7E:7A:37:A6:43:2F:2F:85:5B:0E:D9:99:FC:8B:2A:6A:FE:C7:51:E2:53:72:B6:D9:8C:ED:0E:34:DF:D8:1E:B7:16:48:63:EB:86:31:17:2D:C4:22:0F:AF:6F:D7:C1:E9:34:DD:A5:BA:E9:A3:C7:C0:81:E3:CC:64:BF:BC:56:42:71:99:B0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143620Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.240) 0:00:20.573 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "D9:85:DE:20:7A:8A:93:BE:FC:92:24:B7:83:02:D1:DD:15:D8:17:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C9:EA:E1:45:8A:58:FB:17:DF:22:BB:22:9D:4C:42:53:47:09:48:B7:8B:22:45:3F:31:4B:BD:2D:57:C2:DD:98:8B:E3:3E:E9:F8:A0:E7:0C:08:E1:C7:46:CE:77:DE:63:97:88:96:34:12:67:A6:D5:99:29:8D:96:4D:5B:0A:7F:47:FC:EA:53:A5:FE:F3:76:77:27:DC:7F:18:45:AA:2E:D7:FE:A8:4E:87:0D:1F:F9:48:8A:0A:20:31:24:57:D6:A6:D7:6E:1B:3F:57:C4:32:A3:9A:F8:4C:68:40:E8:48:47:DB:92:63:73:C5:C3:48:99:04:16:4F:55:5E:F9:6F:C4:EE:49:11:B4:FC:3A:B8:9D:72:9C:A7:0A:CC:03:75:8A:DB:B2:77:A4:FC:5E:9F:CE:64:E8:61:05:F1:26:ED:9A:97:07:60:7C:2E:F0:5B:C6:73:5F:1B:1F:22:88:A8:04:20:58:C7:E3:96:35:F3:E7:FA:69:8E:06:7E:7A:37:A6:43:2F:2F:85:5B:0E:D9:99:FC:8B:2A:6A:FE:C7:51:E2:53:72:B6:D9:8C:ED:0E:34:DF:D8:1E:B7:16:48:63:EB:86:31:17:2D:C4:22:0F:AF:6F:D7:C1:E9:34:DD:A5:BA:E9:A3:C7:C0:81:E3:CC:64:BF:BC:56:42:71:99:B0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143620Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:96 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.012) 0:00:20.585 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:104 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.020) 0:00:20.605 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:112 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.011) 0:00:20.617 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:119 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.018) 0:00:20.635 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:130 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.022) 0:00:20.658 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:143 Saturday 06 July 2024 14:36:27 +0000 (0:00:00.021) 0:00:20.680 ********* 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.044799", "end": "2024-07-06 14:36:28.178679", "rc": 0, "start": "2024-07-06 14:36:28.133880" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:152 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.230) 0:00:20.910 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:67 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.029) 0:00:20.939 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.606) 0:00:21.545 ********* included: /WORKDIR/git-weekly-cixbdm0taz/.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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.011) 0:00:21.556 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.018) 0:00:21.575 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.011) 0:00:21.586 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.011) 0:00:21.597 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 06 July 2024 14:36:28 +0000 (0:00:00.019) 0:00:21.617 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 06 July 2024 14:36:31 +0000 (0:00:02.363) 0:00:23.980 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 06 July 2024 14:36:33 +0000 (0:00:02.381) 0:00:26.362 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 06 July 2024 14:36:33 +0000 (0:00:00.215) 0:00:26.578 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 06 July 2024 14:36:34 +0000 (0:00:00.205) 0:00:26.784 ********* 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-06 14:36:18 UTC", "ActiveEnterTimestampMonotonic": "785981958", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket system.slice dbus.service network.target systemd-journald.socket sysinit.target syslog.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-06 14:36:18 UTC", "AssertTimestampMonotonic": "785972423", "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-06 14:36:18 UTC", "ConditionTimestampMonotonic": "785972421", "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": "10779", "ExecMainStartTimestamp": "Sat 2024-07-06 14:36:18 UTC", "ExecMainStartTimestampMonotonic": "785973235", "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-06 14:36:18 UTC] ; stop_time=[n/a] ; pid=10779 ; 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-06 14:36:18 UTC", "InactiveExitTimestampMonotonic": "785973273", "InvocationID": "b06029d9365c4d649c2643046187cc51", "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": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10779", "MemoryAccounting": "yes", "MemoryCurrent": "3584000", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice 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-06 14:36:18 UTC", "StateChangeTimestampMonotonic": "785981958", "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": "22406", "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-06 14:36:18 UTC", "WatchdogTimestampMonotonic": "785981956", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 06 July 2024 14:36:34 +0000 (0:00:00.344) 0:00:27.128 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 06 July 2024 14:36:35 +0000 (0:00:01.019) 0:00:28.148 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 06 July 2024 14:36:35 +0000 (0:00:00.031) 0:00:28.179 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 06 July 2024 14:36:35 +0000 (0:00:00.017) 0:00:28.197 ********* 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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 06 July 2024 14:36:35 +0000 (0:00:00.019) 0:00:28.216 ********* 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-cixbdm0taz/tests/tests_fs_attrs.yml:85 Saturday 06 July 2024 14:36:35 +0000 (0:00:00.028) 0:00:28.245 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:112 Saturday 06 July 2024 14:36:36 +0000 (0:00:00.593) 0:00:28.838 ********* included: /WORKDIR/git-weekly-cixbdm0taz/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-cixbdm0taz/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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 14:36:36 +0000 (0:00:00.020) 0:00:28.858 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 14:36:36 +0000 (0:00:00.008) 0:00:28.867 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 14:36:36 +0000 (0:00:00.010) 0:00:28.878 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 14:36:36 +0000 (0:00:00.011) 0:00:28.890 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 Saturday 06 July 2024 14:36:36 +0000 (0:00:00.010) 0:00:28.900 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:38 Saturday 06 July 2024 14:36:38 +0000 (0:00:02.347) 0:00:31.248 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276594.7988524, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4e86d2e82b91db36bd6ab80b47f71c1f0ca3324e", "ctime": 1720276594.841853, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894949, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1720276594.7948525, "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": "2619409124", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:43 Saturday 06 July 2024 14:36:38 +0000 (0:00:00.188) 0:00:31.436 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:49 Saturday 06 July 2024 14:36:38 +0000 (0:00:00.013) 0:00:31.450 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:59 Saturday 06 July 2024 14:36:38 +0000 (0:00:00.022) 0:00:31.472 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:65 Saturday 06 July 2024 14:36:38 +0000 (0:00:00.020) 0:00:31.493 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276594.7538524, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a1c3e3638f0b9caf0de2bc017a1c684c78b4a5a0", "ctime": 1720276594.8428528, "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": 1720276594.7948525, "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": "4089076189", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:70 Saturday 06 July 2024 14:36:38 +0000 (0:00:00.190) 0:00:31.684 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:76 Saturday 06 July 2024 14:36:38 +0000 (0:00:00.012) 0:00:31.696 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:86 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.020) 0:00:31.717 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "EE:E3:5E:4B:1A:A2:EB:80:3D:02:12:21:B0:71:BD:38:94:99:3F:8F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:0D:A7:23:74:97:70:EA:21:41:37:F7:46:8D:67:8D:24:DA:DE:D7:62:04:6C:FF:1D:79:40:E1:27:95:B4:FF:44:79:13:8E:BB:18:E4:26:75:C8:98:F4:B6:1A:D5:87:BB:CC:84:82:5D:E5:41:EA:32:E8:99:1D:1C:E8:9C:D9:A1:A2:8C:E3:ED:41:E7:29:AA:8B:F0:9A:B3:6C:0B:14:AA:DB:BF:E5:F1:C6:48:D2:ED:E8:6F:EA:D5:A4:A1:38:E5:EB:DA:53:D3:B1:88:3F:E2:0F:0E:34:4E:05:9A:80:9E:9A:D5:1A:A2:83:0C:37:9B:14:B2:CE:7A:DF:72:AE:A4:95:D9:B8:61:32:19:36:04:FA:9B:3A:08:F7:45:62:44:C4:1A:BD:45:40:85:89:14:94:20:49:D5:4E:15:26:81:CB:E1:77:95:45:F8:A4:3E:DB:ED:8B:5C:1F:E9:B1:D9:F3:8E:CD:E7:34:C9:95:21:45:39:1B:12:79:5C:51:CD:4A:23:89:C5:A4:6F:40:99:63:33:88:DB:1E:06:D9:D7:C7:EA:EC:37:0B:1E:93:97:92:20:DA:91:A4:38:AF:75:44:B2:59:63:47:C4:49:E5:45:EE:36:B7:CD:CC:9A:46:A9:E1:0F:EF:DF:0D:1E:B0:AE:DB:85:C0:08:D9:4E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143634Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.239) 0:00:31.956 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "EE:E3:5E:4B:1A:A2:EB:80:3D:02:12:21:B0:71:BD:38:94:99:3F:8F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:0D:A7:23:74:97:70:EA:21:41:37:F7:46:8D:67:8D:24:DA:DE:D7:62:04:6C:FF:1D:79:40:E1:27:95:B4:FF:44:79:13:8E:BB:18:E4:26:75:C8:98:F4:B6:1A:D5:87:BB:CC:84:82:5D:E5:41:EA:32:E8:99:1D:1C:E8:9C:D9:A1:A2:8C:E3:ED:41:E7:29:AA:8B:F0:9A:B3:6C:0B:14:AA:DB:BF:E5:F1:C6:48:D2:ED:E8:6F:EA:D5:A4:A1:38:E5:EB:DA:53:D3:B1:88:3F:E2:0F:0E:34:4E:05:9A:80:9E:9A:D5:1A:A2:83:0C:37:9B:14:B2:CE:7A:DF:72:AE:A4:95:D9:B8:61:32:19:36:04:FA:9B:3A:08:F7:45:62:44:C4:1A:BD:45:40:85:89:14:94:20:49:D5:4E:15:26:81:CB:E1:77:95:45:F8:A4:3E:DB:ED:8B:5C:1F:E9:B1:D9:F3:8E:CD:E7:34:C9:95:21:45:39:1B:12:79:5C:51:CD:4A:23:89:C5:A4:6F:40:99:63:33:88:DB:1E:06:D9:D7:C7:EA:EC:37:0B:1E:93:97:92:20:DA:91:A4:38:AF:75:44:B2:59:63:47:C4:49:E5:45:EE:36:B7:CD:CC:9A:46:A9:E1:0F:EF:DF:0D:1E:B0:AE:DB:85:C0:08:D9:4E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143634Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:96 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.012) 0:00:31.969 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:104 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.021) 0:00:31.990 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:112 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.011) 0:00:32.002 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:119 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.019) 0:00:32.021 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:130 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.022) 0:00:32.044 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:143 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.021) 0:00:32.066 ********* 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.050390", "end": "2024-07-06 14:36:39.567354", "rc": 0, "start": "2024-07-06 14:36:39.516964" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:152 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.231) 0:00:32.298 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.020) 0:00:32.318 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.008) 0:00:32.327 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.010) 0:00:32.338 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.011) 0:00:32.349 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 Saturday 06 July 2024 14:36:39 +0000 (0:00:00.007) 0:00:32.357 ********* 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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:38 Saturday 06 July 2024 14:36:41 +0000 (0:00:02.344) 0:00:34.701 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276595.3368561, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a1632fb25722473958de5c4c7e53edf24bb54ab6", "ctime": 1720276595.333856, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894954, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720276595.333856, "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": "2399794533", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:43 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.188) 0:00:34.889 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:49 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.011) 0:00:34.900 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:59 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.021) 0:00:34.922 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:65 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.018) 0:00:34.941 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720276595.2908556, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2a4d9abf258603f4244edf54ec4876c607f5377b", "ctime": 1720276595.333856, "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": 1720276595.333856, "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": "3927382130", "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-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:70 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.189) 0:00:35.130 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:76 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.012) 0:00:35.143 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:86 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.023) 0:00:35.166 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "F0:C6:BB:A7:F5:C8:2F:EE:4D:62:AE:74:15:6B:76:34:7E:B1:B6:5D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AF:2D:EA:36:44:F3:26:09:04:39:38:36:53:7B:5B:B5:6E:BE:98:D8:79:E5:75:88:8D:85:5A:69:C6:47:1E:FD:BE:D3:13:A6:8A:77:02:1E:93:85:BA:32:5B:53:15:AD:8A:5E:05:29:BD:B5:0C:CD:D2:46:D4:F7:95:2B:5A:84:C6:E8:0C:6F:7C:26:78:53:BF:B9:07:D9:45:E8:2E:F6:E3:4C:AE:A9:0F:74:F9:40:0E:58:0F:E7:91:E9:34:CA:3E:58:5A:DE:48:73:38:AB:F3:6C:D0:9C:6E:8E:EA:E1:CC:22:59:9C:8C:D2:08:B5:E1:58:8D:11:03:A1:93:42:F3:DD:65:02:45:40:CC:35:84:6C:14:E4:7A:A9:99:C2:18:54:E5:27:06:5B:96:72:7A:B2:21:07:A2:A3:65:79:EC:CE:AB:48:9C:01:CB:C0:4B:56:4C:37:30:9F:FD:A3:3B:1B:3B:82:1B:34:0E:93:AE:54:B0:98:40:95:2D:A7:8B:12:A9:26:0C:8B:21:4F:18:5E:1B:93:DF:F3:8F:7E:F4:26:C3:29:5A:FE:F8:7D:A5:72:39:4D:28:4D:34:F0:E1:A7:2D:58:AA:99:9D:AE:C9:DD:3E:75:F8:B0:FA:E4:EA:FE:8F:55:6D:8B:B9:83:89:AC:BE:0B:FC:C2:AA:A9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143635Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.241) 0:00:35.408 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "25:DA:0C:50:34:A1:6E:BB:33:1B:21:E3:F6:C5:B3:8F:E1:0F:34:E6" }, "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": "F0:C6:BB:A7:F5:C8:2F:EE:4D:62:AE:74:15:6B:76:34:7E:B1:B6:5D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AF:2D:EA:36:44:F3:26:09:04:39:38:36:53:7B:5B:B5:6E:BE:98:D8:79:E5:75:88:8D:85:5A:69:C6:47:1E:FD:BE:D3:13:A6:8A:77:02:1E:93:85:BA:32:5B:53:15:AD:8A:5E:05:29:BD:B5:0C:CD:D2:46:D4:F7:95:2B:5A:84:C6:E8:0C:6F:7C:26:78:53:BF:B9:07:D9:45:E8:2E:F6:E3:4C:AE:A9:0F:74:F9:40:0E:58:0F:E7:91:E9:34:CA:3E:58:5A:DE:48:73:38:AB:F3:6C:D0:9C:6E:8E:EA:E1:CC:22:59:9C:8C:D2:08:B5:E1:58:8D:11:03:A1:93:42:F3:DD:65:02:45:40:CC:35:84:6C:14:E4:7A:A9:99:C2:18:54:E5:27:06:5B:96:72:7A:B2:21:07:A2:A3:65:79:EC:CE:AB:48:9C:01:CB:C0:4B:56:4C:37:30:9F:FD:A3:3B:1B:3B:82:1B:34:0E:93:AE:54:B0:98:40:95:2D:A7:8B:12:A9:26:0C:8B:21:4F:18:5E:1B:93:DF:F3:8F:7E:F4:26:C3:29:5A:FE:F8:7D:A5:72:39:4D:28:4D:34:F0:E1:A7:2D:58:AA:99:9D:AE:C9:DD:3E:75:F8:B0:FA:E4:EA:FE:8F:55:6D:8B:B9:83:89:AC:BE:0B:FC:C2:AA:A9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706143619Z", "not_valid_before": "20240706143635Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:96 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.011) 0:00:35.419 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:104 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.020) 0:00:35.439 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:112 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.012) 0:00:35.451 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:119 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.019) 0:00:35.470 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:130 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.021) 0:00:35.492 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:143 Saturday 06 July 2024 14:36:42 +0000 (0:00:00.020) 0:00:35.512 ********* 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.049096", "end": "2024-07-06 14:36:43.007820", "rc": 0, "start": "2024-07-06 14:36:42.958724" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:152 Saturday 06 July 2024 14:36:43 +0000 (0:00:00.226) 0:00:35.739 ********* 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 06 July 2024 14:36:43 +0000 (0:00:00.024) 0:00:35.764 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.06s /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 4.04s /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.38s /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.36s /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.35s /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.34s /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.34s /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.33s /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.35s /WORKDIR/git-weekly-cixbdm0taz/.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-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.86s /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.65s /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.61s /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.59s /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:85 -------------------- Parse certificate ------------------------------------------------------- 0.47s /WORKDIR/git-weekly-cixbdm0taz/tests/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.39s /WORKDIR/git-weekly-cixbdm0taz/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.34s /WORKDIR/git-weekly-cixbdm0taz/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure group "somegroup" exists ----------------------------------------- 0.30s /WORKDIR/git-weekly-cixbdm0taz/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. ---^---^---^---^---^---