# 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-ciiv107v0d/.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-ciiv107v0d/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:2 Saturday 10 August 2024 12:48:10 +0000 (0:00:00.021) 0:00:00.021 ******* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:5 Saturday 10 August 2024 12:48:11 +0000 (0:00:01.043) 0:00:01.065 ******* 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-ciiv107v0d/tests/tests_fs_attrs.yml:9 Saturday 10 August 2024 12:48:11 +0000 (0:00:00.677) 0:00:01.743 ******* 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-ciiv107v0d/tests/tests_fs_attrs.yml:14 Saturday 10 August 2024 12:48:12 +0000 (0:00:00.430) 0:00:02.173 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 10 August 2024 12:48:13 +0000 (0:00:00.781) 0:00:02.955 ******* included: /WORKDIR/git-weekly-ciiv107v0d/.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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 12:48:13 +0000 (0:00:00.013) 0:00:02.968 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 10 August 2024 12:48:13 +0000 (0:00:00.015) 0:00:02.983 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 10 August 2024 12:48:13 +0000 (0:00:00.300) 0:00:03.284 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 10 August 2024 12:48:13 +0000 (0:00:00.015) 0:00:03.299 ******* 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-ciiv107v0d/.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_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 10 August 2024 12:48:13 +0000 (0:00:00.024) 0:00:03.323 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-cryptography-41.0.7-1.fc39.x86_64", "Installed: python3-ply-3.11-20.fc39.noarch", "Installed: python3-pycparser-2.20-11.fc39.noarch", "Installed: python3-cffi-1.15.1-6.fc39.x86_64", "Installed: python3-pyasn1-0.5.1-1.fc39.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 10 August 2024 12:48:19 +0000 (0:00:05.579) 0:00:08.902 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-packaging-23.1-4.fc39.noarch", "Installed: certmonger-0.79.18-2.fc39.x86_64", "Installed: dbus-tools-1:1.14.10-1.fc39.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 10 August 2024 12:48:24 +0000 (0:00:05.015) 0:00:13.918 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 10 August 2024 12:48:24 +0000 (0:00:00.346) 0:00:14.264 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 10 August 2024 12:48:24 +0000 (0:00:00.274) 0:00:14.538 ******* 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.socket sysinit.target basic.target dbus-broker.service systemd-journald.socket system.slice network.target syslog.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "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": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14754", "LimitNPROCSoft": "14754", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14754", "LimitSIGPENDINGSoft": "14754", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "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 system.slice 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", "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": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4426", "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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 10 August 2024 12:48:26 +0000 (0:00:01.422) 0:00:15.961 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 10 August 2024 12:48:28 +0000 (0:00:02.010) 0:00:17.971 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 10 August 2024 12:48:28 +0000 (0:00:00.024) 0:00:17.996 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 10 August 2024 12:48:28 +0000 (0:00:00.011) 0:00:18.008 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 10 August 2024 12:48:28 +0000 (0:00:00.012) 0:00:18.021 ******* 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-ciiv107v0d/tests/tests_fs_attrs.yml:32 Saturday 10 August 2024 12:48:28 +0000 (0:00:00.023) 0:00:18.044 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:61 Saturday 10 August 2024 12:48:29 +0000 (0:00:01.059) 0:00:19.104 ******* included: /WORKDIR/git-weekly-ciiv107v0d/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-ciiv107v0d/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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:48:29 +0000 (0:00:00.021) 0:00:19.125 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:48:29 +0000 (0:00:00.007) 0:00:19.132 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:48:29 +0000 (0:00:00.010) 0:00:19.143 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:48:29 +0000 (0:00:00.010) 0:00:19.153 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:48:29 +0000 (0:00:00.007) 0:00:19.160 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:48:31 +0000 (0:00:02.503) 0:00:21.664 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294107.008289, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "13c8d7477217d16f1355fd39b8b73500dd679ba5", "ctime": 1723294107.0972874, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203717, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294107.003289, "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": "838840098", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.258) 0:00:21.922 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.010) 0:00:21.933 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.015) 0:00:21.949 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.013) 0:00:21.962 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294106.9292905, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6363b56a4607f88200888e0493bc5179fbd701da", "ctime": 1723294107.0982873, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203716, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294107.003289, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "4010812767", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.252) 0:00:22.215 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.010) 0:00:22.226 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.015) 0:00:22.242 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "8D:2E:79:14:0A:4F:EB:E2:E0:6B:D2:1D:23:8E:A6:67:C2:DA:AA:48" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:93:2A:22:0B:27:B9:55:3B:21:6C:8C:09:BD:AA:D4:63:A1:2E:A1:AD:22:07:38:21:E2:1B:83:5B:02:97:6C:1E:DC:8A:84:46:4E:59:D5:77:15:02:00:18:79:74:55:58:4E:6A:43:54:A9:8B:1D:E2:90:0A:BA:66:A5:9A:56:A5:A2:C2:4B:4B:67:7C:7B:A9:1D:29:3E:F0:F3:3E:65:06:FB:FA:26:05:C0:38:5C:E8:F6:4D:72:97:A0:75:69:A5:66:9C:82:F8:D2:F5:40:A3:CD:59:76:28:9F:5A:DE:53:22:EF:2B:F4:4A:FF:43:42:A2:D3:F2:14:A9:10:A8:2C:89:F3:62:C3:AB:19:B8:E6:50:75:06:E1:B9:1E:B6:EC:7F:48:AE:00:1C:8D:49:B4:B9:E8:03:3B:90:43:F8:02:02:C5:5A:B0:95:C7:05:DC:C3:30:D0:73:FB:17:ED:6B:26:66:FE:43:36:25:9C:44:85:EA:77:98:5D:78:43:27:E0:A0:63:94:18:6D:CA:E9:80:5D:1E:07:B2:79:71:39:E6:39:D4:FB:F5:3B:1E:A4:26:A3:5D:03:22:8B:E2:E2:31:19:45:99:3C:DD:43:30:E9:4A:E0:D2:70:92:3D:B0:22:00:14:DE:BE:A4:73:9E:42:06:9A:59:FD:F3:E8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124826Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.373) 0:00:22.615 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "8D:2E:79:14:0A:4F:EB:E2:E0:6B:D2:1D:23:8E:A6:67:C2:DA:AA:48" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:93:2A:22:0B:27:B9:55:3B:21:6C:8C:09:BD:AA:D4:63:A1:2E:A1:AD:22:07:38:21:E2:1B:83:5B:02:97:6C:1E:DC:8A:84:46:4E:59:D5:77:15:02:00:18:79:74:55:58:4E:6A:43:54:A9:8B:1D:E2:90:0A:BA:66:A5:9A:56:A5:A2:C2:4B:4B:67:7C:7B:A9:1D:29:3E:F0:F3:3E:65:06:FB:FA:26:05:C0:38:5C:E8:F6:4D:72:97:A0:75:69:A5:66:9C:82:F8:D2:F5:40:A3:CD:59:76:28:9F:5A:DE:53:22:EF:2B:F4:4A:FF:43:42:A2:D3:F2:14:A9:10:A8:2C:89:F3:62:C3:AB:19:B8:E6:50:75:06:E1:B9:1E:B6:EC:7F:48:AE:00:1C:8D:49:B4:B9:E8:03:3B:90:43:F8:02:02:C5:5A:B0:95:C7:05:DC:C3:30:D0:73:FB:17:ED:6B:26:66:FE:43:36:25:9C:44:85:EA:77:98:5D:78:43:27:E0:A0:63:94:18:6D:CA:E9:80:5D:1E:07:B2:79:71:39:E6:39:D4:FB:F5:3B:1E:A4:26:A3:5D:03:22:8B:E2:E2:31:19:45:99:3C:DD:43:30:E9:4A:E0:D2:70:92:3D:B0:22:00:14:DE:BE:A4:73:9E:42:06:9A:59:FD:F3:E8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124826Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.010) 0:00:22.626 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.014) 0:00:22.641 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.010) 0:00:22.652 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.014) 0:00:22.666 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.017) 0:00:22.684 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:48:32 +0000 (0:00:00.015) 0:00:22.700 ******* 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.049500", "end": "2024-08-10 12:48:33.243841", "rc": 0, "start": "2024-08-10 12:48:33.194341" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:48:33 +0000 (0:00:00.345) 0:00:23.045 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:48:33 +0000 (0:00:00.015) 0:00:23.060 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:48:33 +0000 (0:00:00.008) 0:00:23.069 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:48:33 +0000 (0:00:00.010) 0:00:23.080 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:48:33 +0000 (0:00:00.010) 0:00:23.090 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:48:33 +0000 (0:00:00.007) 0:00:23.098 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:48:35 +0000 (0:00:02.542) 0:00:25.640 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294108.0242698, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "49a21715097f23eee29a624cf45f6a636bb08a98", "ctime": 1723294108.1332676, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203719, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294108.0202699, "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": "3874246127", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.259) 0:00:25.899 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.010) 0:00:25.910 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.015) 0:00:25.926 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.013) 0:00:25.940 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294107.9532712, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e27ada038b020cc28b8c1b5359d2cb5e77951515", "ctime": 1723294108.1342676, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203718, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294108.0202699, "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": "4180782319", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.259) 0:00:26.199 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.010) 0:00:26.210 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.015) 0:00:26.225 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "C2:28:B9:EE:D0:FC:4B:A8:64:0D:C8:50:D5:5D:0A:D5:71:04:91:D3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AE:B7:BB:11:2F:BF:82:22:98:DE:2F:5E:BF:65:18:49:F1:13:AD:AB:3C:48:97:FE:88:A6:D1:5B:A8:7A:EC:E7:96:86:6A:28:93:1D:A2:82:D5:39:CA:99:72:13:30:27:DF:92:32:6F:12:4E:8C:A8:5B:6F:F5:55:91:1F:34:71:29:31:CF:F1:2B:32:7B:03:F2:B8:26:1F:C3:81:77:9D:07:2B:5D:DA:5E:30:FC:19:86:ED:F6:81:1E:1A:2D:7C:74:63:34:59:75:4C:31:F5:0C:3A:25:1B:44:83:A6:CA:26:DD:EB:EC:D3:EE:F7:FE:60:D5:ED:96:A4:D1:34:42:E0:87:D7:47:73:D9:96:FB:0B:08:7B:FD:5E:99:48:1E:B4:86:8F:3A:CC:30:03:6C:1C:6F:30:18:C0:C5:67:8B:4D:12:37:22:30:9E:B9:9E:B8:59:9D:25:6C:3E:45:56:91:5A:85:38:71:0F:35:F3:70:61:18:A4:52:99:99:32:DC:73:16:20:79:65:A0:AB:6F:4B:EA:CE:6D:5D:BB:30:C2:3F:FB:45:96:AB:CD:58:27:1B:32:08:8C:4C:DA:36:8B:D4:F5:1F:27:B1:C0:0A:6E:B8:E0:36:F6:68:D4:A4:1F:61:33:84:73:CD:D6:05:0F:A9:A0:1C:79:98:3C:0A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124828Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.317) 0:00:26.543 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "C2:28:B9:EE:D0:FC:4B:A8:64:0D:C8:50:D5:5D:0A:D5:71:04:91:D3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AE:B7:BB:11:2F:BF:82:22:98:DE:2F:5E:BF:65:18:49:F1:13:AD:AB:3C:48:97:FE:88:A6:D1:5B:A8:7A:EC:E7:96:86:6A:28:93:1D:A2:82:D5:39:CA:99:72:13:30:27:DF:92:32:6F:12:4E:8C:A8:5B:6F:F5:55:91:1F:34:71:29:31:CF:F1:2B:32:7B:03:F2:B8:26:1F:C3:81:77:9D:07:2B:5D:DA:5E:30:FC:19:86:ED:F6:81:1E:1A:2D:7C:74:63:34:59:75:4C:31:F5:0C:3A:25:1B:44:83:A6:CA:26:DD:EB:EC:D3:EE:F7:FE:60:D5:ED:96:A4:D1:34:42:E0:87:D7:47:73:D9:96:FB:0B:08:7B:FD:5E:99:48:1E:B4:86:8F:3A:CC:30:03:6C:1C:6F:30:18:C0:C5:67:8B:4D:12:37:22:30:9E:B9:9E:B8:59:9D:25:6C:3E:45:56:91:5A:85:38:71:0F:35:F3:70:61:18:A4:52:99:99:32:DC:73:16:20:79:65:A0:AB:6F:4B:EA:CE:6D:5D:BB:30:C2:3F:FB:45:96:AB:CD:58:27:1B:32:08:8C:4C:DA:36:8B:D4:F5:1F:27:B1:C0:0A:6E:B8:E0:36:F6:68:D4:A4:1F:61:33:84:73:CD:D6:05:0F:A9:A0:1C:79:98:3C:0A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124828Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.010) 0:00:26.553 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.014) 0:00:26.568 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.010) 0:00:26.579 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.014) 0:00:26.594 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.018) 0:00:26.613 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:48:36 +0000 (0:00:00.015) 0:00:26.628 ******* 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.048599", "end": "2024-08-10 12:48:37.115974", "rc": 0, "start": "2024-08-10 12:48:37.067375" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:48:37 +0000 (0:00:00.288) 0:00:26.917 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:67 Saturday 10 August 2024 12:48:37 +0000 (0:00:00.022) 0:00:26.940 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 10 August 2024 12:48:37 +0000 (0:00:00.800) 0:00:27.740 ******* included: /WORKDIR/git-weekly-ciiv107v0d/.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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 12:48:37 +0000 (0:00:00.011) 0:00:27.751 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 10 August 2024 12:48:37 +0000 (0:00:00.012) 0:00:27.764 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 10 August 2024 12:48:37 +0000 (0:00:00.010) 0:00:27.775 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 10 August 2024 12:48:38 +0000 (0:00:00.010) 0:00:27.786 ******* 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-ciiv107v0d/.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_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 10 August 2024 12:48:38 +0000 (0:00:00.022) 0:00:27.808 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 10 August 2024 12:48:40 +0000 (0:00:02.401) 0:00:30.210 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 10 August 2024 12:48:42 +0000 (0:00:02.397) 0:00:32.608 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 10 August 2024 12:48:43 +0000 (0:00:00.274) 0:00:32.882 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 10 August 2024 12:48:43 +0000 (0:00:00.269) 0:00:33.152 ******* 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:48:26 UTC", "ActiveEnterTimestampMonotonic": "663292922", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice network.target dbus-broker.service systemd-journald.socket dbus.socket basic.target sysinit.target syslog.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-10 12:48:26 UTC", "AssertTimestampMonotonic": "663216858", "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": "981966000", "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:48:26 UTC", "ConditionTimestampMonotonic": "663216854", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "6083", "ControlPID": "0", "CoredumpFilter": "0x33", "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": "5533", "ExecMainStartTimestamp": "Sat 2024-08-10 12:48:26 UTC", "ExecMainStartTimestampMonotonic": "663255204", "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:48:26 UTC] ; stop_time=[n/a] ; pid=5533 ; 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:48:26 UTC] ; stop_time=[n/a] ; pid=5533 ; 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": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-10 12:48:26 UTC", "InactiveExitTimestampMonotonic": "663255724", "InvocationID": "91ffc141f3ab42a6b420e5fc160c4136", "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": "14754", "LimitNPROCSoft": "14754", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14754", "LimitSIGPENDINGSoft": "14754", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "5533", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "3973120", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "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", "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": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestamp": "Sat 2024-08-10 12:48:26 UTC", "StateChangeTimestampMonotonic": "663292922", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "4426", "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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 10 August 2024 12:48:43 +0000 (0:00:00.452) 0:00:33.604 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 10 August 2024 12:48:45 +0000 (0:00:01.551) 0:00:35.156 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 10 August 2024 12:48:45 +0000 (0:00:00.025) 0:00:35.182 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 10 August 2024 12:48:45 +0000 (0:00:00.012) 0:00:35.194 ******* 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-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 10 August 2024 12:48:45 +0000 (0:00:00.013) 0:00:35.208 ******* 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-ciiv107v0d/tests/tests_fs_attrs.yml:85 Saturday 10 August 2024 12:48:45 +0000 (0:00:00.025) 0:00:35.234 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:112 Saturday 10 August 2024 12:48:46 +0000 (0:00:00.802) 0:00:36.037 ******* included: /WORKDIR/git-weekly-ciiv107v0d/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-ciiv107v0d/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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:48:46 +0000 (0:00:00.020) 0:00:36.057 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:48:46 +0000 (0:00:00.007) 0:00:36.064 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:48:46 +0000 (0:00:00.010) 0:00:36.075 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:48:46 +0000 (0:00:00.010) 0:00:36.086 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:48:46 +0000 (0:00:00.008) 0:00:36.094 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:48:48 +0000 (0:00:02.376) 0:00:38.471 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294124.418959, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bbcf8545de59d4ed6df67bdd233f5a221af53907", "ctime": 1723294124.468958, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203721, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723294124.414959, "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": "1324963722", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:48:48 +0000 (0:00:00.258) 0:00:38.730 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:48:48 +0000 (0:00:00.010) 0:00:38.741 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:48:48 +0000 (0:00:00.015) 0:00:38.757 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:48:48 +0000 (0:00:00.015) 0:00:38.772 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294124.3629599, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4bc75311fea13ee59c52e340af887e9cbc88c4ea", "ctime": 1723294124.468958, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203720, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723294124.414959, "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": "165484643", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.258) 0:00:39.030 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.011) 0:00:39.041 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.016) 0:00:39.057 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "35:97:CB:A7:88:7A:C6:4C:7B:C2:8D:54:A3:3F:DB:EF:50:59:C3:28" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "88:C6:48:88:87:7C:47:53:5B:21:C1:5C:94:BF:B4:28:5B:6F:41:96:C0:74:3E:91:80:CD:C7:F6:8E:44:B1:CD:E4:C3:20:38:FD:73:33:C6:CF:EC:F1:CB:51:F5:92:6A:73:CC:91:1A:AD:0B:72:03:93:1D:D7:EF:B0:E0:78:5E:E5:66:77:D9:6F:13:89:23:01:AD:65:0A:78:09:B2:DB:F7:24:5D:11:75:C0:2B:3B:D2:88:AC:50:EA:61:D6:D9:B5:DB:04:3B:78:E3:15:36:BE:3B:87:70:6E:3C:E1:A3:A5:A4:E1:F4:AE:2C:13:B3:71:43:20:46:A4:44:14:9A:62:D5:B6:D7:69:7F:B0:E7:6E:81:E2:3A:5B:CB:1F:73:08:0B:75:1B:35:F6:62:7E:06:52:4B:D0:90:E5:A9:80:95:9A:69:99:73:9B:48:C9:64:C1:9F:03:29:DC:51:AE:E6:A5:39:31:81:26:85:69:9D:2C:F3:E3:0C:6B:DC:AB:37:08:88:D7:96:74:CB:A5:D6:A9:CA:DC:D9:7C:6B:36:C7:14:EC:AB:7A:A4:FB:6F:50:58:02:99:07:39:B2:ED:27:80:01:27:27:51:A1:9E:37:AB:CE:F8:17:11:D3:4B:5D:32:3D:59:A2:7C:EC:8B:2D:F3:DA:C0:0B:26:96:1B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124844Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.317) 0:00:39.375 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "35:97:CB:A7:88:7A:C6:4C:7B:C2:8D:54:A3:3F:DB:EF:50:59:C3:28" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "88:C6:48:88:87:7C:47:53:5B:21:C1:5C:94:BF:B4:28:5B:6F:41:96:C0:74:3E:91:80:CD:C7:F6:8E:44:B1:CD:E4:C3:20:38:FD:73:33:C6:CF:EC:F1:CB:51:F5:92:6A:73:CC:91:1A:AD:0B:72:03:93:1D:D7:EF:B0:E0:78:5E:E5:66:77:D9:6F:13:89:23:01:AD:65:0A:78:09:B2:DB:F7:24:5D:11:75:C0:2B:3B:D2:88:AC:50:EA:61:D6:D9:B5:DB:04:3B:78:E3:15:36:BE:3B:87:70:6E:3C:E1:A3:A5:A4:E1:F4:AE:2C:13:B3:71:43:20:46:A4:44:14:9A:62:D5:B6:D7:69:7F:B0:E7:6E:81:E2:3A:5B:CB:1F:73:08:0B:75:1B:35:F6:62:7E:06:52:4B:D0:90:E5:A9:80:95:9A:69:99:73:9B:48:C9:64:C1:9F:03:29:DC:51:AE:E6:A5:39:31:81:26:85:69:9D:2C:F3:E3:0C:6B:DC:AB:37:08:88:D7:96:74:CB:A5:D6:A9:CA:DC:D9:7C:6B:36:C7:14:EC:AB:7A:A4:FB:6F:50:58:02:99:07:39:B2:ED:27:80:01:27:27:51:A1:9E:37:AB:CE:F8:17:11:D3:4B:5D:32:3D:59:A2:7C:EC:8B:2D:F3:DA:C0:0B:26:96:1B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124844Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.011) 0:00:39.386 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.013) 0:00:39.400 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.010) 0:00:39.411 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.013) 0:00:39.424 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.017) 0:00:39.442 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.016) 0:00:39.459 ******* 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.052789", "end": "2024-08-10 12:48:49.955289", "rc": 0, "start": "2024-08-10 12:48:49.902500" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.296) 0:00:39.756 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:48:49 +0000 (0:00:00.015) 0:00:39.771 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:48:50 +0000 (0:00:00.007) 0:00:39.779 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:48:50 +0000 (0:00:00.010) 0:00:39.789 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:48:50 +0000 (0:00:00.010) 0:00:39.800 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 12:48:50 +0000 (0:00:00.007) 0:00:39.808 ******* 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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 12:48:52 +0000 (0:00:02.359) 0:00:42.167 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294125.2359433, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0f9a6d3146aab1989ca5b05c1fbe3852282982d6", "ctime": 1723294125.2319434, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203723, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723294125.2319434, "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": "1767778461", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 12:48:52 +0000 (0:00:00.257) 0:00:42.424 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 12:48:52 +0000 (0:00:00.010) 0:00:42.435 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 12:48:52 +0000 (0:00:00.016) 0:00:42.452 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 12:48:52 +0000 (0:00:00.014) 0:00:42.466 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294125.1809444, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9ab593a3e840a71890fddb96afb2ffca8fa43e24", "ctime": 1723294125.2319434, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203722, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723294125.2319434, "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": "243527398", "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-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 12:48:52 +0000 (0:00:00.258) 0:00:42.724 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 12:48:52 +0000 (0:00:00.010) 0:00:42.735 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 12:48:52 +0000 (0:00:00.015) 0:00:42.751 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "83:40:BA:8C:0D:E4:F2:79:67:D5:70:26:95:DF:E8:9C:2C:F2:BE:A1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2D:31:C5:B0:47:4D:BE:BC:5B:17:C7:C8:56:58:6F:88:2A:C2:28:D4:9C:83:19:06:83:D9:79:7B:D6:C3:03:5D:F5:AE:8C:AF:BA:03:69:A1:A6:67:CE:85:4F:81:22:FF:75:0C:40:44:33:74:71:91:BD:A0:B3:FC:2F:7B:53:B8:71:A2:87:B0:ED:16:08:0B:B3:40:60:6E:48:CC:EC:A6:ED:F1:23:6E:2D:16:E9:12:33:51:A9:74:2E:E9:88:D7:44:A0:E6:B6:06:C0:8C:33:56:AF:B7:C5:2F:D0:E4:A6:7B:98:11:DF:9A:3C:61:9D:E8:66:D5:79:2A:21:AD:5D:38:62:2E:97:C3:35:70:B2:A8:D5:51:65:79:4F:7D:EC:B8:68:68:67:FF:0C:64:E5:4F:8D:6C:37:BF:41:C7:1E:DE:7F:66:A2:DD:A3:F0:44:BB:89:AB:67:F3:50:9B:7B:CD:D0:41:F9:69:C7:E7:D4:5F:8C:D0:A6:03:A5:F8:C9:AF:82:11:DB:9E:35:A5:2B:DD:CE:37:EB:89:B9:74:3A:5C:7D:37:D0:74:2B:2C:A0:2E:DA:C3:47:E2:B4:DE:D1:44:A9:ED:96:8D:B2:4B:11:F7:AE:79:4C:7D:C4:7F:15:97:3F:D2:0D:C1:74:75:69:11:78:D2:E5:43:C9:22:87" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124845Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.323) 0:00:43.075 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4B:7B:C9:C7:87:37:32:90:97:BF:1D:97:92:0A:DB:5B:BA:9C:0C:E9" }, "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": "83:40:BA:8C:0D:E4:F2:79:67:D5:70:26:95:DF:E8:9C:2C:F2:BE:A1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2D:31:C5:B0:47:4D:BE:BC:5B:17:C7:C8:56:58:6F:88:2A:C2:28:D4:9C:83:19:06:83:D9:79:7B:D6:C3:03:5D:F5:AE:8C:AF:BA:03:69:A1:A6:67:CE:85:4F:81:22:FF:75:0C:40:44:33:74:71:91:BD:A0:B3:FC:2F:7B:53:B8:71:A2:87:B0:ED:16:08:0B:B3:40:60:6E:48:CC:EC:A6:ED:F1:23:6E:2D:16:E9:12:33:51:A9:74:2E:E9:88:D7:44:A0:E6:B6:06:C0:8C:33:56:AF:B7:C5:2F:D0:E4:A6:7B:98:11:DF:9A:3C:61:9D:E8:66:D5:79:2A:21:AD:5D:38:62:2E:97:C3:35:70:B2:A8:D5:51:65:79:4F:7D:EC:B8:68:68:67:FF:0C:64:E5:4F:8D:6C:37:BF:41:C7:1E:DE:7F:66:A2:DD:A3:F0:44:BB:89:AB:67:F3:50:9B:7B:CD:D0:41:F9:69:C7:E7:D4:5F:8C:D0:A6:03:A5:F8:C9:AF:82:11:DB:9E:35:A5:2B:DD:CE:37:EB:89:B9:74:3A:5C:7D:37:D0:74:2B:2C:A0:2E:DA:C3:47:E2:B4:DE:D1:44:A9:ED:96:8D:B2:4B:11:F7:AE:79:4C:7D:C4:7F:15:97:3F:D2:0D:C1:74:75:69:11:78:D2:E5:43:C9:22:87" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810124826Z", "not_valid_before": "20240810124845Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.011) 0:00:43.086 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.014) 0:00:43.101 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.011) 0:00:43.113 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.013) 0:00:43.127 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.019) 0:00:43.146 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.018) 0:00:43.165 ******* 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.053521", "end": "2024-08-10 12:48:53.668263", "rc": 0, "start": "2024-08-10 12:48:53.614742" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 12:48:53 +0000 (0:00:00.305) 0:00:43.470 ******* 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:48:53 +0000 (0:00:00.019) 0:00:43.489 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 5.58s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 5.02s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.54s /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.50s /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.40s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.40s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.38s /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.36s /WORKDIR/git-weekly-ciiv107v0d/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.01s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.55s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.42s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 1.06s /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 1.04s /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.80s /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.80s /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.78s /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:14 -------------------- Ensure user exists ------------------------------------------------------ 0.68s /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.45s /WORKDIR/git-weekly-ciiv107v0d/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure group "somegroup" exists ----------------------------------------- 0.43s /WORKDIR/git-weekly-ciiv107v0d/tests/tests_fs_attrs.yml:9 --------------------- Parse certificate ------------------------------------------------------- 0.37s /WORKDIR/git-weekly-ciiv107v0d/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. ---^---^---^---^---^---