# 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-cihti5i4nt/.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-cihti5i4nt/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:2 Saturday 22 June 2024 16:14:00 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:5 Saturday 22 June 2024 16:14:01 +0000 (0:00:00.870) 0:00:00.884 ********* 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-cihti5i4nt/tests/tests_fs_attrs.yml:9 Saturday 22 June 2024 16:14:01 +0000 (0:00:00.504) 0:00:01.388 ********* 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-cihti5i4nt/tests/tests_fs_attrs.yml:14 Saturday 22 June 2024 16:14:02 +0000 (0:00:00.383) 0:00:01.771 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 22 June 2024 16:14:02 +0000 (0:00:00.608) 0:00:02.380 ********* included: /WORKDIR/git-weekly-cihti5i4nt/.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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 22 June 2024 16:14:02 +0000 (0:00:00.012) 0:00:02.392 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 22 June 2024 16:14:02 +0000 (0:00:00.019) 0:00:02.411 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 22 June 2024 16:14:03 +0000 (0:00:00.245) 0:00:02.656 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 22 June 2024 16:14:03 +0000 (0:00:00.017) 0:00:02.674 ********* 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" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 22 June 2024 16:14:03 +0000 (0:00:00.030) 0:00:02.705 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64", "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-cffi-1.14.5-5.el9.x86_64" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 22 June 2024 16:14:08 +0000 (0:00:05.393) 0:00:08.098 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-packaging-20.9-5.el9.noarch", "Installed: python3-pyparsing-2.4.7-9.el9.noarch", "Installed: certmonger-0.79.17-2.el9.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 22 June 2024 16:14:11 +0000 (0:00:02.569) 0:00:10.668 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 22 June 2024 16:14:11 +0000 (0:00:00.284) 0:00:10.953 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 22 June 2024 16:14:11 +0000 (0:00:00.203) 0:00:11.157 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice sysinit.target basic.target syslog.target systemd-journald.socket network.target dbus-broker.service dbus.socket", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22356", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 22 June 2024 16:14:12 +0000 (0:00:00.719) 0:00:11.876 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 22 June 2024 16:14:13 +0000 (0:00:01.215) 0:00:13.092 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 22 June 2024 16:14:13 +0000 (0:00:00.031) 0:00:13.124 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 22 June 2024 16:14:13 +0000 (0:00:00.017) 0:00:13.142 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 22 June 2024 16:14:13 +0000 (0:00:00.019) 0:00:13.161 ********* 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-cihti5i4nt/tests/tests_fs_attrs.yml:32 Saturday 22 June 2024 16:14:13 +0000 (0:00:00.030) 0:00:13.192 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:61 Saturday 22 June 2024 16:14:14 +0000 (0:00:00.602) 0:00:13.794 ********* included: /WORKDIR/git-weekly-cihti5i4nt/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-cihti5i4nt/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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 16:14:14 +0000 (0:00:00.023) 0:00:13.817 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 16:14:14 +0000 (0:00:00.009) 0:00:13.826 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 16:14:14 +0000 (0:00:00.012) 0:00:13.839 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 16:14:14 +0000 (0:00:00.013) 0:00:13.852 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 16:14:14 +0000 (0:00:00.008) 0:00:13.861 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.840) 0:00:14.701 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072852.862305, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fd06cc773700f6f15af8ce52abc8c63ba32eab3b", "ctime": 1719072852.9743052, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2334107, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719072852.8603048, "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": "1401614641", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.187) 0:00:14.889 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.011) 0:00:14.901 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.023) 0:00:14.924 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.020) 0:00:14.945 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072852.8063047, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fea6609291dbc436d97df91607504ede88806fe4", "ctime": 1719072852.9743052, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 476341, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719072852.8603048, "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": "224281185", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.191) 0:00:15.136 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.012) 0:00:15.149 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.022) 0:00:15.171 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "B7:3C:3F:CF:0A:A8:82:0B:8B:86:84:D0:EF:6B:7B:F4:17:E3:A8:D6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "61:F3:23:8E:CF:90:47:34:C8:8D:20:1B:07:B9:BE:61:23:6B:A7:67:75:F6:8F:E6:44:2C:61:2D:4A:89:89:77:7B:63:98:25:F9:A4:F5:85:B1:36:92:D9:B5:2B:E5:0F:B5:23:4A:3A:B7:3C:60:61:4D:2E:47:E5:9F:5F:63:AE:2C:B1:9A:23:82:65:D2:F0:76:A8:F2:74:B0:DD:57:03:58:B0:E5:E0:D6:F9:E7:76:7F:1C:B1:A9:A3:D4:CE:22:96:03:B1:8D:7D:A6:B0:2F:89:85:A8:B5:57:2A:B8:F8:DC:88:BF:5C:15:76:39:E9:EA:FA:45:DA:A4:D4:E9:2D:9E:67:9B:89:B9:7B:FB:2F:A8:B8:DD:86:32:FC:5D:6F:95:34:ED:35:C7:BB:DA:49:9C:7E:5F:5E:64:4F:C0:41:87:95:9C:6F:5E:E8:1C:BF:B5:A8:14:4C:98:AF:DC:21:06:0C:2A:F2:24:81:0E:4B:44:15:3C:A1:63:85:B5:6C:D3:A0:25:8E:1E:ED:0A:6C:B9:7D:2B:8C:36:2C:8F:BA:57:B7:FA:CE:F8:4B:83:EA:E2:CD:35:A8:26:E3:82:83:65:71:50:09:DF:94:B7:CA:27:39:8D:AB:13:6F:F0:4A:51:B2:30:0E:B9:F5:14:14:CB:04:16:5F:78:8B:B2:42" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161412Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.339) 0:00:15.510 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "B7:3C:3F:CF:0A:A8:82:0B:8B:86:84:D0:EF:6B:7B:F4:17:E3:A8:D6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "61:F3:23:8E:CF:90:47:34:C8:8D:20:1B:07:B9:BE:61:23:6B:A7:67:75:F6:8F:E6:44:2C:61:2D:4A:89:89:77:7B:63:98:25:F9:A4:F5:85:B1:36:92:D9:B5:2B:E5:0F:B5:23:4A:3A:B7:3C:60:61:4D:2E:47:E5:9F:5F:63:AE:2C:B1:9A:23:82:65:D2:F0:76:A8:F2:74:B0:DD:57:03:58:B0:E5:E0:D6:F9:E7:76:7F:1C:B1:A9:A3:D4:CE:22:96:03:B1:8D:7D:A6:B0:2F:89:85:A8:B5:57:2A:B8:F8:DC:88:BF:5C:15:76:39:E9:EA:FA:45:DA:A4:D4:E9:2D:9E:67:9B:89:B9:7B:FB:2F:A8:B8:DD:86:32:FC:5D:6F:95:34:ED:35:C7:BB:DA:49:9C:7E:5F:5E:64:4F:C0:41:87:95:9C:6F:5E:E8:1C:BF:B5:A8:14:4C:98:AF:DC:21:06:0C:2A:F2:24:81:0E:4B:44:15:3C:A1:63:85:B5:6C:D3:A0:25:8E:1E:ED:0A:6C:B9:7D:2B:8C:36:2C:8F:BA:57:B7:FA:CE:F8:4B:83:EA:E2:CD:35:A8:26:E3:82:83:65:71:50:09:DF:94:B7:CA:27:39:8D:AB:13:6F:F0:4A:51:B2:30:0E:B9:F5:14:14:CB:04:16:5F:78:8B:B2:42" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161412Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.011) 0:00:15.521 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 16:14:15 +0000 (0:00:00.021) 0:00:15.543 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.012) 0:00:15.555 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.019) 0:00:15.574 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.023) 0:00:15.597 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.023) 0:00:15.621 ********* 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.040271", "end": "2024-06-22 16:14:16.333727", "rc": 0, "start": "2024-06-22 16:14:16.293456" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.283) 0:00:15.904 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.023) 0:00:15.928 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.009) 0:00:15.937 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.013) 0:00:15.951 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.012) 0:00:15.963 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 16:14:16 +0000 (0:00:00.008) 0:00:15.972 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.846) 0:00:16.818 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072853.431306, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cfe3c88f8d211980829fc02a8b1c17f44ee3e46e", "ctime": 1719072853.513306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 2556162, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719072853.4283059, "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": "1431781506", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.194) 0:00:17.013 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.019) 0:00:17.032 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.025) 0:00:17.058 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.030) 0:00:17.089 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072853.3813057, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bc16343b1199b737fb0716f024ddfa33303bb5ef", "ctime": 1719072853.513306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 476347, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1719072853.4283059, "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": "4259625714", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.189) 0:00:17.278 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.014) 0:00:17.293 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 16:14:17 +0000 (0:00:00.039) 0:00:17.332 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "87:43:41:6C:C7:7D:D1:D1:D6:F8:B8:6D:57:FE:13:C3:A5:6A:12:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "97:7B:CA:CE:46:D7:16:54:0A:D5:14:F7:96:16:97:7D:31:B7:75:23:6D:18:81:73:B4:5B:1F:BC:EC:A8:1A:CA:A3:B8:0F:AB:9C:80:A9:3A:E0:09:07:7C:17:B4:9D:1F:44:CB:47:2C:81:42:7F:21:82:D5:C2:03:8E:BD:9D:5B:EA:2B:50:99:73:C2:DF:BB:BC:6C:B1:D6:8E:D8:47:2F:F9:7E:CD:D5:5B:F3:4D:D3:4D:0B:6E:4D:24:0D:53:C3:97:AF:0C:5B:93:0D:63:A4:61:86:F5:F0:A7:A9:67:CC:18:89:81:1B:90:CD:98:45:19:62:0D:2C:CD:A7:FB:23:D6:CA:4C:73:55:52:F4:8C:40:F6:C2:F0:69:6E:56:8E:16:D7:F3:C7:FB:C6:31:15:92:3F:DF:54:43:A8:DC:4F:80:2F:3C:AB:FC:A1:BC:80:F4:8F:19:BD:0B:1A:E2:F2:84:BA:1E:63:94:1F:52:13:9C:23:7E:87:63:3F:22:9A:BC:D9:A5:92:ED:49:E1:FE:CC:B5:C5:93:05:65:76:2B:54:09:16:AF:88:FE:FE:D1:16:E2:97:5F:1E:B1:CD:F4:33:87:E6:A2:70:1D:42:74:67:BD:3A:CB:63:5F:38:33:01:40:37:31:94:05:EF:F1:E6:C0:41:AB:19:9E:78:C1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161413Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.252) 0:00:17.585 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "87:43:41:6C:C7:7D:D1:D1:D6:F8:B8:6D:57:FE:13:C3:A5:6A:12:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "97:7B:CA:CE:46:D7:16:54:0A:D5:14:F7:96:16:97:7D:31:B7:75:23:6D:18:81:73:B4:5B:1F:BC:EC:A8:1A:CA:A3:B8:0F:AB:9C:80:A9:3A:E0:09:07:7C:17:B4:9D:1F:44:CB:47:2C:81:42:7F:21:82:D5:C2:03:8E:BD:9D:5B:EA:2B:50:99:73:C2:DF:BB:BC:6C:B1:D6:8E:D8:47:2F:F9:7E:CD:D5:5B:F3:4D:D3:4D:0B:6E:4D:24:0D:53:C3:97:AF:0C:5B:93:0D:63:A4:61:86:F5:F0:A7:A9:67:CC:18:89:81:1B:90:CD:98:45:19:62:0D:2C:CD:A7:FB:23:D6:CA:4C:73:55:52:F4:8C:40:F6:C2:F0:69:6E:56:8E:16:D7:F3:C7:FB:C6:31:15:92:3F:DF:54:43:A8:DC:4F:80:2F:3C:AB:FC:A1:BC:80:F4:8F:19:BD:0B:1A:E2:F2:84:BA:1E:63:94:1F:52:13:9C:23:7E:87:63:3F:22:9A:BC:D9:A5:92:ED:49:E1:FE:CC:B5:C5:93:05:65:76:2B:54:09:16:AF:88:FE:FE:D1:16:E2:97:5F:1E:B1:CD:F4:33:87:E6:A2:70:1D:42:74:67:BD:3A:CB:63:5F:38:33:01:40:37:31:94:05:EF:F1:E6:C0:41:AB:19:9E:78:C1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161413Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.014) 0:00:17.600 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.026) 0:00:17.626 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.018) 0:00:17.644 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.024) 0:00:17.669 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.023) 0:00:17.693 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.026) 0:00:17.719 ********* 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.039486", "end": "2024-06-22 16:14:18.368542", "rc": 0, "start": "2024-06-22 16:14:18.329056" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.216) 0:00:17.936 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:67 Saturday 22 June 2024 16:14:18 +0000 (0:00:00.030) 0:00:17.967 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 22 June 2024 16:14:19 +0000 (0:00:00.590) 0:00:18.558 ********* included: /WORKDIR/git-weekly-cihti5i4nt/.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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 22 June 2024 16:14:19 +0000 (0:00:00.014) 0:00:18.572 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 22 June 2024 16:14:19 +0000 (0:00:00.022) 0:00:18.595 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 22 June 2024 16:14:19 +0000 (0:00:00.017) 0:00:18.613 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 22 June 2024 16:14:19 +0000 (0:00:00.018) 0:00:18.631 ********* 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" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 22 June 2024 16:14:19 +0000 (0:00:00.046) 0:00:18.678 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 22 June 2024 16:14:19 +0000 (0:00:00.838) 0:00:19.516 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 22 June 2024 16:14:20 +0000 (0:00:00.858) 0:00:20.374 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 22 June 2024 16:14:21 +0000 (0:00:00.206) 0:00:20.581 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 22 June 2024 16:14:21 +0000 (0:00:00.207) 0:00:20.789 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-06-22 16:14:12 UTC", "ActiveEnterTimestampMonotonic": "466205798", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target syslog.target network.target dbus-broker.service system.slice basic.target systemd-journald.socket dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-22 16:14:12 UTC", "AssertTimestampMonotonic": "466188053", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "735806000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-06-22 16:14:12 UTC", "ConditionTimestampMonotonic": "466188050", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4205", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8939", "ExecMainStartTimestamp": "Sat 2024-06-22 16:14:12 UTC", "ExecMainStartTimestampMonotonic": "466196101", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-06-22 16:14:12 UTC] ; stop_time=[n/a] ; pid=8939 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-06-22 16:14:12 UTC] ; stop_time=[n/a] ; pid=8939 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-06-22 16:14:12 UTC", "InactiveExitTimestampMonotonic": "466196574", "InvocationID": "2829c89c592a4dd098ee5fef35546b57", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8939", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4341760", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-06-22 16:14:12 UTC", "StateChangeTimestampMonotonic": "466205798", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22356", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 22 June 2024 16:14:21 +0000 (0:00:00.340) 0:00:21.129 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 22 June 2024 16:14:22 +0000 (0:00:01.119) 0:00:22.249 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 22 June 2024 16:14:22 +0000 (0:00:00.032) 0:00:22.282 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 22 June 2024 16:14:22 +0000 (0:00:00.018) 0:00:22.300 ********* 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-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 22 June 2024 16:14:22 +0000 (0:00:00.020) 0:00:22.321 ********* 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-cihti5i4nt/tests/tests_fs_attrs.yml:85 Saturday 22 June 2024 16:14:22 +0000 (0:00:00.030) 0:00:22.351 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:112 Saturday 22 June 2024 16:14:23 +0000 (0:00:00.594) 0:00:22.946 ********* included: /WORKDIR/git-weekly-cihti5i4nt/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-cihti5i4nt/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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 16:14:23 +0000 (0:00:00.022) 0:00:22.969 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 16:14:23 +0000 (0:00:00.012) 0:00:22.981 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 16:14:23 +0000 (0:00:00.012) 0:00:22.994 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 16:14:23 +0000 (0:00:00.012) 0:00:23.007 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 16:14:23 +0000 (0:00:00.009) 0:00:23.017 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.837) 0:00:23.854 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072862.0453207, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e8bc6c3a0ea27c57fe76268463a110f45459f0e8", "ctime": 1719072862.1193209, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2845827, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1719072862.0433207, "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": "1827523392", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.187) 0:00:24.041 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.012) 0:00:24.054 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.022) 0:00:24.076 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.021) 0:00:24.098 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072861.9953206, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "575b8b7d6b4ac94032e41c40283083e371f2c58b", "ctime": 1719072862.1193209, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 884361, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1719072862.0433207, "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": "695096420", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.186) 0:00:24.284 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.012) 0:00:24.297 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.022) 0:00:24.320 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "82:A0:97:63:1E:57:E6:73:A7:9E:FB:69:A1:B2:41:2E:89:71:35:1F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "01:38:8E:78:CE:5B:70:E6:0F:51:EE:E8:E8:07:7F:DD:3F:7D:C3:47:4B:37:5D:8E:6B:1E:88:37:D5:57:08:26:B5:BB:16:FD:2D:09:E1:1B:13:CC:C5:A2:53:AE:57:52:83:3C:96:CE:25:11:2C:27:97:37:BC:DB:A7:77:4F:30:61:98:BF:E5:6B:5E:BB:FB:C1:59:DB:09:B2:39:01:2F:5B:65:0B:0A:A6:04:26:92:0B:DB:2A:B2:CF:12:2C:05:27:0F:9F:3F:93:D9:D6:64:99:C5:D4:A1:48:E8:EC:E7:D0:98:A9:05:F0:AB:4E:F8:AF:3C:C5:CF:8C:E3:51:34:5F:05:0F:2D:9E:52:B1:D3:8A:7D:01:A1:C3:94:10:36:72:34:9B:DF:0F:66:BF:5F:90:85:ED:E2:6D:1E:13:B9:62:26:5E:50:4C:6C:76:A0:A1:16:05:50:69:01:DF:D4:57:03:45:25:FE:94:82:48:9E:A1:CD:34:E7:7B:47:98:C4:BC:40:A1:28:6F:BE:A6:4C:2E:4C:2D:D1:F3:39:C3:9B:62:D3:56:47:20:0C:FD:8A:2A:ED:D6:13:1B:2B:31:14:CD:0A:8F:89:31:F8:56:AE:A9:A6:D8:70:83:B7:75:3E:92:4D:14:CB:33:20:61:7B:15:DC:86:13:8A:35:EA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161422Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 16:14:24 +0000 (0:00:00.223) 0:00:24.543 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "82:A0:97:63:1E:57:E6:73:A7:9E:FB:69:A1:B2:41:2E:89:71:35:1F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "01:38:8E:78:CE:5B:70:E6:0F:51:EE:E8:E8:07:7F:DD:3F:7D:C3:47:4B:37:5D:8E:6B:1E:88:37:D5:57:08:26:B5:BB:16:FD:2D:09:E1:1B:13:CC:C5:A2:53:AE:57:52:83:3C:96:CE:25:11:2C:27:97:37:BC:DB:A7:77:4F:30:61:98:BF:E5:6B:5E:BB:FB:C1:59:DB:09:B2:39:01:2F:5B:65:0B:0A:A6:04:26:92:0B:DB:2A:B2:CF:12:2C:05:27:0F:9F:3F:93:D9:D6:64:99:C5:D4:A1:48:E8:EC:E7:D0:98:A9:05:F0:AB:4E:F8:AF:3C:C5:CF:8C:E3:51:34:5F:05:0F:2D:9E:52:B1:D3:8A:7D:01:A1:C3:94:10:36:72:34:9B:DF:0F:66:BF:5F:90:85:ED:E2:6D:1E:13:B9:62:26:5E:50:4C:6C:76:A0:A1:16:05:50:69:01:DF:D4:57:03:45:25:FE:94:82:48:9E:A1:CD:34:E7:7B:47:98:C4:BC:40:A1:28:6F:BE:A6:4C:2E:4C:2D:D1:F3:39:C3:9B:62:D3:56:47:20:0C:FD:8A:2A:ED:D6:13:1B:2B:31:14:CD:0A:8F:89:31:F8:56:AE:A9:A6:D8:70:83:B7:75:3E:92:4D:14:CB:33:20:61:7B:15:DC:86:13:8A:35:EA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161422Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.012) 0:00:24.555 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.022) 0:00:24.578 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.012) 0:00:24.591 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.021) 0:00:24.612 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.023) 0:00:24.636 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.023) 0:00:24.659 ********* 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.041005", "end": "2024-06-22 16:14:25.304820", "rc": 0, "start": "2024-06-22 16:14:25.263815" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.214) 0:00:24.873 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:2 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.022) 0:00:24.896 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:9 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.008) 0:00:24.905 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:14 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.011) 0:00:24.917 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:18 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.012) 0:00:24.929 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 Saturday 22 June 2024 16:14:25 +0000 (0:00:00.008) 0:00:24.938 ********* 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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:38 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.835) 0:00:25.773 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072862.5923216, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "22154a512931881b29868d16b93849eda62a55f4", "ctime": 1719072862.5903215, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2845829, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1719072862.5903215, "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": "909895334", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:43 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.187) 0:00:25.960 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:49 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.012) 0:00:25.973 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:59 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.023) 0:00:25.996 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:65 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.021) 0:00:26.018 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1719072862.5403216, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bd45aa930def3547587d7f4d56688714010bcfb8", "ctime": 1719072862.5903215, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 884362, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1719072862.5903215, "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": "816570435", "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-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:70 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.191) 0:00:26.209 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:76 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.012) 0:00:26.222 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:86 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.024) 0:00:26.246 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "85:E1:0C:15:7A:24:C8:BA:8A:10:EE:42:F5:B6:34:FA:B7:E7:8C:12" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "28:41:70:54:56:AF:15:B7:A2:BF:F0:5C:97:CE:0E:F6:A6:0C:0D:F9:4A:8D:8A:B4:09:17:C4:E3:5A:14:2E:7B:11:E0:E1:73:66:D1:CD:6B:76:09:76:7E:BF:D4:E3:30:D7:7A:A3:20:8F:2C:F8:7C:84:00:F7:87:73:27:80:D3:40:B1:C9:47:4A:FB:E5:8E:C4:D8:7D:8D:D6:B0:A8:7F:B0:8A:75:AD:FE:CB:A3:22:02:86:A9:3C:43:59:03:CC:CF:08:0A:64:77:B6:75:34:60:30:F8:9E:4F:62:21:D9:39:A2:2E:05:10:6D:6C:68:35:93:DE:3C:90:78:58:E8:28:83:11:0D:DF:28:E7:17:F7:C2:CB:CC:A1:F4:06:86:46:9A:45:A6:B7:48:4D:F0:71:30:FC:EE:7E:C7:1B:B3:58:49:1C:06:DE:82:E0:A9:52:A2:BF:4D:C6:5B:C9:83:46:45:B6:9C:E9:DB:D3:EF:AE:FD:DB:71:65:93:2E:78:B3:4E:6D:24:9E:95:CF:3D:FF:B3:4C:F0:D3:41:0F:3F:E0:68:C4:B2:C5:26:16:B8:B2:E5:B3:12:CF:F5:D8:29:AC:49:94:33:2E:83:35:3B:F3:FD:71:33:08:04:89:1C:5F:E0:CA:2B:C9:C1:7A:93:72:F6:0A:EC:80:E5:0A:37" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161422Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:92 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.221) 0:00:26.467 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "97:4A:FE:DC:1F:FC:6D:4B:83:B8:61:27:81:B0:4E:61:1F:E8:2F:06" }, "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": "85:E1:0C:15:7A:24:C8:BA:8A:10:EE:42:F5:B6:34:FA:B7:E7:8C:12" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "28:41:70:54:56:AF:15:B7:A2:BF:F0:5C:97:CE:0E:F6:A6:0C:0D:F9:4A:8D:8A:B4:09:17:C4:E3:5A:14:2E:7B:11:E0:E1:73:66:D1:CD:6B:76:09:76:7E:BF:D4:E3:30:D7:7A:A3:20:8F:2C:F8:7C:84:00:F7:87:73:27:80:D3:40:B1:C9:47:4A:FB:E5:8E:C4:D8:7D:8D:D6:B0:A8:7F:B0:8A:75:AD:FE:CB:A3:22:02:86:A9:3C:43:59:03:CC:CF:08:0A:64:77:B6:75:34:60:30:F8:9E:4F:62:21:D9:39:A2:2E:05:10:6D:6C:68:35:93:DE:3C:90:78:58:E8:28:83:11:0D:DF:28:E7:17:F7:C2:CB:CC:A1:F4:06:86:46:9A:45:A6:B7:48:4D:F0:71:30:FC:EE:7E:C7:1B:B3:58:49:1C:06:DE:82:E0:A9:52:A2:BF:4D:C6:5B:C9:83:46:45:B6:9C:E9:DB:D3:EF:AE:FD:DB:71:65:93:2E:78:B3:4E:6D:24:9E:95:CF:3D:FF:B3:4C:F0:D3:41:0F:3F:E0:68:C4:B2:C5:26:16:B8:B2:E5:B3:12:CF:F5:D8:29:AC:49:94:33:2E:83:35:3B:F3:FD:71:33:08:04:89:1C:5F:E0:CA:2B:C9:C1:7A:93:72:F6:0A:EC:80:E5:0A:37" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250622161412Z", "not_valid_before": "20240622161422Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:96 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.012) 0:00:26.480 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:104 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.031) 0:00:26.512 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:112 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.014) 0:00:26.527 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:119 Saturday 22 June 2024 16:14:26 +0000 (0:00:00.021) 0:00:26.549 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:130 Saturday 22 June 2024 16:14:27 +0000 (0:00:00.024) 0:00:26.574 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:143 Saturday 22 June 2024 16:14:27 +0000 (0:00:00.023) 0:00:26.597 ********* 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.042269", "end": "2024-06-22 16:14:27.249299", "rc": 0, "start": "2024-06-22 16:14:27.207030" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:152 Saturday 22 June 2024 16:14:27 +0000 (0:00:00.221) 0:00:26.819 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 22 June 2024 16:14:27 +0000 (0:00:00.026) 0:00:26.846 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 5.39s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.57s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.22s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.12s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.87s /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.86s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.85s /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.84s /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.84s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 0.84s /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.84s /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.72s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.61s /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.60s /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.59s /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.59s /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:67 -------------------- Ensure user exists ------------------------------------------------------ 0.50s /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:5 --------------------- Ensure group "somegroup" exists ----------------------------------------- 0.38s /WORKDIR/git-weekly-cihti5i4nt/tests/tests_fs_attrs.yml:9 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.34s /WORKDIR/git-weekly-cihti5i4nt/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Parse certificate ------------------------------------------------------- 0.34s /WORKDIR/git-weekly-cihti5i4nt/tests/tasks/assert_certificate_parameters.yml:86 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---