# 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-ciw0ilxk1p/.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-ciw0ilxk1p/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:2 Saturday 03 August 2024 12:43:03 +0000 (0:00:00.020) 0:00:00.020 ******* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:5 Saturday 03 August 2024 12:43:05 +0000 (0:00:02.394) 0:00:02.414 ******* 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-ciw0ilxk1p/tests/tests_fs_attrs.yml:9 Saturday 03 August 2024 12:43:06 +0000 (0:00:00.399) 0:00:02.814 ******* 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-ciw0ilxk1p/tests/tests_fs_attrs.yml:14 Saturday 03 August 2024 12:43:06 +0000 (0:00:00.318) 0:00:03.132 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 03 August 2024 12:43:08 +0000 (0:00:02.020) 0:00:05.153 ******* included: /WORKDIR/git-weekly-ciw0ilxk1p/.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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 12:43:08 +0000 (0:00:00.011) 0:00:05.165 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 03 August 2024 12:43:08 +0000 (0:00:00.013) 0:00:05.178 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 03 August 2024 12:43:08 +0000 (0:00:00.258) 0:00:05.437 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 03 August 2024 12:43:08 +0000 (0:00:00.016) 0:00:05.453 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [sut] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 03 August 2024 12:43:08 +0000 (0:00:00.026) 0:00:05.480 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-cryptography-41.0.7-1.fc40.x86_64", "Installed: python3-pyasn1-0.5.1-3.fc40.noarch", "Installed: python3-pycparser-2.20-14.fc40.noarch", "Installed: python3-cffi-1.16.0-4.fc40.x86_64", "Installed: python3-ply-3.11-23.fc40.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 03 August 2024 12:43:12 +0000 (0:00:03.606) 0:00:09.086 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-packaging-23.2-4.fc40.noarch", "Installed: dbus-tools-1:1.14.10-3.fc40.x86_64", "Installed: certmonger-0.79.19-5.fc40.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 03 August 2024 12:43:15 +0000 (0:00:03.530) 0:00:12.617 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 03 August 2024 12:43:16 +0000 (0:00:00.321) 0:00:12.938 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 03 August 2024 12:43:16 +0000 (0:00:00.230) 0:00:13.169 ******* 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": "syslog.target dbus.socket network.target system.slice systemd-journald.socket sysinit.target dbus-broker.service 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", "CoredumpReceive": "no", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14724", "LimitNPROCSoft": "14724", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14724", "LimitSIGPENDINGSoft": "14724", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3454668800", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "[not set]", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "[not set]", "MemorySwapMax": "infinity", "MemorySwapPeak": "[not set]", "MemoryZSwapCurrent": "[not set]", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "SetLoginEnvironment": "no", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StartupMemoryHigh": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4417", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 03 August 2024 12:43:17 +0000 (0:00:00.840) 0:00:14.009 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 03 August 2024 12:43:18 +0000 (0:00:01.270) 0:00:15.279 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 03 August 2024 12:43:18 +0000 (0:00:00.026) 0:00:15.306 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 03 August 2024 12:43:18 +0000 (0:00:00.012) 0:00:15.318 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 03 August 2024 12:43:18 +0000 (0:00:00.013) 0:00:15.331 ******* 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-ciw0ilxk1p/tests/tests_fs_attrs.yml:32 Saturday 03 August 2024 12:43:18 +0000 (0:00:00.023) 0:00:15.355 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:61 Saturday 03 August 2024 12:43:20 +0000 (0:00:02.069) 0:00:17.424 ******* included: /WORKDIR/git-weekly-ciw0ilxk1p/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-ciw0ilxk1p/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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:43:20 +0000 (0:00:00.022) 0:00:17.447 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:43:20 +0000 (0:00:00.009) 0:00:17.456 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:43:20 +0000 (0:00:00.013) 0:00:17.470 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:43:20 +0000 (0:00:00.012) 0:00:17.483 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:43:20 +0000 (0:00:00.008) 0:00:17.492 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:43:22 +0000 (0:00:01.384) 0:00:18.876 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722688997.9517365, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "55c4fe56c3afc3bf38b00a399820fdfbbd0fa5eb", "ctime": 1722688998.042737, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203928, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722688997.9487364, "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": "4285696901", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:43:22 +0000 (0:00:00.216) 0:00:19.093 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:43:22 +0000 (0:00:00.011) 0:00:19.104 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:43:22 +0000 (0:00:00.016) 0:00:19.120 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:43:22 +0000 (0:00:00.014) 0:00:19.135 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722688997.904736, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0bf133cca32014b8e7475c5cdf1b96fa68a62002", "ctime": 1722688998.0437372, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203927, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722688997.9487364, "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": "4052146778", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:43:22 +0000 (0:00:00.215) 0:00:19.350 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:43:22 +0000 (0:00:00.012) 0:00:19.363 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:43:22 +0000 (0:00:00.017) 0:00:19.380 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "74:38:F9:A8:E8:AB:2D:C6:97:37:6B:15:D2:CC:55:05:C1:1B:C9:36" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B9:A3:8B:E6:01:AE:7D:5A:65:22:CA:97:55:0B:87:F8:9D:5D:78:8F:B8:AA:66:E2:6E:A2:97:7C:0E:2E:CA:54:72:F7:E4:55:E0:86:D0:FE:1D:2C:DE:80:19:8A:3E:61:A1:C1:13:68:BC:F9:D4:5E:77:28:B2:6F:0B:1F:A2:D6:80:7F:50:DD:A9:62:F9:49:A2:97:A5:81:48:20:B1:BF:D4:CD:B3:80:A7:C0:61:FB:B6:77:8F:C0:8A:2B:E0:BF:84:9E:03:0B:9D:E3:4B:62:C3:EE:80:03:78:F2:BD:A8:4D:B1:3B:B7:19:C2:7E:3A:24:03:73:C3:70:B1:66:D2:B5:B8:2E:97:8B:6F:AE:78:16:6A:74:69:CA:72:EA:D6:A8:22:30:34:86:1E:40:DB:06:0D:AB:61:9A:3A:F8:42:15:53:A4:29:9F:76:77:4D:B6:BF:D4:89:1E:9C:10:2B:07:02:98:B6:05:7A:31:4F:37:35:67:1E:5E:56:AA:56:60:AE:EF:15:2F:2E:EB:92:86:DE:CD:5C:BE:1A:2D:91:95:94:44:C6:9D:9C:D9:7F:C3:99:93:99:02:48:65:5F:DC:A5:50:19:C5:09:34:4D:04:9F:00:06:69:5F:64:F4:50:78:25:1F:9C:7E:59:57:DA:C4:7C:84:01:B5:1C:EE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124317Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.318) 0:00:19.699 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "74:38:F9:A8:E8:AB:2D:C6:97:37:6B:15:D2:CC:55:05:C1:1B:C9:36" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B9:A3:8B:E6:01:AE:7D:5A:65:22:CA:97:55:0B:87:F8:9D:5D:78:8F:B8:AA:66:E2:6E:A2:97:7C:0E:2E:CA:54:72:F7:E4:55:E0:86:D0:FE:1D:2C:DE:80:19:8A:3E:61:A1:C1:13:68:BC:F9:D4:5E:77:28:B2:6F:0B:1F:A2:D6:80:7F:50:DD:A9:62:F9:49:A2:97:A5:81:48:20:B1:BF:D4:CD:B3:80:A7:C0:61:FB:B6:77:8F:C0:8A:2B:E0:BF:84:9E:03:0B:9D:E3:4B:62:C3:EE:80:03:78:F2:BD:A8:4D:B1:3B:B7:19:C2:7E:3A:24:03:73:C3:70:B1:66:D2:B5:B8:2E:97:8B:6F:AE:78:16:6A:74:69:CA:72:EA:D6:A8:22:30:34:86:1E:40:DB:06:0D:AB:61:9A:3A:F8:42:15:53:A4:29:9F:76:77:4D:B6:BF:D4:89:1E:9C:10:2B:07:02:98:B6:05:7A:31:4F:37:35:67:1E:5E:56:AA:56:60:AE:EF:15:2F:2E:EB:92:86:DE:CD:5C:BE:1A:2D:91:95:94:44:C6:9D:9C:D9:7F:C3:99:93:99:02:48:65:5F:DC:A5:50:19:C5:09:34:4D:04:9F:00:06:69:5F:64:F4:50:78:25:1F:9C:7E:59:57:DA:C4:7C:84:01:B5:1C:EE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124317Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.010) 0:00:19.710 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.015) 0:00:19.725 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.010) 0:00:19.736 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.015) 0:00:19.751 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.017) 0:00:19.768 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.018) 0:00:19.786 ******* 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.037266", "end": "2024-08-03 12:43:23.433566", "rc": 0, "start": "2024-08-03 12:43:23.396300" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.288) 0:00:20.074 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.016) 0:00:20.091 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.009) 0:00:20.100 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.011) 0:00:20.112 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.010) 0:00:20.123 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:43:23 +0000 (0:00:00.007) 0:00:20.131 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:43:24 +0000 (0:00:01.365) 0:00:21.496 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722688998.49374, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "16c91570b78702247fd0cd08f6b9ebbf29fc3c57", "ctime": 1722688998.625741, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203930, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722688998.49074, "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": "1529176866", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.215) 0:00:21.712 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.014) 0:00:21.726 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.019) 0:00:21.746 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.016) 0:00:21.762 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722688998.4477398, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b4f40abc8bffe0630428ae90711a5792180cc3e5", "ctime": 1722688998.625741, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203929, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722688998.49074, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "1677746030", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.216) 0:00:21.979 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.011) 0:00:21.990 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.016) 0:00:22.007 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "13:F4:83:90:C8:1A:5B:AD:64:B9:37:A3:86:39:6C:7C:A5:BA:B1:A6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "46:7E:1E:3B:3C:C9:03:75:B5:6B:41:3F:EE:1F:C6:B8:A4:1E:E3:7A:C2:42:51:FB:17:EB:FE:36:D5:65:C4:5A:53:F4:37:93:12:A7:E4:28:AE:4F:41:01:92:7B:11:F1:78:16:5D:8C:3A:87:AF:69:50:11:AF:9E:20:A0:7F:25:1F:89:68:C9:57:14:37:AF:D8:83:DB:DC:9A:57:49:B4:88:9F:33:8F:F3:52:D0:35:9A:41:AE:B5:67:C0:B2:97:C1:9D:66:BE:14:18:0A:7C:B3:85:6E:1C:F6:FB:0D:B2:BB:F9:F4:D6:88:9B:22:8D:9F:29:E0:C3:C2:7F:71:10:21:2A:4C:FF:C4:E3:48:73:AE:40:FC:E8:24:BD:88:CD:33:8F:07:95:6A:28:AB:5C:0B:BD:F6:2D:60:FD:44:39:89:3D:22:2D:79:DF:57:5D:62:03:90:F7:03:4C:7D:81:62:9B:51:B7:4B:81:33:0D:A1:A8:C8:AF:07:9A:17:AE:DD:82:A6:27:77:72:9F:E6:43:8B:CA:09:4F:64:90:1C:80:EB:66:5E:CC:C8:B3:77:07:BA:CE:96:46:61:E9:D8:B4:1B:1E:F2:FB:AE:E1:60:8A:8C:1A:EC:71:26:2A:80:27:F4:D5:A4:54:C2:F4:5D:7F:1F:C3:A6:12:EA:7F:E2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124318Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.264) 0:00:22.272 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "13:F4:83:90:C8:1A:5B:AD:64:B9:37:A3:86:39:6C:7C:A5:BA:B1:A6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "46:7E:1E:3B:3C:C9:03:75:B5:6B:41:3F:EE:1F:C6:B8:A4:1E:E3:7A:C2:42:51:FB:17:EB:FE:36:D5:65:C4:5A:53:F4:37:93:12:A7:E4:28:AE:4F:41:01:92:7B:11:F1:78:16:5D:8C:3A:87:AF:69:50:11:AF:9E:20:A0:7F:25:1F:89:68:C9:57:14:37:AF:D8:83:DB:DC:9A:57:49:B4:88:9F:33:8F:F3:52:D0:35:9A:41:AE:B5:67:C0:B2:97:C1:9D:66:BE:14:18:0A:7C:B3:85:6E:1C:F6:FB:0D:B2:BB:F9:F4:D6:88:9B:22:8D:9F:29:E0:C3:C2:7F:71:10:21:2A:4C:FF:C4:E3:48:73:AE:40:FC:E8:24:BD:88:CD:33:8F:07:95:6A:28:AB:5C:0B:BD:F6:2D:60:FD:44:39:89:3D:22:2D:79:DF:57:5D:62:03:90:F7:03:4C:7D:81:62:9B:51:B7:4B:81:33:0D:A1:A8:C8:AF:07:9A:17:AE:DD:82:A6:27:77:72:9F:E6:43:8B:CA:09:4F:64:90:1C:80:EB:66:5E:CC:C8:B3:77:07:BA:CE:96:46:61:E9:D8:B4:1B:1E:F2:FB:AE:E1:60:8A:8C:1A:EC:71:26:2A:80:27:F4:D5:A4:54:C2:F4:5D:7F:1F:C3:A6:12:EA:7F:E2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124318Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.012) 0:00:22.284 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.016) 0:00:22.301 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.010) 0:00:22.312 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.014) 0:00:22.326 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.018) 0:00:22.344 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.019) 0:00:22.364 ******* 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.037806", "end": "2024-08-03 12:43:25.963055", "rc": 0, "start": "2024-08-03 12:43:25.925249" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:43:25 +0000 (0:00:00.242) 0:00:22.607 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:67 Saturday 03 August 2024 12:43:26 +0000 (0:00:00.026) 0:00:22.633 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 03 August 2024 12:43:28 +0000 (0:00:02.273) 0:00:24.907 ******* included: /WORKDIR/git-weekly-ciw0ilxk1p/.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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 12:43:28 +0000 (0:00:00.011) 0:00:24.919 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 03 August 2024 12:43:28 +0000 (0:00:00.014) 0:00:24.933 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 03 August 2024 12:43:28 +0000 (0:00:00.011) 0:00:24.945 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 03 August 2024 12:43:28 +0000 (0:00:00.011) 0:00:24.956 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [sut] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 03 August 2024 12:43:28 +0000 (0:00:00.023) 0:00:24.979 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 03 August 2024 12:43:29 +0000 (0:00:01.377) 0:00:26.357 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 03 August 2024 12:43:31 +0000 (0:00:01.395) 0:00:27.753 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 03 August 2024 12:43:31 +0000 (0:00:00.234) 0:00:27.987 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 03 August 2024 12:43:31 +0000 (0:00:00.230) 0:00:28.217 ******* 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:43:17 UTC", "ActiveEnterTimestampMonotonic": "458793080", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target sysinit.target network.target systemd-journald.socket basic.target dbus.socket system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-03 12:43:17 UTC", "AssertTimestampMonotonic": "458770540", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "676562000", "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:43:17 UTC", "ConditionTimestampMonotonic": "458770537", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "6999", "ControlPID": "0", "CoredumpFilter": "0x33", "CoredumpReceive": "no", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "5627", "ExecMainStartTimestamp": "Sat 2024-08-03 12:43:17 UTC", "ExecMainStartTimestampMonotonic": "458777075", "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:43:17 UTC] ; stop_time=[n/a] ; pid=5627 ; 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:43:17 UTC] ; stop_time=[n/a] ; pid=5627 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-03 12:43:17 UTC", "InactiveExitTimestampMonotonic": "458777300", "InvocationID": "56ce381df23545498e7d482e24e24b5b", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14724", "LimitNPROCSoft": "14724", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14724", "LimitSIGPENDINGSoft": "14724", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "5627", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3451117568", "MemoryCurrent": "4022272", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "10788864", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "0", "MemorySwapMax": "infinity", "MemorySwapPeak": "0", "MemoryZSwapCurrent": "0", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "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", "SetLoginEnvironment": "no", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StartupMemoryHigh": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Sat 2024-08-03 12:43:17 UTC", "StateChangeTimestampMonotonic": "458793080", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "4417", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 03 August 2024 12:43:31 +0000 (0:00:00.384) 0:00:28.602 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 03 August 2024 12:43:33 +0000 (0:00:01.396) 0:00:29.998 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 03 August 2024 12:43:33 +0000 (0:00:00.026) 0:00:30.025 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 03 August 2024 12:43:33 +0000 (0:00:00.013) 0:00:30.039 ******* 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-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 03 August 2024 12:43:33 +0000 (0:00:00.014) 0:00:30.053 ******* 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-ciw0ilxk1p/tests/tests_fs_attrs.yml:85 Saturday 03 August 2024 12:43:33 +0000 (0:00:00.025) 0:00:30.079 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:112 Saturday 03 August 2024 12:43:35 +0000 (0:00:02.092) 0:00:32.171 ******* included: /WORKDIR/git-weekly-ciw0ilxk1p/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-ciw0ilxk1p/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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:43:35 +0000 (0:00:00.022) 0:00:32.193 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:43:35 +0000 (0:00:00.010) 0:00:32.204 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:43:35 +0000 (0:00:00.013) 0:00:32.217 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:43:35 +0000 (0:00:00.010) 0:00:32.228 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:43:35 +0000 (0:00:00.007) 0:00:32.236 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:43:36 +0000 (0:00:01.371) 0:00:33.607 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689012.490835, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "703c2953219714d1d6364fb93edd85fb562759b4", "ctime": 1722689012.5528352, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203932, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722689012.487835, "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": "1331844188", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.229) 0:00:33.836 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.014) 0:00:33.850 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.017) 0:00:33.868 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.021) 0:00:33.890 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689012.4438345, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "021cee2e2db260171968bbb8a7eb11cae1b3a6ce", "ctime": 1722689012.5538354, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203931, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722689012.487835, "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": "1985299228", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.218) 0:00:34.108 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.019) 0:00:34.127 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.019) 0:00:34.147 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "52:5E:4C:96:BF:80:FC:43:3A:2A:72:9D:41:19:EB:DB:C5:24:9E:F7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3F:E3:AF:F8:15:F0:88:70:9C:26:21:F7:B1:A1:7A:4F:C4:A2:11:D7:EA:4E:00:5F:98:00:43:8E:BC:4C:97:30:72:D8:4A:AA:DA:4A:26:EE:C4:6D:88:50:4A:A0:B8:8D:61:FB:75:0A:32:61:55:02:D6:8E:12:E3:A9:93:3E:6A:05:6C:DC:17:E9:7E:69:83:1C:A4:70:BD:C0:DC:15:9B:4E:76:55:28:B6:DA:19:0E:3D:65:D8:7A:F9:6B:9C:CD:C7:39:AC:B3:82:4E:5D:54:C5:BC:EA:CC:67:4B:B5:38:FF:71:98:06:D9:D9:F6:36:78:D8:19:B5:D0:CC:88:87:9B:FD:02:CB:5B:A6:4B:6C:61:45:B3:78:4E:DB:28:8B:69:23:FB:BF:0E:C0:E6:AF:53:39:8A:D6:EC:12:2E:9A:39:C1:AA:04:55:89:4B:A1:EE:C7:A2:F7:AF:9F:1D:99:E5:BF:20:A8:CB:A6:A5:BA:B4:CF:4C:A3:F0:F2:38:3F:0A:8E:1E:D2:AE:D2:E0:91:34:B4:C4:4B:23:DB:CF:8C:56:1A:2A:82:1C:CF:7F:57:C4:4D:3F:21:C0:4B:72:25:85:27:41:45:30:6C:D6:75:88:AA:51:A4:5D:24:9F:F8:A7:40:C2:F4:C9:78:C9:7D:95:B9:E7:7A:B5:30:2B:01" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124332Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.259) 0:00:34.406 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "52:5E:4C:96:BF:80:FC:43:3A:2A:72:9D:41:19:EB:DB:C5:24:9E:F7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3F:E3:AF:F8:15:F0:88:70:9C:26:21:F7:B1:A1:7A:4F:C4:A2:11:D7:EA:4E:00:5F:98:00:43:8E:BC:4C:97:30:72:D8:4A:AA:DA:4A:26:EE:C4:6D:88:50:4A:A0:B8:8D:61:FB:75:0A:32:61:55:02:D6:8E:12:E3:A9:93:3E:6A:05:6C:DC:17:E9:7E:69:83:1C:A4:70:BD:C0:DC:15:9B:4E:76:55:28:B6:DA:19:0E:3D:65:D8:7A:F9:6B:9C:CD:C7:39:AC:B3:82:4E:5D:54:C5:BC:EA:CC:67:4B:B5:38:FF:71:98:06:D9:D9:F6:36:78:D8:19:B5:D0:CC:88:87:9B:FD:02:CB:5B:A6:4B:6C:61:45:B3:78:4E:DB:28:8B:69:23:FB:BF:0E:C0:E6:AF:53:39:8A:D6:EC:12:2E:9A:39:C1:AA:04:55:89:4B:A1:EE:C7:A2:F7:AF:9F:1D:99:E5:BF:20:A8:CB:A6:A5:BA:B4:CF:4C:A3:F0:F2:38:3F:0A:8E:1E:D2:AE:D2:E0:91:34:B4:C4:4B:23:DB:CF:8C:56:1A:2A:82:1C:CF:7F:57:C4:4D:3F:21:C0:4B:72:25:85:27:41:45:30:6C:D6:75:88:AA:51:A4:5D:24:9F:F8:A7:40:C2:F4:C9:78:C9:7D:95:B9:E7:7A:B5:30:2B:01" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124332Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.012) 0:00:34.418 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.019) 0:00:34.437 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.014) 0:00:34.452 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.017) 0:00:34.469 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.022) 0:00:34.492 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:43:37 +0000 (0:00:00.017) 0:00:34.510 ******* 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.040446", "end": "2024-08-03 12:43:38.115579", "rc": 0, "start": "2024-08-03 12:43:38.075133" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:43:38 +0000 (0:00:00.248) 0:00:34.759 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:43:38 +0000 (0:00:00.019) 0:00:34.778 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:43:38 +0000 (0:00:00.008) 0:00:34.787 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:43:38 +0000 (0:00:00.012) 0:00:34.799 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:43:38 +0000 (0:00:00.012) 0:00:34.812 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 12:43:38 +0000 (0:00:00.009) 0:00:34.821 ******* 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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 12:43:39 +0000 (0:00:01.391) 0:00:36.212 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689013.2088397, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9ea402834190b896af71942193f01f10497f512f", "ctime": 1722689013.2058396, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203934, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722689013.2058396, "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": "2495935269", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 12:43:39 +0000 (0:00:00.213) 0:00:36.426 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 12:43:39 +0000 (0:00:00.012) 0:00:36.438 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 12:43:39 +0000 (0:00:00.017) 0:00:36.456 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 12:43:39 +0000 (0:00:00.015) 0:00:36.472 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689013.1608393, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d58039c80f6a821beb6bd819eb782487cce29d29", "ctime": 1722689013.2058396, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203933, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722689013.2058396, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1700, "uid": 0, "version": "3941724188", "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-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.215) 0:00:36.687 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.012) 0:00:36.699 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.017) 0:00:36.716 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "01:43:BF:98:81:58:FC:32:BD:98:B7:66:C8:A6:B9:F5:A1:5C:C0:11" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5A:94:6C:67:17:F7:39:33:22:18:BC:1B:41:34:33:74:4D:FF:D2:E5:C4:9F:F3:29:97:06:59:3B:1A:F0:A1:F9:6B:A8:D8:59:AC:AB:84:1B:69:C5:1D:F9:56:F1:33:F4:E6:CA:8A:19:D7:E9:CD:2B:99:DA:7D:11:5F:AC:C4:D9:11:B8:6F:87:82:95:E2:2B:43:99:67:20:92:0D:AC:E5:0F:35:17:30:F1:AC:30:A7:5B:E9:19:1B:BB:18:9E:C9:7D:A3:ED:F7:ED:25:A6:63:51:07:EB:D4:EA:D1:37:7C:2A:FA:73:01:F3:DF:2B:F2:B7:E4:6A:18:85:45:20:9A:00:98:AE:59:7F:00:DC:BB:4A:32:98:9E:E8:E8:28:B4:68:A6:4A:58:AA:53:C5:B1:03:B6:94:66:F8:81:6B:59:71:F3:A5:72:02:22:BC:DE:B3:82:58:C9:8C:3F:09:74:89:49:A1:88:D6:2E:24:6D:9C:4C:30:BC:40:D6:16:82:D7:5A:A8:38:0F:D4:6C:1D:A3:73:35:C2:B4:01:0F:B3:11:D0:AE:9C:AD:80:26:75:0F:F9:E1:1E:60:FB:21:87:36:F5:BA:05:49:7D:2C:B8:1E:19:08:8B:D4:1F:A6:05:F0:AF:97:0A:E8:F1:DF:CA:B2:A4:E6:D0:C2:51:D9:65" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124333Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.262) 0:00:36.979 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C6:B3:B7:DE:29:6A:BB:F6:4D:42:B6:75:B9:FF:37:C2:B8:27:2C:14" }, "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": "01:43:BF:98:81:58:FC:32:BD:98:B7:66:C8:A6:B9:F5:A1:5C:C0:11" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5A:94:6C:67:17:F7:39:33:22:18:BC:1B:41:34:33:74:4D:FF:D2:E5:C4:9F:F3:29:97:06:59:3B:1A:F0:A1:F9:6B:A8:D8:59:AC:AB:84:1B:69:C5:1D:F9:56:F1:33:F4:E6:CA:8A:19:D7:E9:CD:2B:99:DA:7D:11:5F:AC:C4:D9:11:B8:6F:87:82:95:E2:2B:43:99:67:20:92:0D:AC:E5:0F:35:17:30:F1:AC:30:A7:5B:E9:19:1B:BB:18:9E:C9:7D:A3:ED:F7:ED:25:A6:63:51:07:EB:D4:EA:D1:37:7C:2A:FA:73:01:F3:DF:2B:F2:B7:E4:6A:18:85:45:20:9A:00:98:AE:59:7F:00:DC:BB:4A:32:98:9E:E8:E8:28:B4:68:A6:4A:58:AA:53:C5:B1:03:B6:94:66:F8:81:6B:59:71:F3:A5:72:02:22:BC:DE:B3:82:58:C9:8C:3F:09:74:89:49:A1:88:D6:2E:24:6D:9C:4C:30:BC:40:D6:16:82:D7:5A:A8:38:0F:D4:6C:1D:A3:73:35:C2:B4:01:0F:B3:11:D0:AE:9C:AD:80:26:75:0F:F9:E1:1E:60:FB:21:87:36:F5:BA:05:49:7D:2C:B8:1E:19:08:8B:D4:1F:A6:05:F0:AF:97:0A:E8:F1:DF:CA:B2:A4:E6:D0:C2:51:D9:65" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124317Z", "not_valid_before": "20240803124333Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.011) 0:00:36.990 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.016) 0:00:37.007 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.012) 0:00:37.019 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.015) 0:00:37.034 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.017) 0:00:37.052 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.015) 0:00:37.068 ******* 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.039706", "end": "2024-08-03 12:43:40.666732", "rc": 0, "start": "2024-08-03 12:43:40.627026" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 12:43:40 +0000 (0:00:00.240) 0:00:37.308 ******* 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:43:40 +0000 (0:00:00.024) 0:00:37.333 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.61s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.53s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Gathering Facts --------------------------------------------------------- 2.39s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 2.27s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 2.09s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 2.07s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 2.02s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:14 -------------------- fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.40s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.40s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 1.39s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.38s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.38s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.37s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.37s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.27s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.84s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure user exists ------------------------------------------------------ 0.40s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.38s /WORKDIR/git-weekly-ciw0ilxk1p/.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.32s /WORKDIR/git-weekly-ciw0ilxk1p/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.32s /WORKDIR/git-weekly-ciw0ilxk1p/tests/tasks/assert_certificate_parameters.yml:86 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Platform linux on host sut is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ---^---^---^---^---^---