# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.17.2] 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.17/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-cixkkj462_/.collection executable location = /opt/ansible-2.17/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.17/bin/python) jinja version = 3.1.4 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-cixkkj462_/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:2 Saturday 10 August 2024 12:39:41 +0000 (0:00:00.022) 0:00:00.022 ******* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:5 Saturday 10 August 2024 12:39:43 +0000 (0:00:02.258) 0:00:02.281 ******* 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-cixkkj462_/tests/tests_fs_attrs.yml:9 Saturday 10 August 2024 12:39:43 +0000 (0:00:00.395) 0:00:02.676 ******* 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-cixkkj462_/tests/tests_fs_attrs.yml:14 Saturday 10 August 2024 12:39:44 +0000 (0:00:00.307) 0:00:02.983 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 10 August 2024 12:39:46 +0000 (0:00:02.052) 0:00:05.036 ******* included: /WORKDIR/git-weekly-cixkkj462_/.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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 12:39:46 +0000 (0:00:00.011) 0:00:05.047 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 10 August 2024 12:39:46 +0000 (0:00:00.012) 0:00:05.060 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 10 August 2024 12:39:46 +0000 (0:00:00.249) 0:00:05.309 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 10 August 2024 12:39:46 +0000 (0:00:00.014) 0:00:05.324 ******* 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-cixkkj462_/.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_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 10 August 2024 12:39:46 +0000 (0:00:00.030) 0:00:05.355 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-cffi-1.16.0-4.fc40.x86_64", "Installed: python3-ply-3.11-23.fc40.noarch", "Installed: python3-cryptography-41.0.7-1.fc40.x86_64", "Installed: python3-pyasn1-0.5.1-3.fc40.noarch", "Installed: python3-pycparser-2.20-14.fc40.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 10 August 2024 12:39:49 +0000 (0:00:02.975) 0:00:08.330 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-packaging-23.2-4.fc40.noarch", "Installed: dbus-tools-1:1.14.10-3.fc40.x86_64", "Installed: certmonger-0.79.19-5.fc40.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 10 August 2024 12:39:52 +0000 (0:00:03.286) 0:00:11.617 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 10 August 2024 12:39:53 +0000 (0:00:00.371) 0:00:11.988 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 10 August 2024 12:39:53 +0000 (0:00:00.225) 0:00:12.213 ******* 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": "dbus-broker.service system.slice syslog.target systemd-journald.socket network.target sysinit.target basic.target dbus.socket", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "CoredumpReceive": "no", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "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", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "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": "14724", "LimitNPROCSoft": "14724", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14724", "LimitSIGPENDINGSoft": "14724", "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": "3518689280", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "[not set]", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "[not set]", "MemorySwapMax": "infinity", "MemorySwapPeak": "[not set]", "MemoryZSwapCurrent": "[not set]", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "SetLoginEnvironment": "no", "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]", "StartupMemoryHigh": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4417", "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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 10 August 2024 12:39:54 +0000 (0:00:00.809) 0:00:13.023 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 10 August 2024 12:39:55 +0000 (0:00:01.383) 0:00:14.406 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 10 August 2024 12:39:55 +0000 (0:00:00.025) 0:00:14.431 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 10 August 2024 12:39:55 +0000 (0:00:00.011) 0:00:14.442 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 10 August 2024 12:39:55 +0000 (0:00:00.012) 0:00:14.455 ******* 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-cixkkj462_/tests/tests_fs_attrs.yml:32 Saturday 10 August 2024 12:39:55 +0000 (0:00:00.022) 0:00:14.478 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:61 Saturday 10 August 2024 12:39:57 +0000 (0:00:02.071) 0:00:16.550 ******* included: /WORKDIR/git-weekly-cixkkj462_/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-cixkkj462_/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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:39:57 +0000 (0:00:00.021) 0:00:16.571 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:39:57 +0000 (0:00:00.008) 0:00:16.580 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:39:57 +0000 (0:00:00.010) 0:00:16.590 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:39:57 +0000 (0:00:00.010) 0:00:16.601 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:39:57 +0000 (0:00:00.007) 0:00:16.609 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:39:59 +0000 (0:00:01.405) 0:00:18.014 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293594.7216341, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33c110991f09e771b1ce2c58662e92d7f7dde795", "ctime": 1723293594.8516338, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203974, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723293594.719634, "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": "2880789210", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.209) 0:00:18.224 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.010) 0:00:18.235 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.015) 0:00:18.251 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.013) 0:00:18.264 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293594.6746342, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9bfc52b547bab675ca449023a334eb139d7d913e", "ctime": 1723293594.852634, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203973, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723293594.719634, "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": "4225147774", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.208) 0:00:18.473 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.010) 0:00:18.484 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.016) 0:00:18.500 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "F9:34:3F:DB:ED:44:22:DE:8F:43:89:2F:BE:4B:52:6F:C0:35:E3:1D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B5:C3:51:60:81:45:DC:5A:A4:66:AF:70:51:56:A1:90:0D:21:78:A2:0A:D7:C6:D2:B2:C6:85:BD:9A:8E:58:97:E3:E3:71:20:CF:44:19:68:1D:4B:CE:F8:AB:50:3A:C0:CE:6D:E6:28:93:95:57:87:F7:82:F6:72:52:95:C4:07:7D:AA:32:25:CC:C4:D9:FA:E6:9D:EE:2F:BD:4D:E2:80:9E:F5:56:B5:8D:B4:B0:84:CE:1E:70:56:F0:4F:D9:8D:FC:47:1A:4D:26:F9:00:6C:FE:F0:B4:67:D4:35:DF:9A:3B:D9:7B:BA:10:6B:0D:CE:A4:09:F2:CB:ED:20:AD:B6:90:BD:38:D0:A6:6A:82:7F:B7:9F:1F:9E:84:A0:7E:20:64:5A:A3:39:49:2A:83:D8:D0:E3:A5:38:0D:20:E8:31:FB:A8:A9:B5:31:B1:45:70:FF:07:4F:44:10:CF:96:9C:48:BC:32:39:8D:7B:EA:2E:3E:6B:6F:A4:77:DD:F1:F6:C6:78:22:BE:86:22:27:0D:BB:E4:3F:67:8A:71:59:2B:AA:E6:68:92:24:84:48:16:D2:A8:77:3B:5F:74:98:9D:82:E5:80:7A:95:41:FF:E4:1D:F5:B7:4D:F2:13:24:6F:77:1D:84:01:CB:D6:9A:59:DB:D7:82:D7:E2:E0:BD:4C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810123954Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.307) 0:00:18.807 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "F9:34:3F:DB:ED:44:22:DE:8F:43:89:2F:BE:4B:52:6F:C0:35:E3:1D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B5:C3:51:60:81:45:DC:5A:A4:66:AF:70:51:56:A1:90:0D:21:78:A2:0A:D7:C6:D2:B2:C6:85:BD:9A:8E:58:97:E3:E3:71:20:CF:44:19:68:1D:4B:CE:F8:AB:50:3A:C0:CE:6D:E6:28:93:95:57:87:F7:82:F6:72:52:95:C4:07:7D:AA:32:25:CC:C4:D9:FA:E6:9D:EE:2F:BD:4D:E2:80:9E:F5:56:B5:8D:B4:B0:84:CE:1E:70:56:F0:4F:D9:8D:FC:47:1A:4D:26:F9:00:6C:FE:F0:B4:67:D4:35:DF:9A:3B:D9:7B:BA:10:6B:0D:CE:A4:09:F2:CB:ED:20:AD:B6:90:BD:38:D0:A6:6A:82:7F:B7:9F:1F:9E:84:A0:7E:20:64:5A:A3:39:49:2A:83:D8:D0:E3:A5:38:0D:20:E8:31:FB:A8:A9:B5:31:B1:45:70:FF:07:4F:44:10:CF:96:9C:48:BC:32:39:8D:7B:EA:2E:3E:6B:6F:A4:77:DD:F1:F6:C6:78:22:BE:86:22:27:0D:BB:E4:3F:67:8A:71:59:2B:AA:E6:68:92:24:84:48:16:D2:A8:77:3B:5F:74:98:9D:82:E5:80:7A:95:41:FF:E4:1D:F5:B7:4D:F2:13:24:6F:77:1D:84:01:CB:D6:9A:59:DB:D7:82:D7:E2:E0:BD:4C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810123954Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.011) 0:00:18.818 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.014) 0:00:18.833 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.010) 0:00:18.844 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.014) 0:00:18.858 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.022) 0:00:18.881 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:39:59 +0000 (0:00:00.019) 0:00:18.901 ******* 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.037105", "end": "2024-08-10 12:40:00.218075", "rc": 0, "start": "2024-08-10 12:40:00.180970" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:40:00 +0000 (0:00:00.287) 0:00:19.188 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:40:00 +0000 (0:00:00.014) 0:00:19.203 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:40:00 +0000 (0:00:00.007) 0:00:19.211 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:40:00 +0000 (0:00:00.010) 0:00:19.222 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:40:00 +0000 (0:00:00.010) 0:00:19.232 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:40:00 +0000 (0:00:00.007) 0:00:19.239 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:40:01 +0000 (0:00:01.390) 0:00:20.629 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293595.2776332, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f51f96fc40aba2f226ba1bbe258343fa4642bddd", "ctime": 1723293595.424633, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203976, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723293595.2736332, "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": "904134210", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:40:01 +0000 (0:00:00.211) 0:00:20.841 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:40:01 +0000 (0:00:00.012) 0:00:20.854 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:40:01 +0000 (0:00:00.017) 0:00:20.871 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:40:01 +0000 (0:00:00.015) 0:00:20.886 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293595.2296333, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "73ddf068167e151c0db61a2eb01831cc1ccc6a25", "ctime": 1723293595.424633, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203975, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723293595.2736332, "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": "3275246770", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.212) 0:00:21.098 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.010) 0:00:21.109 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.015) 0:00:21.125 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "AE:3D:32:AD:71:1F:A6:62:66:7A:2D:CE:88:41:37:74:FF:D7:45:17" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "63:5D:6E:FA:5C:90:53:BE:F9:1F:78:05:AA:77:51:D0:BF:CA:53:50:37:77:80:B3:48:76:F7:8F:35:3B:2E:F1:9F:9B:E3:39:34:7D:99:60:49:16:D5:63:B9:5D:54:1D:C4:03:5F:79:C4:FD:A9:6A:D0:A3:7F:93:14:6E:26:33:9C:1A:35:F5:28:4F:90:A4:0D:EE:28:C3:88:61:05:86:63:AB:39:DF:3A:A5:D7:AD:C9:0D:FE:E4:31:2E:BA:7D:3D:CB:A1:2D:F5:09:6D:AB:BF:3C:A4:6F:F0:06:28:03:A0:99:E4:D8:A1:FB:E4:C4:EF:8D:E4:4E:E3:27:4B:23:D3:0E:E4:AB:01:F3:50:79:0F:54:01:A0:55:49:03:43:72:38:42:75:DA:ED:FA:15:D2:21:0B:AA:EB:7F:24:5E:0B:38:69:B7:03:EE:BD:08:E1:75:DA:A7:C1:9F:1A:27:E0:99:0A:17:D6:A8:0D:EA:89:D8:86:65:49:F1:8D:53:5A:60:DA:CD:57:7E:0E:AE:9C:56:AF:46:71:ED:A2:D1:3D:45:AD:2C:7A:12:47:BD:09:98:F0:D6:FE:48:EC:FB:80:EA:DB:08:BE:B1:3C:6A:E4:E0:45:E9:37:12:6B:6C:31:04:BA:C6:A3:C9:DE:75:56:0F:B0:68:C9:FB:D7:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810123955Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.253) 0:00:21.379 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "AE:3D:32:AD:71:1F:A6:62:66:7A:2D:CE:88:41:37:74:FF:D7:45:17" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "63:5D:6E:FA:5C:90:53:BE:F9:1F:78:05:AA:77:51:D0:BF:CA:53:50:37:77:80:B3:48:76:F7:8F:35:3B:2E:F1:9F:9B:E3:39:34:7D:99:60:49:16:D5:63:B9:5D:54:1D:C4:03:5F:79:C4:FD:A9:6A:D0:A3:7F:93:14:6E:26:33:9C:1A:35:F5:28:4F:90:A4:0D:EE:28:C3:88:61:05:86:63:AB:39:DF:3A:A5:D7:AD:C9:0D:FE:E4:31:2E:BA:7D:3D:CB:A1:2D:F5:09:6D:AB:BF:3C:A4:6F:F0:06:28:03:A0:99:E4:D8:A1:FB:E4:C4:EF:8D:E4:4E:E3:27:4B:23:D3:0E:E4:AB:01:F3:50:79:0F:54:01:A0:55:49:03:43:72:38:42:75:DA:ED:FA:15:D2:21:0B:AA:EB:7F:24:5E:0B:38:69:B7:03:EE:BD:08:E1:75:DA:A7:C1:9F:1A:27:E0:99:0A:17:D6:A8:0D:EA:89:D8:86:65:49:F1:8D:53:5A:60:DA:CD:57:7E:0E:AE:9C:56:AF:46:71:ED:A2:D1:3D:45:AD:2C:7A:12:47:BD:09:98:F0:D6:FE:48:EC:FB:80:EA:DB:08:BE:B1:3C:6A:E4:E0:45:E9:37:12:6B:6C:31:04:BA:C6:A3:C9:DE:75:56:0F:B0:68:C9:FB:D7:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810123955Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.011) 0:00:21.390 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.014) 0:00:21.405 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.010) 0:00:21.415 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.013) 0:00:21.429 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.017) 0:00:21.446 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.017) 0:00:21.464 ******* 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.036878", "end": "2024-08-10 12:40:02.727043", "rc": 0, "start": "2024-08-10 12:40:02.690165" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.233) 0:00:21.698 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:67 Saturday 10 August 2024 12:40:02 +0000 (0:00:00.023) 0:00:21.721 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 10 August 2024 12:40:04 +0000 (0:00:02.048) 0:00:23.770 ******* included: /WORKDIR/git-weekly-cixkkj462_/.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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 12:40:04 +0000 (0:00:00.011) 0:00:23.781 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 10 August 2024 12:40:04 +0000 (0:00:00.013) 0:00:23.795 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 10 August 2024 12:40:04 +0000 (0:00:00.011) 0:00:23.806 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 10 August 2024 12:40:04 +0000 (0:00:00.010) 0:00:23.817 ******* 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-cixkkj462_/.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_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 10 August 2024 12:40:04 +0000 (0:00:00.023) 0:00:23.840 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 10 August 2024 12:40:06 +0000 (0:00:01.423) 0:00:25.263 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 10 August 2024 12:40:07 +0000 (0:00:01.451) 0:00:26.714 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 10 August 2024 12:40:07 +0000 (0:00:00.226) 0:00:26.940 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 10 August 2024 12:40:08 +0000 (0:00:00.224) 0:00:27.165 ******* 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-08-10 12:39:54 UTC", "ActiveEnterTimestampMonotonic": "370486360", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target network.target basic.target dbus-broker.service dbus.socket system.slice syslog.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-10 12:39:53 UTC", "AssertTimestampMonotonic": "370462460", "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": "739439000", "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-08-10 12:39:53 UTC", "ConditionTimestampMonotonic": "370462457", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "6094", "ControlPID": "0", "CoredumpFilter": "0x33", "CoredumpReceive": "no", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "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": "5649", "ExecMainStartTimestamp": "Sat 2024-08-10 12:39:54 UTC", "ExecMainStartTimestampMonotonic": "370467120", "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-08-10 12:39:54 UTC] ; stop_time=[n/a] ; pid=5649 ; 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-08-10 12:39:54 UTC] ; stop_time=[n/a] ; pid=5649 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "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-08-10 12:39:54 UTC", "InactiveExitTimestampMonotonic": "370467368", "InvocationID": "ee8b7ffe7cf44e738f5d7a457e3bed80", "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": "14724", "LimitNPROCSoft": "14724", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14724", "LimitSIGPENDINGSoft": "14724", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "5649", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3436961792", "MemoryCurrent": "4038656", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "10256384", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "0", "MemorySwapMax": "infinity", "MemorySwapPeak": "0", "MemoryZSwapCurrent": "0", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "SetLoginEnvironment": "no", "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]", "StartupMemoryHigh": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Sat 2024-08-10 12:39:54 UTC", "StateChangeTimestampMonotonic": "370486360", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "4417", "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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 10 August 2024 12:40:08 +0000 (0:00:00.381) 0:00:27.546 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 10 August 2024 12:40:09 +0000 (0:00:01.190) 0:00:28.737 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 10 August 2024 12:40:09 +0000 (0:00:00.026) 0:00:28.763 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 10 August 2024 12:40:09 +0000 (0:00:00.012) 0:00:28.775 ******* 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-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 10 August 2024 12:40:09 +0000 (0:00:00.013) 0:00:28.788 ******* 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-cixkkj462_/tests/tests_fs_attrs.yml:85 Saturday 10 August 2024 12:40:09 +0000 (0:00:00.023) 0:00:28.811 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:112 Saturday 10 August 2024 12:40:12 +0000 (0:00:02.229) 0:00:31.041 ******* included: /WORKDIR/git-weekly-cixkkj462_/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-cixkkj462_/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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:40:12 +0000 (0:00:00.021) 0:00:31.062 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:40:12 +0000 (0:00:00.008) 0:00:31.071 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:40:12 +0000 (0:00:00.012) 0:00:31.083 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:40:12 +0000 (0:00:00.010) 0:00:31.094 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:40:12 +0000 (0:00:00.007) 0:00:31.101 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:40:13 +0000 (0:00:01.404) 0:00:32.506 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293609.064612, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "aff0091e4940071a7e73940b35e54401fc3e7165", "ctime": 1723293609.1656117, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203978, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723293609.061612, "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": "3976653246", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:40:13 +0000 (0:00:00.209) 0:00:32.715 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:40:13 +0000 (0:00:00.013) 0:00:32.728 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:40:13 +0000 (0:00:00.018) 0:00:32.747 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:40:13 +0000 (0:00:00.018) 0:00:32.765 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293609.0166118, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5d5c5098e1ed0d63d6f488cdab26474901e92a5e", "ctime": 1723293609.1666117, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203977, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723293609.061612, "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": "3759150412", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.210) 0:00:32.976 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.012) 0:00:32.988 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.016) 0:00:33.004 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "CF:1A:2E:28:29:72:38:46:5C:3C:8E:AF:DC:81:99:32:7E:94:48:E4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:A9:2B:29:86:50:96:A3:1B:4A:32:7B:1D:BA:6D:72:37:7D:C8:D2:97:00:5E:FF:B5:A0:20:50:84:9A:D7:3E:86:C0:8B:2B:DA:0F:9A:97:94:A5:05:6C:E8:3C:B6:F9:8B:89:90:E2:AF:63:58:BD:99:46:47:FD:C8:5D:29:AB:80:35:8D:83:BF:B5:AA:33:F9:F4:72:24:58:F1:27:20:92:84:D8:FF:27:06:99:08:10:F8:7E:42:F3:29:BE:78:DC:44:4C:FE:75:00:3C:59:2D:F0:37:9C:60:C7:EE:CB:B9:C2:0F:D0:C8:FD:8B:34:9A:18:9B:9E:F5:58:66:7B:18:BA:A9:EE:4C:34:D5:C9:3D:67:00:D4:E4:04:C5:BE:A6:C1:48:E9:93:42:06:F6:68:8B:C2:4A:D4:FF:16:33:C4:29:71:04:9B:06:A6:C1:DB:0F:3F:16:B8:E0:BE:5D:68:AA:4C:BD:61:C4:B9:6F:45:6B:F2:5E:F4:7F:D5:57:25:77:5B:4F:C6:7E:57:73:50:C9:1F:42:9A:23:3E:B8:E8:0E:E6:BB:39:B9:50:75:EB:DF:C0:EE:39:54:66:5C:DA:F8:7F:6B:A0:C8:13:BC:BF:19:7C:47:47:85:98:B9:1B:A0:11:A8:80:3C:DE:13:32:EE:5E:2A:C4:C7:F0:21" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810124009Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.249) 0:00:33.254 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "CF:1A:2E:28:29:72:38:46:5C:3C:8E:AF:DC:81:99:32:7E:94:48:E4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:A9:2B:29:86:50:96:A3:1B:4A:32:7B:1D:BA:6D:72:37:7D:C8:D2:97:00:5E:FF:B5:A0:20:50:84:9A:D7:3E:86:C0:8B:2B:DA:0F:9A:97:94:A5:05:6C:E8:3C:B6:F9:8B:89:90:E2:AF:63:58:BD:99:46:47:FD:C8:5D:29:AB:80:35:8D:83:BF:B5:AA:33:F9:F4:72:24:58:F1:27:20:92:84:D8:FF:27:06:99:08:10:F8:7E:42:F3:29:BE:78:DC:44:4C:FE:75:00:3C:59:2D:F0:37:9C:60:C7:EE:CB:B9:C2:0F:D0:C8:FD:8B:34:9A:18:9B:9E:F5:58:66:7B:18:BA:A9:EE:4C:34:D5:C9:3D:67:00:D4:E4:04:C5:BE:A6:C1:48:E9:93:42:06:F6:68:8B:C2:4A:D4:FF:16:33:C4:29:71:04:9B:06:A6:C1:DB:0F:3F:16:B8:E0:BE:5D:68:AA:4C:BD:61:C4:B9:6F:45:6B:F2:5E:F4:7F:D5:57:25:77:5B:4F:C6:7E:57:73:50:C9:1F:42:9A:23:3E:B8:E8:0E:E6:BB:39:B9:50:75:EB:DF:C0:EE:39:54:66:5C:DA:F8:7F:6B:A0:C8:13:BC:BF:19:7C:47:47:85:98:B9:1B:A0:11:A8:80:3C:DE:13:32:EE:5E:2A:C4:C7:F0:21" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810124009Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.011) 0:00:33.265 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.014) 0:00:33.280 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.010) 0:00:33.290 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.013) 0:00:33.304 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.016) 0:00:33.320 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.015) 0:00:33.335 ******* 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.038877", "end": "2024-08-10 12:40:14.599554", "rc": 0, "start": "2024-08-10 12:40:14.560677" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.235) 0:00:33.571 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.019) 0:00:33.590 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.009) 0:00:33.600 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.012) 0:00:33.613 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.012) 0:00:33.626 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:40:14 +0000 (0:00:00.010) 0:00:33.636 ******* 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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:40:16 +0000 (0:00:01.403) 0:00:35.040 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293609.679611, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4244acb29bd531b06b031815df70106ac8365120", "ctime": 1723293609.676611, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203980, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723293609.676611, "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": "2499948710", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.208) 0:00:35.248 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.010) 0:00:35.259 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.016) 0:00:35.275 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.014) 0:00:35.289 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723293609.632611, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "76f443568b8d8fb6068b537557e57bd86e40bbc6", "ctime": 1723293609.676611, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203979, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723293609.676611, "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": "1220770896", "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-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.208) 0:00:35.498 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.011) 0:00:35.509 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.016) 0:00:35.525 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "C6:3C:8A:89:96:86:37:F6:EB:3C:08:BA:50:F1:74:2D:14:C7:AA:78" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "04:A1:4A:62:E3:D1:CA:B7:9E:EC:C9:21:90:0A:90:60:8D:15:02:8F:36:91:05:A2:A3:D8:42:CB:8A:49:08:A8:73:DE:6D:BA:19:64:D6:12:84:1D:2A:25:24:2B:3F:B6:6C:5E:AC:9E:55:4C:13:17:06:43:BE:51:6C:3B:64:E1:DC:EF:A5:D9:8A:2E:8C:66:03:5E:7E:EA:DC:53:F3:D8:E7:7E:12:DF:F1:8F:8B:AF:02:98:81:58:8D:D6:E3:51:81:81:C4:BD:E1:75:9A:FD:1C:AD:BA:9B:30:9A:C7:76:FF:C1:E3:E9:9C:4D:E1:2C:FE:74:F5:0F:FF:4C:9C:1B:B0:32:6C:F0:7F:DE:36:4F:F1:5E:0D:FF:71:4D:06:67:EB:37:A6:A5:F7:AA:A3:40:C2:D9:4E:DF:DF:07:7A:BE:EF:B6:2E:5A:4A:3F:D9:C2:A8:A3:04:D1:69:5F:6D:5B:BB:F6:DC:53:92:25:77:2B:77:16:67:07:BD:17:9E:25:99:00:44:C9:7B:CE:E4:39:F5:F6:19:CC:1D:87:D6:B1:77:F5:DC:03:E6:1F:D7:8C:B9:2B:69:D8:47:F6:58:6F:A2:F2:93:01:34:B6:60:C7:4B:B6:8F:CB:1D:ED:6F:D1:06:71:C3:81:58:4B:B1:9E:AF:08:A7:82:EF:71:11:24" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810124009Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.253) 0:00:35.779 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:05:5D:F7:1D:55:39:65:31:33:79:58:A5:C9:1B:53:9A:74:84:62" }, "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": "C6:3C:8A:89:96:86:37:F6:EB:3C:08:BA:50:F1:74:2D:14:C7:AA:78" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "04:A1:4A:62:E3:D1:CA:B7:9E:EC:C9:21:90:0A:90:60:8D:15:02:8F:36:91:05:A2:A3:D8:42:CB:8A:49:08:A8:73:DE:6D:BA:19:64:D6:12:84:1D:2A:25:24:2B:3F:B6:6C:5E:AC:9E:55:4C:13:17:06:43:BE:51:6C:3B:64:E1:DC:EF:A5:D9:8A:2E:8C:66:03:5E:7E:EA:DC:53:F3:D8:E7:7E:12:DF:F1:8F:8B:AF:02:98:81:58:8D:D6:E3:51:81:81:C4:BD:E1:75:9A:FD:1C:AD:BA:9B:30:9A:C7:76:FF:C1:E3:E9:9C:4D:E1:2C:FE:74:F5:0F:FF:4C:9C:1B:B0:32:6C:F0:7F:DE:36:4F:F1:5E:0D:FF:71:4D:06:67:EB:37:A6:A5:F7:AA:A3:40:C2:D9:4E:DF:DF:07:7A:BE:EF:B6:2E:5A:4A:3F:D9:C2:A8:A3:04:D1:69:5F:6D:5B:BB:F6:DC:53:92:25:77:2B:77:16:67:07:BD:17:9E:25:99:00:44:C9:7B:CE:E4:39:F5:F6:19:CC:1D:87:D6:B1:77:F5:DC:03:E6:1F:D7:8C:B9:2B:69:D8:47:F6:58:6F:A2:F2:93:01:34:B6:60:C7:4B:B6:8F:CB:1D:ED:6F:D1:06:71:C3:81:58:4B:B1:9E:AF:08:A7:82:EF:71:11:24" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810123954Z", "not_valid_before": "20240810124009Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.011) 0:00:35.790 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.016) 0:00:35.806 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.011) 0:00:35.817 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.014) 0:00:35.832 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.017) 0:00:35.849 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:40:16 +0000 (0:00:00.017) 0:00:35.866 ******* 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.039492", "end": "2024-08-10 12:40:17.133189", "rc": 0, "start": "2024-08-10 12:40:17.093697" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:40:17 +0000 (0:00:00.239) 0:00:36.106 ******* 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 10 August 2024 12:40:17 +0000 (0:00:00.024) 0:00:36.130 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.29s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.98s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 2.26s /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 2.23s /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 2.07s /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 2.05s /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 2.05s /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:67 -------------------- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.45s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.42s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.41s /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.40s /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.40s /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.39s /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.38s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.19s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.81s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure user exists ------------------------------------------------------ 0.40s /WORKDIR/git-weekly-cixkkj462_/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.38s /WORKDIR/git-weekly-cixkkj462_/.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.37s /WORKDIR/git-weekly-cixkkj462_/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.31s /WORKDIR/git-weekly-cixkkj462_/tests/tasks/assert_certificate_parameters.yml:86 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Platform linux on host sut is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ---^---^---^---^---^---