# 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-ciiexnbxb4/.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-ciiexnbxb4/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:2 Saturday 03 August 2024 12:56:12 +0000 (0:00:00.021) 0:00:00.021 ******* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:5 Saturday 03 August 2024 12:56:13 +0000 (0:00:00.954) 0:00:00.975 ******* 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-ciiexnbxb4/tests/tests_fs_attrs.yml:9 Saturday 03 August 2024 12:56:13 +0000 (0:00:00.491) 0:00:01.466 ******* 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-ciiexnbxb4/tests/tests_fs_attrs.yml:14 Saturday 03 August 2024 12:56:14 +0000 (0:00:00.365) 0:00:01.832 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 03 August 2024 12:56:14 +0000 (0:00:00.720) 0:00:02.553 ******* included: /WORKDIR/git-weekly-ciiexnbxb4/.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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 12:56:15 +0000 (0:00:00.012) 0:00:02.565 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 03 August 2024 12:56:15 +0000 (0:00:00.013) 0:00:02.578 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 03 August 2024 12:56:15 +0000 (0:00:00.262) 0:00:02.841 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 03 August 2024 12:56:15 +0000 (0:00:00.015) 0:00:02.856 ******* 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-ciiexnbxb4/.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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 03 August 2024 12:56:15 +0000 (0:00:00.023) 0:00:02.880 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.5.1-1.fc39.noarch", "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" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 03 August 2024 12:56:20 +0000 (0:00:05.624) 0:00:08.504 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: dbus-tools-1:1.14.10-1.fc39.x86_64", "Installed: python3-packaging-23.1-4.fc39.noarch", "Installed: certmonger-0.79.18-2.fc39.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 03 August 2024 12:56:25 +0000 (0:00:04.992) 0:00:13.497 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 03 August 2024 12:56:26 +0000 (0:00:00.382) 0:00:13.879 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 03 August 2024 12:56:26 +0000 (0:00:00.245) 0:00:14.125 ******* 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": "sysinit.target system.slice syslog.target dbus.socket dbus-broker.service systemd-journald.socket network.target basic.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": "sysinit.target system.slice dbus.socket", "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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 03 August 2024 12:56:27 +0000 (0:00:00.970) 0:00:15.095 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 03 August 2024 12:56:28 +0000 (0:00:01.294) 0:00:16.390 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 03 August 2024 12:56:28 +0000 (0:00:00.026) 0:00:16.417 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 03 August 2024 12:56:28 +0000 (0:00:00.012) 0:00:16.429 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 03 August 2024 12:56:28 +0000 (0:00:00.013) 0:00:16.442 ******* 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-ciiexnbxb4/tests/tests_fs_attrs.yml:32 Saturday 03 August 2024 12:56:28 +0000 (0:00:00.023) 0:00:16.466 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:61 Saturday 03 August 2024 12:56:29 +0000 (0:00:00.746) 0:00:17.212 ******* included: /WORKDIR/git-weekly-ciiexnbxb4/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-ciiexnbxb4/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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:56:29 +0000 (0:00:00.021) 0:00:17.233 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:56:29 +0000 (0:00:00.008) 0:00:17.242 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:56:29 +0000 (0:00:00.010) 0:00:17.253 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:56:29 +0000 (0:00:00.010) 0:00:17.264 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:56:29 +0000 (0:00:00.007) 0:00:17.271 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:56:31 +0000 (0:00:02.137) 0:00:19.409 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689788.1019125, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2e7f34c63da9958be1c620c397195055372895fb", "ctime": 1722689788.1999135, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203658, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689788.0969124, "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": "725126698", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.218) 0:00:19.627 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.010) 0:00:19.638 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.016) 0:00:19.654 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.015) 0:00:19.669 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689788.051912, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f97e7bf8b998636531a3774c2f7d117031e7cfcb", "ctime": 1722689788.1999135, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203657, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689788.0969124, "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": "839406004", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.220) 0:00:19.889 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.011) 0:00:19.901 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.016) 0:00:19.917 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "90:3A:0F:E1:6A:13:C0:75:E9:8A:4B:38:B6:95:12:B5:94:C3:0F:7B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2D:F1:62:E9:60:91:62:3C:CD:93:B5:61:E7:6F:85:07:21:A4:EF:44:6E:96:04:07:3A:65:19:E6:62:67:D7:2B:34:ED:9D:7D:E3:F4:89:E4:6F:EC:AF:73:77:EA:67:A8:D5:9E:87:D2:35:4C:80:6F:79:9B:EC:D1:E1:A8:D2:A1:AB:1D:86:D8:F7:30:21:47:EA:FE:76:CC:75:D5:28:ED:CC:5B:A5:75:42:EA:F6:41:F6:DF:17:AC:1D:40:9B:04:83:41:60:48:86:39:26:25:55:8A:42:CC:24:FF:98:F0:A4:A2:A8:96:8C:08:F4:E2:D8:77:89:5F:B6:5E:F3:B5:AE:3E:AC:38:04:BF:D7:C3:36:7E:04:6E:63:28:42:3A:D9:99:D0:DA:97:B2:F2:09:65:DB:3B:5A:F2:D9:73:1B:3B:FD:9B:EF:2D:F0:92:70:B7:DC:33:B3:A0:A6:EA:7D:71:50:B6:07:9C:6C:45:B0:95:FA:F2:F9:D6:8C:0B:9F:90:08:0C:C8:E9:1A:6C:CE:56:C2:24:39:7D:A0:01:0B:E9:98:D0:CE:9C:81:54:7F:1D:FA:AD:89:5B:3C:97:F9:9E:7E:80:3C:D6:4B:7D:6D:BD:00:86:64:87:2C:13:52:8F:27:7D:D9:66:0D:22:AB:0D:9C:12:69:0C:F7:8F:F6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125628Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.330) 0:00:20.247 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "90:3A:0F:E1:6A:13:C0:75:E9:8A:4B:38:B6:95:12:B5:94:C3:0F:7B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2D:F1:62:E9:60:91:62:3C:CD:93:B5:61:E7:6F:85:07:21:A4:EF:44:6E:96:04:07:3A:65:19:E6:62:67:D7:2B:34:ED:9D:7D:E3:F4:89:E4:6F:EC:AF:73:77:EA:67:A8:D5:9E:87:D2:35:4C:80:6F:79:9B:EC:D1:E1:A8:D2:A1:AB:1D:86:D8:F7:30:21:47:EA:FE:76:CC:75:D5:28:ED:CC:5B:A5:75:42:EA:F6:41:F6:DF:17:AC:1D:40:9B:04:83:41:60:48:86:39:26:25:55:8A:42:CC:24:FF:98:F0:A4:A2:A8:96:8C:08:F4:E2:D8:77:89:5F:B6:5E:F3:B5:AE:3E:AC:38:04:BF:D7:C3:36:7E:04:6E:63:28:42:3A:D9:99:D0:DA:97:B2:F2:09:65:DB:3B:5A:F2:D9:73:1B:3B:FD:9B:EF:2D:F0:92:70:B7:DC:33:B3:A0:A6:EA:7D:71:50:B6:07:9C:6C:45:B0:95:FA:F2:F9:D6:8C:0B:9F:90:08:0C:C8:E9:1A:6C:CE:56:C2:24:39:7D:A0:01:0B:E9:98:D0:CE:9C:81:54:7F:1D:FA:AD:89:5B:3C:97:F9:9E:7E:80:3C:D6:4B:7D:6D:BD:00:86:64:87:2C:13:52:8F:27:7D:D9:66:0D:22:AB:0D:9C:12:69:0C:F7:8F:F6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125628Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.012) 0:00:20.260 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.015) 0:00:20.275 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.010) 0:00:20.286 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.014) 0:00:20.301 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.016) 0:00:20.318 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:56:32 +0000 (0:00:00.017) 0:00:20.335 ******* 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.037352", "end": "2024-08-03 12:56:33.050968", "rc": 0, "start": "2024-08-03 12:56:33.013616" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:56:33 +0000 (0:00:00.301) 0:00:20.636 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:56:33 +0000 (0:00:00.016) 0:00:20.652 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:56:33 +0000 (0:00:00.008) 0:00:20.661 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:56:33 +0000 (0:00:00.010) 0:00:20.671 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:56:33 +0000 (0:00:00.011) 0:00:20.683 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:56:33 +0000 (0:00:00.008) 0:00:20.691 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:56:35 +0000 (0:00:02.093) 0:00:22.785 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689788.7239192, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1f1a723ec2bfdb4b135c289aaa20810fbe8438a2", "ctime": 1722689788.7929199, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203660, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689788.7209191, "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": "1472495816", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:56:35 +0000 (0:00:00.219) 0:00:23.004 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:56:35 +0000 (0:00:00.011) 0:00:23.015 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:56:35 +0000 (0:00:00.016) 0:00:23.031 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:56:35 +0000 (0:00:00.014) 0:00:23.046 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689788.6759186, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0d93148572d26f0970b0d56c34769a1387054064", "ctime": 1722689788.7939198, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203659, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689788.7209191, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 1040, "version": "3008149612", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:56:35 +0000 (0:00:00.220) 0:00:23.267 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:56:35 +0000 (0:00:00.010) 0:00:23.277 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:56:35 +0000 (0:00:00.016) 0:00:23.293 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "AD:06:C7:34:42:AD:BA:C7:DA:CA:38:15:BE:70:26:32:3A:E0:A5:3B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "29:F0:65:BE:68:E8:2E:FB:BA:EE:57:8B:AB:34:2A:36:B0:2C:35:EF:9C:C5:D3:35:5E:8D:38:18:45:A5:67:61:EB:6B:93:D6:D5:F6:28:45:A3:75:2E:91:F2:9F:19:02:8D:C2:51:F0:99:C0:72:72:A8:FF:18:51:AA:F2:6A:54:6D:04:1E:EE:96:68:C2:77:43:9C:72:91:37:81:00:03:8A:7D:B4:E3:25:09:A0:CF:FF:F8:77:B3:8B:41:F6:60:7A:62:03:C2:81:25:18:AD:C1:45:A4:8A:22:BB:39:4E:22:EA:6A:7E:E4:8A:FD:E5:40:49:35:B8:81:48:47:9A:A5:09:9D:3F:B2:6E:F2:15:B5:23:35:A3:57:C0:03:96:12:41:13:E0:7C:FF:18:EC:AE:48:9F:C7:90:DF:E8:4C:CA:2B:FD:B2:13:7A:77:53:72:02:78:B2:73:27:FD:BA:57:E1:DA:6E:6B:2D:33:D5:24:0A:78:60:05:0C:60:0F:7F:A3:B2:DD:12:36:80:D8:39:F3:B3:93:AC:78:3F:72:95:F5:81:25:2A:47:F6:1F:C5:E7:4F:4D:CF:67:C3:C4:C2:06:49:0C:D9:98:D6:BE:5B:87:EE:38:43:CD:9C:EB:06:83:4E:23:65:3E:2B:8E:86:91:CE:EB:C3:C2:28:1C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125628Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.273) 0:00:23.567 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "AD:06:C7:34:42:AD:BA:C7:DA:CA:38:15:BE:70:26:32:3A:E0:A5:3B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "29:F0:65:BE:68:E8:2E:FB:BA:EE:57:8B:AB:34:2A:36:B0:2C:35:EF:9C:C5:D3:35:5E:8D:38:18:45:A5:67:61:EB:6B:93:D6:D5:F6:28:45:A3:75:2E:91:F2:9F:19:02:8D:C2:51:F0:99:C0:72:72:A8:FF:18:51:AA:F2:6A:54:6D:04:1E:EE:96:68:C2:77:43:9C:72:91:37:81:00:03:8A:7D:B4:E3:25:09:A0:CF:FF:F8:77:B3:8B:41:F6:60:7A:62:03:C2:81:25:18:AD:C1:45:A4:8A:22:BB:39:4E:22:EA:6A:7E:E4:8A:FD:E5:40:49:35:B8:81:48:47:9A:A5:09:9D:3F:B2:6E:F2:15:B5:23:35:A3:57:C0:03:96:12:41:13:E0:7C:FF:18:EC:AE:48:9F:C7:90:DF:E8:4C:CA:2B:FD:B2:13:7A:77:53:72:02:78:B2:73:27:FD:BA:57:E1:DA:6E:6B:2D:33:D5:24:0A:78:60:05:0C:60:0F:7F:A3:B2:DD:12:36:80:D8:39:F3:B3:93:AC:78:3F:72:95:F5:81:25:2A:47:F6:1F:C5:E7:4F:4D:CF:67:C3:C4:C2:06:49:0C:D9:98:D6:BE:5B:87:EE:38:43:CD:9C:EB:06:83:4E:23:65:3E:2B:8E:86:91:CE:EB:C3:C2:28:1C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125628Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.010) 0:00:23.578 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.016) 0:00:23.595 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.011) 0:00:23.606 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.017) 0:00:23.623 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.018) 0:00:23.642 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.018) 0:00:23.660 ******* 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.037107", "end": "2024-08-03 12:56:36.322176", "rc": 0, "start": "2024-08-03 12:56:36.285069" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.244) 0:00:23.905 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:67 Saturday 03 August 2024 12:56:36 +0000 (0:00:00.023) 0:00:23.928 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 03 August 2024 12:56:37 +0000 (0:00:00.731) 0:00:24.660 ******* included: /WORKDIR/git-weekly-ciiexnbxb4/.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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 12:56:37 +0000 (0:00:00.011) 0:00:24.671 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 03 August 2024 12:56:37 +0000 (0:00:00.012) 0:00:24.684 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 03 August 2024 12:56:37 +0000 (0:00:00.011) 0:00:24.695 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 03 August 2024 12:56:37 +0000 (0:00:00.010) 0:00:24.706 ******* 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-ciiexnbxb4/.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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 03 August 2024 12:56:37 +0000 (0:00:00.022) 0:00:24.728 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 03 August 2024 12:56:39 +0000 (0:00:02.043) 0:00:26.771 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 03 August 2024 12:56:41 +0000 (0:00:02.049) 0:00:28.821 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 03 August 2024 12:56:41 +0000 (0:00:00.238) 0:00:29.059 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 03 August 2024 12:56:41 +0000 (0:00:00.235) 0:00:29.295 ******* 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-03 12:56:27 UTC", "ActiveEnterTimestampMonotonic": "929577458", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice systemd-journald.socket basic.target syslog.target network.target sysinit.target dbus-broker.service dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-03 12:56:27 UTC", "AssertTimestampMonotonic": "929522434", "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": "722176000", "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-03 12:56:27 UTC", "ConditionTimestampMonotonic": "929522430", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "6040", "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": "5538", "ExecMainStartTimestamp": "Sat 2024-08-03 12:56:27 UTC", "ExecMainStartTimestampMonotonic": "929530117", "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-03 12:56:27 UTC] ; stop_time=[n/a] ; pid=5538 ; 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-03 12:56:27 UTC] ; stop_time=[n/a] ; pid=5538 ; 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-03 12:56:27 UTC", "InactiveExitTimestampMonotonic": "929530422", "InvocationID": "0fbe9ca1d08f410796061b6c65a3ea55", "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": "5538", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "3969024", "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": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "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-03 12:56:27 UTC", "StateChangeTimestampMonotonic": "929577458", "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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 03 August 2024 12:56:42 +0000 (0:00:00.388) 0:00:29.683 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 03 August 2024 12:56:43 +0000 (0:00:01.214) 0:00:30.898 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 03 August 2024 12:56:43 +0000 (0:00:00.025) 0:00:30.923 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 03 August 2024 12:56:43 +0000 (0:00:00.012) 0:00:30.935 ******* 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-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 03 August 2024 12:56:43 +0000 (0:00:00.013) 0:00:30.949 ******* 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-ciiexnbxb4/tests/tests_fs_attrs.yml:85 Saturday 03 August 2024 12:56:43 +0000 (0:00:00.023) 0:00:30.972 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:112 Saturday 03 August 2024 12:56:44 +0000 (0:00:00.728) 0:00:31.700 ******* included: /WORKDIR/git-weekly-ciiexnbxb4/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-ciiexnbxb4/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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:56:44 +0000 (0:00:00.021) 0:00:31.722 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:56:44 +0000 (0:00:00.008) 0:00:31.730 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:56:44 +0000 (0:00:00.011) 0:00:31.742 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:56:44 +0000 (0:00:00.010) 0:00:31.753 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:56:44 +0000 (0:00:00.009) 0:00:31.762 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:56:46 +0000 (0:00:02.042) 0:00:33.804 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689802.5710647, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1e016c83853cbfe23c7a5ae8ba71253e3097cd45", "ctime": 1722689802.703066, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203662, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722689802.5670648, "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": "3482017930", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:56:46 +0000 (0:00:00.220) 0:00:34.025 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:56:46 +0000 (0:00:00.011) 0:00:34.036 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:56:46 +0000 (0:00:00.016) 0:00:34.053 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:56:46 +0000 (0:00:00.015) 0:00:34.069 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689802.5230644, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9af14e97d0d0544e75f54ec4f3e4fa080bcc8f7b", "ctime": 1722689802.7040663, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203661, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722689802.5670648, "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": "517161245", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:56:46 +0000 (0:00:00.220) 0:00:34.289 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:56:46 +0000 (0:00:00.012) 0:00:34.302 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:56:46 +0000 (0:00:00.018) 0:00:34.321 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "FC:AC:0C:2B:12:1E:BC:6A:77:0E:87:B8:75:84:F1:60:CF:7A:0F:87" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "33:59:75:8E:1D:73:A4:4F:42:47:0E:3A:84:B7:92:77:0A:CB:81:9F:3F:23:E3:AF:28:C1:A9:A4:51:A1:3D:45:3A:11:C6:12:24:DC:24:E3:66:77:E3:11:C0:75:40:C2:1E:67:98:C4:C4:DD:4D:0B:7E:01:A8:F9:31:70:E8:AB:42:3B:1D:53:E9:D1:E6:6D:B9:90:49:0D:B9:AA:52:1F:A0:B0:1F:19:1D:7D:A9:CF:FF:E7:B7:70:36:BD:52:EE:86:E8:C6:F7:32:C4:8B:5E:95:D0:D6:9F:B6:A0:03:E9:48:3E:AD:7A:E0:BE:F7:88:3D:C6:3A:50:D0:8C:53:01:9D:2B:BD:CB:78:94:BC:71:16:25:54:3B:E9:41:E0:73:80:DD:3A:E0:D2:9D:45:12:5D:9A:3C:0F:90:21:42:28:E7:28:9C:A8:DE:DE:C3:ED:B4:8E:B4:F3:E6:D2:94:BD:46:D5:93:74:71:E7:F1:34:CF:A4:8A:BC:BC:34:FF:EB:B9:04:23:09:CF:21:55:36:FA:09:00:B3:86:2A:8A:AC:86:69:C8:A5:92:92:7F:9C:D7:F2:54:9F:9F:4F:8B:8C:31:42:FE:7A:F1:33:48:9D:8A:44:5A:03:35:F7:61:E9:E0:E9:1B:46:26:64:8C:E7:B4:02:0C:49:3A:33:65:21" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125642Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.271) 0:00:34.592 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "FC:AC:0C:2B:12:1E:BC:6A:77:0E:87:B8:75:84:F1:60:CF:7A:0F:87" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "33:59:75:8E:1D:73:A4:4F:42:47:0E:3A:84:B7:92:77:0A:CB:81:9F:3F:23:E3:AF:28:C1:A9:A4:51:A1:3D:45:3A:11:C6:12:24:DC:24:E3:66:77:E3:11:C0:75:40:C2:1E:67:98:C4:C4:DD:4D:0B:7E:01:A8:F9:31:70:E8:AB:42:3B:1D:53:E9:D1:E6:6D:B9:90:49:0D:B9:AA:52:1F:A0:B0:1F:19:1D:7D:A9:CF:FF:E7:B7:70:36:BD:52:EE:86:E8:C6:F7:32:C4:8B:5E:95:D0:D6:9F:B6:A0:03:E9:48:3E:AD:7A:E0:BE:F7:88:3D:C6:3A:50:D0:8C:53:01:9D:2B:BD:CB:78:94:BC:71:16:25:54:3B:E9:41:E0:73:80:DD:3A:E0:D2:9D:45:12:5D:9A:3C:0F:90:21:42:28:E7:28:9C:A8:DE:DE:C3:ED:B4:8E:B4:F3:E6:D2:94:BD:46:D5:93:74:71:E7:F1:34:CF:A4:8A:BC:BC:34:FF:EB:B9:04:23:09:CF:21:55:36:FA:09:00:B3:86:2A:8A:AC:86:69:C8:A5:92:92:7F:9C:D7:F2:54:9F:9F:4F:8B:8C:31:42:FE:7A:F1:33:48:9D:8A:44:5A:03:35:F7:61:E9:E0:E9:1B:46:26:64:8C:E7:B4:02:0C:49:3A:33:65:21" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125642Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.011) 0:00:34.604 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.014) 0:00:34.619 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.011) 0:00:34.630 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.013) 0:00:34.644 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.018) 0:00:34.663 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.018) 0:00:34.681 ******* 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.039241", "end": "2024-08-03 12:56:47.347421", "rc": 0, "start": "2024-08-03 12:56:47.308180" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.251) 0:00:34.933 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.016) 0:00:34.949 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.008) 0:00:34.958 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.012) 0:00:34.970 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.011) 0:00:34.981 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:56:47 +0000 (0:00:00.008) 0:00:34.990 ******* 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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:56:49 +0000 (0:00:02.026) 0:00:37.016 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689803.1850712, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ffa6119d3ff27b3e33be8361653c7cf13a83441c", "ctime": 1722689803.1820712, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203664, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722689803.1820712, "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": "1585500804", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:56:49 +0000 (0:00:00.225) 0:00:37.242 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:56:49 +0000 (0:00:00.013) 0:00:37.255 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:56:49 +0000 (0:00:00.020) 0:00:37.276 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:56:49 +0000 (0:00:00.019) 0:00:37.295 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689803.1380708, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5898ed980b782831d18c5ef49c919a81ac740791", "ctime": 1722689803.1820712, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203663, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722689803.1820712, "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": "3664060325", "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-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:56:49 +0000 (0:00:00.241) 0:00:37.537 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:56:49 +0000 (0:00:00.014) 0:00:37.551 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.018) 0:00:37.570 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "AA:C2:08:53:0A:56:13:6F:E1:C4:C3:D1:40:B8:FC:C1:51:B2:87:E6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7E:FA:2D:6D:EC:9B:FF:CB:1A:F6:67:C9:17:7E:C3:26:74:E8:3C:65:6D:D0:98:60:14:05:63:8B:C7:85:48:42:F4:88:B9:4F:89:63:66:73:16:5D:C4:08:F1:B2:A1:4B:4A:72:77:DE:77:C3:13:CE:7D:BF:9F:31:A7:1A:A4:84:73:4D:85:C7:50:4B:45:26:95:E7:D6:07:8A:1D:E4:59:2F:8F:C9:13:E1:A6:4D:60:29:5E:45:89:59:E7:33:66:7D:3B:28:BF:CA:17:3C:DE:9F:83:0D:7C:37:2C:E0:C8:3C:1F:60:6C:89:1F:11:FD:CE:36:BF:96:5F:4F:9C:20:DE:A5:D3:BE:B6:C7:81:D0:F5:B4:94:6D:58:5A:14:89:57:15:21:22:56:DB:F1:14:7B:8A:B0:84:77:A8:10:BE:D4:A1:3C:AC:81:59:E7:87:4C:5B:11:84:8F:D7:C6:FF:18:16:A5:49:70:16:97:F0:D7:62:67:48:EE:26:E2:4D:C0:F2:2B:10:EF:51:BD:BE:B2:FA:3E:4D:1B:37:07:5A:CC:F9:CC:EC:1C:EB:29:14:EA:A0:08:DE:11:FE:58:BB:64:BD:13:BB:F6:AD:5B:2F:51:DB:3B:EF:01:C4:F4:97:7B:EE:AE:E1:2C:A5:78:0F:50:75:69:F0:89:72:A2:11" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125643Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.272) 0:00:37.843 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:6B:98:AB:EF:58:C8:75:87:C9:0E:C9:A5:26:67:66:9D:6B:70:2B" }, "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": "AA:C2:08:53:0A:56:13:6F:E1:C4:C3:D1:40:B8:FC:C1:51:B2:87:E6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7E:FA:2D:6D:EC:9B:FF:CB:1A:F6:67:C9:17:7E:C3:26:74:E8:3C:65:6D:D0:98:60:14:05:63:8B:C7:85:48:42:F4:88:B9:4F:89:63:66:73:16:5D:C4:08:F1:B2:A1:4B:4A:72:77:DE:77:C3:13:CE:7D:BF:9F:31:A7:1A:A4:84:73:4D:85:C7:50:4B:45:26:95:E7:D6:07:8A:1D:E4:59:2F:8F:C9:13:E1:A6:4D:60:29:5E:45:89:59:E7:33:66:7D:3B:28:BF:CA:17:3C:DE:9F:83:0D:7C:37:2C:E0:C8:3C:1F:60:6C:89:1F:11:FD:CE:36:BF:96:5F:4F:9C:20:DE:A5:D3:BE:B6:C7:81:D0:F5:B4:94:6D:58:5A:14:89:57:15:21:22:56:DB:F1:14:7B:8A:B0:84:77:A8:10:BE:D4:A1:3C:AC:81:59:E7:87:4C:5B:11:84:8F:D7:C6:FF:18:16:A5:49:70:16:97:F0:D7:62:67:48:EE:26:E2:4D:C0:F2:2B:10:EF:51:BD:BE:B2:FA:3E:4D:1B:37:07:5A:CC:F9:CC:EC:1C:EB:29:14:EA:A0:08:DE:11:FE:58:BB:64:BD:13:BB:F6:AD:5B:2F:51:DB:3B:EF:01:C4:F4:97:7B:EE:AE:E1:2C:A5:78:0F:50:75:69:F0:89:72:A2:11" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803125627Z", "not_valid_before": "20240803125643Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.011) 0:00:37.854 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.020) 0:00:37.874 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.013) 0:00:37.887 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.015) 0:00:37.902 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.018) 0:00:37.921 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.017) 0:00:37.939 ******* 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.039115", "end": "2024-08-03 12:56:50.602914", "rc": 0, "start": "2024-08-03 12:56:50.563799" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:56:50 +0000 (0:00:00.247) 0:00:38.187 ******* 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 03 August 2024 12:56:50 +0000 (0:00:00.020) 0:00:38.207 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 5.62s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.99s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.14s /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.09s /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.05s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.04s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.04s /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.03s /WORKDIR/git-weekly-ciiexnbxb4/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.29s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.21s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.97s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.95s /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.75s /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.73s /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.73s /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.72s /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:14 -------------------- Ensure user exists ------------------------------------------------------ 0.49s /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.39s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.38s /WORKDIR/git-weekly-ciiexnbxb4/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Ensure group "somegroup" exists ----------------------------------------- 0.37s /WORKDIR/git-weekly-ciiexnbxb4/tests/tests_fs_attrs.yml:9 --------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [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. ---^---^---^---^---^---