# 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-cirly7a3vf/.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-cirly7a3vf/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:2 Saturday 20 April 2024 13:09:31 +0000 (0:00:00.012) 0:00:00.012 ******** ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:5 Saturday 20 April 2024 13:09:32 +0000 (0:00:01.009) 0:00:01.021 ******** 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-cirly7a3vf/tests/tests_fs_attrs.yml:9 Saturday 20 April 2024 13:09:33 +0000 (0:00:00.624) 0:00:01.646 ******** 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-cirly7a3vf/tests/tests_fs_attrs.yml:14 Saturday 20 April 2024 13:09:33 +0000 (0:00:00.440) 0:00:02.086 ******** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 20 April 2024 13:09:34 +0000 (0:00:00.755) 0:00:02.842 ******** included: /WORKDIR/git-weekly-cirly7a3vf/.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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 20 April 2024 13:09:34 +0000 (0:00:00.012) 0:00:02.855 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 20 April 2024 13:09:34 +0000 (0:00:00.020) 0:00:02.876 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 20 April 2024 13:09:34 +0000 (0:00:00.282) 0:00:03.158 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 20 April 2024 13:09:34 +0000 (0:00:00.028) 0:00:03.186 ******** 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" } ok: [sut] => (item=Fedora.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 20 April 2024 13:09:34 +0000 (0:00:00.026) 0:00:03.213 ******** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.5.1-1.fc38.noarch", "Installed: python3-cffi-1.15.1-4.fc38.x86_64", "Installed: python3-cryptography-37.0.2-8.fc38.x86_64", "Installed: python3-pycparser-2.20-9.fc38.noarch", "Installed: python3-ply-3.11-18.fc38.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 20 April 2024 13:09:42 +0000 (0:00:07.370) 0:00:10.584 ******** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-packaging-23.0-1.fc38.noarch", "Installed: dbus-tools-1:1.14.10-1.fc38.x86_64", "Installed: certmonger-0.79.17-3.fc38.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 20 April 2024 13:09:47 +0000 (0:00:05.364) 0:00:15.948 ******** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 20 April 2024 13:09:48 +0000 (0:00:00.393) 0:00:16.342 ******** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 20 April 2024 13:09:48 +0000 (0:00:00.289) 0:00:16.631 ******** 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": "network.target sysinit.target systemd-journald.socket dbus-broker.service system.slice dbus.socket basic.target syslog.target", "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", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "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": "14772", "LimitNPROCSoft": "14772", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14772", "LimitSIGPENDINGSoft": "14772", "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", "MemoryZSwapMax": "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 system.slice sysinit.target", "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": "4431", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 20 April 2024 13:09:49 +0000 (0:00:01.132) 0:00:17.763 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 20 April 2024 13:09:51 +0000 (0:00:02.067) 0:00:19.830 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 20 April 2024 13:09:51 +0000 (0:00:00.033) 0:00:19.864 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 20 April 2024 13:09:51 +0000 (0:00:00.018) 0:00:19.882 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 20 April 2024 13:09:51 +0000 (0:00:00.019) 0:00:19.901 ******** 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-cirly7a3vf/tests/tests_fs_attrs.yml:32 Saturday 20 April 2024 13:09:51 +0000 (0:00:00.029) 0:00:19.931 ******** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:61 Saturday 20 April 2024 13:09:52 +0000 (0:00:00.761) 0:00:20.693 ******** included: /WORKDIR/git-weekly-cirly7a3vf/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-cirly7a3vf/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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:2 Saturday 20 April 2024 13:09:52 +0000 (0:00:00.026) 0:00:20.719 ******** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:9 Saturday 20 April 2024 13:09:52 +0000 (0:00:00.008) 0:00:20.728 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:14 Saturday 20 April 2024 13:09:52 +0000 (0:00:00.012) 0:00:20.740 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:18 Saturday 20 April 2024 13:09:52 +0000 (0:00:00.015) 0:00:20.756 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 Saturday 20 April 2024 13:09:52 +0000 (0:00:00.009) 0:00:20.765 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:38 Saturday 20 April 2024 13:09:55 +0000 (0:00:02.710) 0:00:23.476 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618590.2363677, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "032d02722039018e06f4d25687945bce00a28a46", "ctime": 1713618590.2833676, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203500, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1713618590.2323678, "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": "603132658", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:43 Saturday 20 April 2024 13:09:55 +0000 (0:00:00.241) 0:00:23.717 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:49 Saturday 20 April 2024 13:09:55 +0000 (0:00:00.012) 0:00:23.730 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:59 Saturday 20 April 2024 13:09:55 +0000 (0:00:00.024) 0:00:23.754 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:65 Saturday 20 April 2024 13:09:55 +0000 (0:00:00.023) 0:00:23.777 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618590.170368, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "335aad0e510eda539ff687895f982b78270d1d03", "ctime": 1713618590.2843676, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203499, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1713618590.2323678, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "492157956", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:70 Saturday 20 April 2024 13:09:55 +0000 (0:00:00.236) 0:00:24.014 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:76 Saturday 20 April 2024 13:09:55 +0000 (0:00:00.012) 0:00:24.027 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:86 Saturday 20 April 2024 13:09:55 +0000 (0:00:00.022) 0:00:24.050 ******** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "BF:2F:8C:2D:E5:7C:16:1D:06:1A:66:05:D0:0E:35:87:26:1A:6A:7C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:4E:C0:9D:E3:FC:82:1D:D8:E0:36:D4:E9:3B:D4:0B:8A:8E:5F:0A:F4:9B:3B:A0:0E:FA:57:07:B7:28:B3:BB:C2:0A:BA:C7:86:74:6B:A7:48:D9:B0:F0:30:84:B5:7A:70:9E:E9:E1:80:7B:D6:A8:2E:56:1F:4F:DE:98:B2:89:7A:AB:BA:22:FD:06:8C:21:0A:40:B5:7F:5F:92:D6:F8:6D:0F:A8:42:CA:5D:2F:51:CC:72:67:F9:BF:62:18:84:98:8F:5C:B1:02:80:8D:59:88:BE:2A:48:59:7E:CB:BA:C2:85:07:3D:0F:F1:9A:EA:96:B6:57:42:AD:F8:53:AB:1C:59:8F:A8:B7:2E:33:66:BD:C7:8D:21:88:11:C3:70:DF:DD:B1:2C:48:33:2F:6D:D9:28:12:6F:D4:E8:55:58:73:35:DD:70:4C:10:C0:4E:91:D0:6F:84:96:B6:97:8B:9C:68:12:B9:41:2F:7B:45:8C:A0:DE:44:C7:A4:8E:72:E3:A8:FB:30:6C:FB:0B:F8:41:63:B3:5E:80:47:8F:79:D3:1A:7E:98:7C:B7:76:A0:31:6C:97:1D:CE:CC:CC:5D:F0:27:15:C0:F2:99:92:41:9B:09:C1:7B:A0:75:3B:92:34:C0:73:3E:8B:7C:2A:F8:67:4F:98:40:E3:3C:8B:CC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420130950Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:92 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.353) 0:00:24.403 ******** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "BF:2F:8C:2D:E5:7C:16:1D:06:1A:66:05:D0:0E:35:87:26:1A:6A:7C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:4E:C0:9D:E3:FC:82:1D:D8:E0:36:D4:E9:3B:D4:0B:8A:8E:5F:0A:F4:9B:3B:A0:0E:FA:57:07:B7:28:B3:BB:C2:0A:BA:C7:86:74:6B:A7:48:D9:B0:F0:30:84:B5:7A:70:9E:E9:E1:80:7B:D6:A8:2E:56:1F:4F:DE:98:B2:89:7A:AB:BA:22:FD:06:8C:21:0A:40:B5:7F:5F:92:D6:F8:6D:0F:A8:42:CA:5D:2F:51:CC:72:67:F9:BF:62:18:84:98:8F:5C:B1:02:80:8D:59:88:BE:2A:48:59:7E:CB:BA:C2:85:07:3D:0F:F1:9A:EA:96:B6:57:42:AD:F8:53:AB:1C:59:8F:A8:B7:2E:33:66:BD:C7:8D:21:88:11:C3:70:DF:DD:B1:2C:48:33:2F:6D:D9:28:12:6F:D4:E8:55:58:73:35:DD:70:4C:10:C0:4E:91:D0:6F:84:96:B6:97:8B:9C:68:12:B9:41:2F:7B:45:8C:A0:DE:44:C7:A4:8E:72:E3:A8:FB:30:6C:FB:0B:F8:41:63:B3:5E:80:47:8F:79:D3:1A:7E:98:7C:B7:76:A0:31:6C:97:1D:CE:CC:CC:5D:F0:27:15:C0:F2:99:92:41:9B:09:C1:7B:A0:75:3B:92:34:C0:73:3E:8B:7C:2A:F8:67:4F:98:40:E3:3C:8B:CC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420130950Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:96 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.011) 0:00:24.415 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:104 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.022) 0:00:24.437 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:112 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.012) 0:00:24.449 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:119 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.021) 0:00:24.471 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:130 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.026) 0:00:24.497 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:143 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.023) 0:00:24.521 ******** 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.046758", "end": "2024-04-20 13:09:56.596059", "rc": 0, "start": "2024-04-20 13:09:56.549301" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:152 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.333) 0:00:24.855 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:2 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.021) 0:00:24.876 ******** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:9 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.010) 0:00:24.887 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:14 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.011) 0:00:24.899 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:18 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.014) 0:00:24.913 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 Saturday 20 April 2024 13:09:56 +0000 (0:00:00.011) 0:00:24.924 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:38 Saturday 20 April 2024 13:09:59 +0000 (0:00:02.702) 0:00:27.627 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618591.5213637, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f84a358c3504a9cc5d9a81f5ca98d1af51ce5a01", "ctime": 1713618591.5603635, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203502, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1713618591.5173638, "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": "622847813", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:43 Saturday 20 April 2024 13:09:59 +0000 (0:00:00.236) 0:00:27.863 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:49 Saturday 20 April 2024 13:09:59 +0000 (0:00:00.011) 0:00:27.874 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:59 Saturday 20 April 2024 13:09:59 +0000 (0:00:00.022) 0:00:27.897 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:65 Saturday 20 April 2024 13:09:59 +0000 (0:00:00.021) 0:00:27.918 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618591.456364, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "da143caee097776e17ac263f1519dbba49d91768", "ctime": 1713618591.5603635, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203501, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1713618591.5173638, "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": "339196084", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:70 Saturday 20 April 2024 13:09:59 +0000 (0:00:00.239) 0:00:28.158 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:76 Saturday 20 April 2024 13:09:59 +0000 (0:00:00.012) 0:00:28.171 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:86 Saturday 20 April 2024 13:09:59 +0000 (0:00:00.023) 0:00:28.195 ******** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "0A:8C:2D:C7:27:75:23:95:8A:C3:4D:88:F8:47:5A:21:1F:33:EF:54" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "94:0C:67:2D:5D:22:2A:5F:F8:66:DC:4D:41:B6:F2:E4:6D:3B:5D:1F:70:B0:02:65:F9:D0:C9:14:3C:E8:85:43:0B:CD:29:84:D3:44:7D:5F:AF:D7:B5:DF:39:AC:92:36:3E:82:04:D9:F6:5F:AD:5F:BA:EC:5A:A5:23:00:D4:31:95:A1:FE:1D:DC:E4:A8:98:FA:80:9C:06:AD:A7:AA:08:81:BF:62:29:97:77:C5:6F:EB:27:A3:B4:32:3A:AD:20:66:1D:F9:2C:A1:27:32:6B:E5:75:40:81:DE:EB:04:5D:A6:1B:89:62:A6:19:6D:47:A5:6F:01:FF:19:E5:1C:29:C7:D1:FA:A5:D5:E4:03:81:A4:68:2E:52:B4:37:57:DE:35:7A:BE:DF:5C:4E:80:E4:94:39:04:DA:CA:C7:98:49:02:E2:FF:FA:C9:FF:91:64:6A:88:49:27:04:BF:FB:17:79:17:61:A4:CD:44:82:6D:4D:71:28:D4:9F:36:DE:01:31:7D:24:C0:9E:17:7D:07:A0:E6:29:C5:8D:BC:43:C6:CE:25:BA:27:0F:6E:1D:42:F7:76:C9:1F:69:CD:54:15:D2:67:80:43:6C:20:38:93:E9:2A:94:7D:DC:06:A8:31:86:0E:E7:8C:41:39:09:97:3D:0F:F8:EA:D4:B7:89:2B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420130951Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:92 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.292) 0:00:28.487 ******** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "0A:8C:2D:C7:27:75:23:95:8A:C3:4D:88:F8:47:5A:21:1F:33:EF:54" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "94:0C:67:2D:5D:22:2A:5F:F8:66:DC:4D:41:B6:F2:E4:6D:3B:5D:1F:70:B0:02:65:F9:D0:C9:14:3C:E8:85:43:0B:CD:29:84:D3:44:7D:5F:AF:D7:B5:DF:39:AC:92:36:3E:82:04:D9:F6:5F:AD:5F:BA:EC:5A:A5:23:00:D4:31:95:A1:FE:1D:DC:E4:A8:98:FA:80:9C:06:AD:A7:AA:08:81:BF:62:29:97:77:C5:6F:EB:27:A3:B4:32:3A:AD:20:66:1D:F9:2C:A1:27:32:6B:E5:75:40:81:DE:EB:04:5D:A6:1B:89:62:A6:19:6D:47:A5:6F:01:FF:19:E5:1C:29:C7:D1:FA:A5:D5:E4:03:81:A4:68:2E:52:B4:37:57:DE:35:7A:BE:DF:5C:4E:80:E4:94:39:04:DA:CA:C7:98:49:02:E2:FF:FA:C9:FF:91:64:6A:88:49:27:04:BF:FB:17:79:17:61:A4:CD:44:82:6D:4D:71:28:D4:9F:36:DE:01:31:7D:24:C0:9E:17:7D:07:A0:E6:29:C5:8D:BC:43:C6:CE:25:BA:27:0F:6E:1D:42:F7:76:C9:1F:69:CD:54:15:D2:67:80:43:6C:20:38:93:E9:2A:94:7D:DC:06:A8:31:86:0E:E7:8C:41:39:09:97:3D:0F:F8:EA:D4:B7:89:2B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420130951Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:96 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.012) 0:00:28.499 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:104 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.023) 0:00:28.523 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:112 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.012) 0:00:28.536 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:119 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.021) 0:00:28.557 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:130 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.025) 0:00:28.582 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:143 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.024) 0:00:28.607 ******** 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.046929", "end": "2024-04-20 13:10:00.618396", "rc": 0, "start": "2024-04-20 13:10:00.571467" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:152 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.269) 0:00:28.876 ******** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:67 Saturday 20 April 2024 13:10:00 +0000 (0:00:00.030) 0:00:28.907 ******** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 20 April 2024 13:10:01 +0000 (0:00:00.755) 0:00:29.662 ******** included: /WORKDIR/git-weekly-cirly7a3vf/.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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 20 April 2024 13:10:01 +0000 (0:00:00.014) 0:00:29.676 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 20 April 2024 13:10:01 +0000 (0:00:00.023) 0:00:29.700 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 20 April 2024 13:10:01 +0000 (0:00:00.015) 0:00:29.715 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 20 April 2024 13:10:01 +0000 (0:00:00.014) 0:00:29.729 ******** 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" } ok: [sut] => (item=Fedora.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_38.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_38.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 20 April 2024 13:10:01 +0000 (0:00:00.035) 0:00:29.764 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 20 April 2024 13:10:04 +0000 (0:00:02.695) 0:00:32.460 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 20 April 2024 13:10:06 +0000 (0:00:02.755) 0:00:35.215 ******** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 20 April 2024 13:10:07 +0000 (0:00:00.257) 0:00:35.472 ******** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 20 April 2024 13:10:07 +0000 (0:00:00.253) 0:00:35.726 ******** 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-04-20 13:09:49 UTC", "ActiveEnterTimestampMonotonic": "916196455", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target sysinit.target systemd-journald.socket network.target syslog.target system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-04-20 13:09:49 UTC", "AssertTimestampMonotonic": "916130996", "Before": "multi-user.target 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": "1292383000", "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-04-20 13:09:49 UTC", "ConditionTimestampMonotonic": "916130992", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "5941", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "5603", "ExecMainStartTimestamp": "Sat 2024-04-20 13:09:49 UTC", "ExecMainStartTimestampMonotonic": "916138125", "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-04-20 13:09:49 UTC] ; stop_time=[n/a] ; pid=5603 ; 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-04-20 13:09:49 UTC] ; stop_time=[n/a] ; pid=5603 ; 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-04-20 13:09:49 UTC", "InactiveExitTimestampMonotonic": "916138530", "InvocationID": "dd0b04e428594a79b118f809d4d88374", "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": "14772", "LimitNPROCSoft": "14772", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14772", "LimitSIGPENDINGSoft": "14772", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "5603", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "3993600", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MemoryZSwapMax": "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": "system.slice dbus.socket sysinit.target", "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-04-20 13:09:49 UTC", "StateChangeTimestampMonotonic": "916196455", "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": "4431", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 20 April 2024 13:10:07 +0000 (0:00:00.433) 0:00:36.159 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 20 April 2024 13:10:09 +0000 (0:00:02.024) 0:00:38.184 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 20 April 2024 13:10:09 +0000 (0:00:00.032) 0:00:38.216 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 20 April 2024 13:10:09 +0000 (0:00:00.018) 0:00:38.234 ******** 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-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.019) 0:00:38.254 ******** 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-cirly7a3vf/tests/tests_fs_attrs.yml:85 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.030) 0:00:38.284 ******** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:112 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.754) 0:00:39.039 ******** included: /WORKDIR/git-weekly-cirly7a3vf/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-cirly7a3vf/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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:2 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.023) 0:00:39.063 ******** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:9 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.009) 0:00:39.072 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:14 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.012) 0:00:39.084 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:18 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.011) 0:00:39.096 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 Saturday 20 April 2024 13:10:10 +0000 (0:00:00.009) 0:00:39.105 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:38 Saturday 20 April 2024 13:10:13 +0000 (0:00:02.657) 0:00:41.763 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618609.1233094, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c5a727b306557d102b7aa6fc8bb3bbb955972d7d", "ctime": 1713618609.1673093, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203504, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1713618609.1193094, "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": "619816441", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:43 Saturday 20 April 2024 13:10:13 +0000 (0:00:00.236) 0:00:41.999 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:49 Saturday 20 April 2024 13:10:13 +0000 (0:00:00.012) 0:00:42.012 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:59 Saturday 20 April 2024 13:10:13 +0000 (0:00:00.023) 0:00:42.035 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:65 Saturday 20 April 2024 13:10:13 +0000 (0:00:00.022) 0:00:42.058 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618609.0583096, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2567ce8b8c73be6ae1dd79952492658a017706ab", "ctime": 1713618609.1673093, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203503, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1713618609.1193094, "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": "3923981279", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:70 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.234) 0:00:42.293 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:76 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.012) 0:00:42.305 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:86 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.025) 0:00:42.330 ******** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "37:77:E2:7B:54:EA:F2:C8:E2:91:9C:72:62:7D:49:CB:AA:47:9C:F4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4B:8C:94:05:AC:3F:EC:C5:0C:FB:9F:26:97:BD:F0:CF:10:C0:53:66:C3:D8:CE:F3:E8:BB:1E:BE:DD:40:2F:44:5C:6C:7C:40:E1:FD:E1:ED:FE:91:8E:8D:84:F3:8A:D2:42:E6:E7:49:D1:16:52:58:4F:66:A5:DB:BE:0C:E1:53:4C:A6:74:6E:2A:9A:1F:06:32:06:56:F2:86:17:01:60:F3:3A:13:BE:34:07:93:AF:4F:70:8E:AA:6B:AE:A0:C1:86:23:40:29:D5:21:9A:ED:F0:75:C2:3A:43:AB:5E:B8:AE:80:B7:8E:41:7C:8A:CC:AF:7C:12:1E:44:3E:4E:90:FB:61:FA:61:E7:83:13:4B:07:69:3C:FF:BB:F5:03:6F:4F:87:8C:A5:C5:83:FE:BE:5E:5A:04:6A:D0:38:12:9F:49:BA:B1:9F:D3:2A:0C:0C:8D:2B:91:0D:37:95:32:0B:F3:01:6B:45:A3:C5:59:5B:70:E4:AD:A5:DC:63:89:03:82:EB:A4:E0:B9:F6:BD:41:8E:E1:F8:23:62:C6:F1:9C:2C:9D:EB:67:23:40:52:00:F6:C3:7C:61:E4:28:2D:F7:95:AF:FD:66:D0:08:F0:8B:8E:4D:03:82:C4:3F:84:5F:94:1E:F5:E6:C1:95:04:D7:CC:20:58:FF:C9:03:B1:58" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420131009Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:92 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.283) 0:00:42.614 ******** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "37:77:E2:7B:54:EA:F2:C8:E2:91:9C:72:62:7D:49:CB:AA:47:9C:F4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4B:8C:94:05:AC:3F:EC:C5:0C:FB:9F:26:97:BD:F0:CF:10:C0:53:66:C3:D8:CE:F3:E8:BB:1E:BE:DD:40:2F:44:5C:6C:7C:40:E1:FD:E1:ED:FE:91:8E:8D:84:F3:8A:D2:42:E6:E7:49:D1:16:52:58:4F:66:A5:DB:BE:0C:E1:53:4C:A6:74:6E:2A:9A:1F:06:32:06:56:F2:86:17:01:60:F3:3A:13:BE:34:07:93:AF:4F:70:8E:AA:6B:AE:A0:C1:86:23:40:29:D5:21:9A:ED:F0:75:C2:3A:43:AB:5E:B8:AE:80:B7:8E:41:7C:8A:CC:AF:7C:12:1E:44:3E:4E:90:FB:61:FA:61:E7:83:13:4B:07:69:3C:FF:BB:F5:03:6F:4F:87:8C:A5:C5:83:FE:BE:5E:5A:04:6A:D0:38:12:9F:49:BA:B1:9F:D3:2A:0C:0C:8D:2B:91:0D:37:95:32:0B:F3:01:6B:45:A3:C5:59:5B:70:E4:AD:A5:DC:63:89:03:82:EB:A4:E0:B9:F6:BD:41:8E:E1:F8:23:62:C6:F1:9C:2C:9D:EB:67:23:40:52:00:F6:C3:7C:61:E4:28:2D:F7:95:AF:FD:66:D0:08:F0:8B:8E:4D:03:82:C4:3F:84:5F:94:1E:F5:E6:C1:95:04:D7:CC:20:58:FF:C9:03:B1:58" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420131009Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:96 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.015) 0:00:42.630 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:104 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.021) 0:00:42.651 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:112 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.012) 0:00:42.663 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:119 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.020) 0:00:42.684 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:130 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.024) 0:00:42.709 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:143 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.023) 0:00:42.733 ******** 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.049633", "end": "2024-04-20 13:10:14.748831", "rc": 0, "start": "2024-04-20 13:10:14.699198" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:152 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.275) 0:00:43.008 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:2 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.022) 0:00:43.030 ******** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:9 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.009) 0:00:43.039 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:14 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.012) 0:00:43.052 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:18 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.012) 0:00:43.065 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 Saturday 20 April 2024 13:10:14 +0000 (0:00:00.009) 0:00:43.074 ******** 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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:38 Saturday 20 April 2024 13:10:17 +0000 (0:00:02.663) 0:00:45.738 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618609.7973073, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "29c3e258886a1bb16ee60f0427de0874d7e44e51", "ctime": 1713618609.7913072, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713618609.7913072, "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": "3343535510", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:43 Saturday 20 April 2024 13:10:17 +0000 (0:00:00.239) 0:00:45.977 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:49 Saturday 20 April 2024 13:10:17 +0000 (0:00:00.012) 0:00:45.990 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:59 Saturday 20 April 2024 13:10:17 +0000 (0:00:00.023) 0:00:46.013 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:65 Saturday 20 April 2024 13:10:17 +0000 (0:00:00.022) 0:00:46.035 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713618609.7303076, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "782ebc8661c0a4c65616c739e0d0d0ccffacc985", "ctime": 1713618609.7913072, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203505, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713618609.7913072, "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": "4270118678", "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-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:70 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.240) 0:00:46.275 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:76 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.021) 0:00:46.297 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:86 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.026) 0:00:46.324 ******** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "17:73:D1:51:01:4F:B1:F7:C3:CD:C6:07:96:52:4D:86:F0:74:22:8F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1A:5F:8B:F8:B4:10:C9:C8:35:D5:68:98:49:50:E7:68:B8:7F:2B:92:BE:B3:0B:D8:56:BB:2A:25:C0:16:31:24:0F:E0:90:2B:C7:F9:FA:FC:51:C0:F2:84:E3:4A:F3:CE:BE:D6:F6:CC:EE:ED:C3:52:7A:42:D0:04:88:6C:C3:73:BF:3A:38:8E:A3:EC:1C:89:E5:BB:5B:4D:B3:47:48:FE:BA:A2:29:87:83:A7:F0:CE:A2:1C:02:11:6B:C1:5F:26:5B:E0:D4:02:B0:48:6D:A6:9B:A4:56:02:D5:03:87:5F:D2:2F:24:7A:76:A7:FD:BE:17:7F:15:87:67:C4:D1:CC:9C:CD:66:52:A2:A7:EC:41:E8:BA:0B:9D:96:C8:10:00:DD:9F:E7:C1:36:B8:ED:DF:40:DE:AE:88:15:8F:D1:FA:6A:2B:D4:3F:1F:E2:F8:9F:15:5E:06:79:20:15:4F:A1:A5:FC:60:66:7F:61:A5:11:38:40:60:99:5B:2B:A4:2C:BA:FF:C6:D9:58:10:5A:38:BA:B2:F9:46:0F:E1:68:0D:B4:B1:07:86:55:DE:64:2B:03:15:57:66:34:2A:C5:9A:6B:92:3F:CF:10:D5:81:A2:BC:BF:E9:8A:FC:70:66:9C:85:C1:5C:CC:B9:50:08:52:2C:41:97:C2:A0:E7:11:FC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420131009Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:92 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.293) 0:00:46.617 ******** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "55:2A:D0:44:C4:0E:CA:85:E8:4C:30:4A:32:6E:AC:04:49:34:DB:E4" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "17:73:D1:51:01:4F:B1:F7:C3:CD:C6:07:96:52:4D:86:F0:74:22:8F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1A:5F:8B:F8:B4:10:C9:C8:35:D5:68:98:49:50:E7:68:B8:7F:2B:92:BE:B3:0B:D8:56:BB:2A:25:C0:16:31:24:0F:E0:90:2B:C7:F9:FA:FC:51:C0:F2:84:E3:4A:F3:CE:BE:D6:F6:CC:EE:ED:C3:52:7A:42:D0:04:88:6C:C3:73:BF:3A:38:8E:A3:EC:1C:89:E5:BB:5B:4D:B3:47:48:FE:BA:A2:29:87:83:A7:F0:CE:A2:1C:02:11:6B:C1:5F:26:5B:E0:D4:02:B0:48:6D:A6:9B:A4:56:02:D5:03:87:5F:D2:2F:24:7A:76:A7:FD:BE:17:7F:15:87:67:C4:D1:CC:9C:CD:66:52:A2:A7:EC:41:E8:BA:0B:9D:96:C8:10:00:DD:9F:E7:C1:36:B8:ED:DF:40:DE:AE:88:15:8F:D1:FA:6A:2B:D4:3F:1F:E2:F8:9F:15:5E:06:79:20:15:4F:A1:A5:FC:60:66:7F:61:A5:11:38:40:60:99:5B:2B:A4:2C:BA:FF:C6:D9:58:10:5A:38:BA:B2:F9:46:0F:E1:68:0D:B4:B1:07:86:55:DE:64:2B:03:15:57:66:34:2A:C5:9A:6B:92:3F:CF:10:D5:81:A2:BC:BF:E9:8A:FC:70:66:9C:85:C1:5C:CC:B9:50:08:52:2C:41:97:C2:A0:E7:11:FC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250420130949Z", "not_valid_before": "20240420131009Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:96 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.012) 0:00:46.629 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:104 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.023) 0:00:46.652 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:112 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.012) 0:00:46.665 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:119 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.021) 0:00:46.687 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:130 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.024) 0:00:46.711 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:143 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.023) 0:00:46.735 ******** 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.049372", "end": "2024-04-20 13:10:18.750346", "rc": 0, "start": "2024-04-20 13:10:18.700974" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:152 Saturday 20 April 2024 13:10:18 +0000 (0:00:00.274) 0:00:47.009 ******** 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 20 April 2024 13:10:18 +0000 (0:00:00.026) 0:00:47.036 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 7.37s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 5.36s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.76s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.71s /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.70s /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.70s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.66s /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.66s /WORKDIR/git-weekly-cirly7a3vf/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.07s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.02s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.13s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 1.01s /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.76s /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.76s /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.76s /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.75s /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:85 -------------------- Ensure user exists ------------------------------------------------------ 0.62s /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:5 --------------------- Ensure group "somegroup" exists ----------------------------------------- 0.44s /WORKDIR/git-weekly-cirly7a3vf/tests/tests_fs_attrs.yml:9 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.43s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.39s /WORKDIR/git-weekly-cirly7a3vf/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---