# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 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.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:2 Saturday 27 July 2024 12:49:34 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:5 Saturday 27 July 2024 12:49:34 +0000 (0:00:00.680) 0:00:00.692 ********* 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-ci5k0m79mk/tests/tests_fs_attrs.yml:9 Saturday 27 July 2024 12:49:35 +0000 (0:00:00.424) 0:00:01.117 ********* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:14 Saturday 27 July 2024 12:49:35 +0000 (0:00:00.498) 0:00:01.615 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 27 July 2024 12:49:36 +0000 (0:00:00.554) 0:00:02.169 ********* included: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 12:49:36 +0000 (0:00:00.017) 0:00:02.187 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 27 July 2024 12:49:36 +0000 (0:00:00.025) 0:00:02.212 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 27 July 2024 12:49:36 +0000 (0:00:00.231) 0:00:02.443 ********* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 27 July 2024 12:49:36 +0000 (0:00:00.019) 0:00:02.463 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 27 July 2024 12:49:36 +0000 (0:00:00.032) 0:00:02.495 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 27 July 2024 12:49:40 +0000 (0:00:03.967) 0:00:06.463 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-packaging-20.9-5.el9.noarch", "Installed: python3-pyparsing-2.4.7-9.el9.noarch", "Installed: certmonger-0.79.17-2.el9.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 27 July 2024 12:49:43 +0000 (0:00:02.545) 0:00:09.009 ********* 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 27 July 2024 12:49:43 +0000 (0:00:00.264) 0:00:09.273 ********* 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 27 July 2024 12:49:43 +0000 (0:00:00.201) 0:00:09.475 ********* 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": "basic.target systemd-journald.socket dbus.socket system.slice sysinit.target dbus-broker.service network.target syslog.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13964", "LimitNPROCSoft": "13964", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13964", "LimitSIGPENDINGSoft": "13964", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22342", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 27 July 2024 12:49:44 +0000 (0:00:00.662) 0:00:10.137 ********* 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 [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 27 July 2024 12:49:45 +0000 (0:00:01.219) 0:00:11.357 ********* 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, "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, "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, "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, "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, "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, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 27 July 2024 12:49:45 +0000 (0:00:00.031) 0:00:11.388 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 27 July 2024 12:49:45 +0000 (0:00:00.016) 0:00:11.405 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 27 July 2024 12:49:45 +0000 (0:00:00.017) 0:00:11.422 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:32 Saturday 27 July 2024 12:49:45 +0000 (0:00:00.019) 0:00:11.442 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:61 Saturday 27 July 2024 12:49:46 +0000 (0:00:00.469) 0:00:11.911 ********* included: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 12:49:46 +0000 (0:00:00.033) 0:00:11.945 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 12:49:46 +0000 (0:00:00.007) 0:00:11.952 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 12:49:46 +0000 (0:00:00.017) 0:00:11.969 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 12:49:46 +0000 (0:00:00.017) 0:00:11.986 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 12:49:46 +0000 (0:00:00.017) 0:00:12.004 ********* 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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 12:49:46 +0000 (0:00:00.851) 0:00:12.855 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084584.7690766, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bdd7c7425846b0eef18c24a185c7028bac843744", "ctime": 1722084584.8970768, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4605960, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722084584.7660766, "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": "447426898", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.189) 0:00:13.045 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.021) 0:00:13.066 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.023) 0:00:13.090 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.020) 0:00:13.110 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084584.7140763, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "abfb104d9db395feacf8ce92ad5255fcefff97d5", "ctime": 1722084584.8980768, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2379810, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722084584.7660766, "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": "3203760647", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.187) 0:00:13.298 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.019) 0:00:13.317 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.020) 0:00:13.338 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "39:A9:FE:91:82:DC:2A:88:C3:3F:86:72:71:77:74:60:5E:69:21:01" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0E:42:E7:28:54:49:04:B5:A5:FF:79:DC:9E:26:EB:AE:85:BC:46:C6:B8:83:5F:DD:5B:31:63:E9:95:BF:4F:90:9A:10:AF:C5:F1:41:35:7E:EA:0B:FE:28:F6:DB:52:1E:83:BE:86:0C:64:73:7A:06:E7:91:BB:22:F3:6A:E2:69:2E:63:FC:49:F0:CC:51:3D:E2:33:B9:0E:02:00:0A:E8:17:DF:35:88:AC:C0:E6:FD:12:54:E0:11:71:F9:94:E4:8D:34:29:77:E0:47:55:D1:C6:C0:8B:6B:0D:E4:2A:3A:E9:F8:92:0E:82:F8:D0:68:CB:E0:81:BD:FE:04:3B:4A:85:AA:A1:70:76:16:94:91:B2:06:FF:97:77:A2:71:D0:0C:48:4F:04:17:38:48:65:0F:75:CA:B0:6D:9B:48:97:F6:32:CC:A1:E3:54:0D:5E:00:ED:AF:7B:9C:35:56:4A:C1:7C:C8:BE:29:02:BF:0E:50:52:4C:50:96:27:13:70:29:D1:E2:DB:22:83:25:C1:B3:95:73:02:B6:8E:0D:5E:75:B4:A2:32:83:62:A9:52:AA:8A:1B:8C:69:0E:1E:A3:75:51:9C:55:0E:80:85:09:89:D8:D1:D6:4D:85:5F:99:C3:8B:21:63:FC:13:C3:C8:5B:2A:2E:35:FB:EE:DA:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124944Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.291) 0:00:13.629 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "39:A9:FE:91:82:DC:2A:88:C3:3F:86:72:71:77:74:60:5E:69:21:01" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0E:42:E7:28:54:49:04:B5:A5:FF:79:DC:9E:26:EB:AE:85:BC:46:C6:B8:83:5F:DD:5B:31:63:E9:95:BF:4F:90:9A:10:AF:C5:F1:41:35:7E:EA:0B:FE:28:F6:DB:52:1E:83:BE:86:0C:64:73:7A:06:E7:91:BB:22:F3:6A:E2:69:2E:63:FC:49:F0:CC:51:3D:E2:33:B9:0E:02:00:0A:E8:17:DF:35:88:AC:C0:E6:FD:12:54:E0:11:71:F9:94:E4:8D:34:29:77:E0:47:55:D1:C6:C0:8B:6B:0D:E4:2A:3A:E9:F8:92:0E:82:F8:D0:68:CB:E0:81:BD:FE:04:3B:4A:85:AA:A1:70:76:16:94:91:B2:06:FF:97:77:A2:71:D0:0C:48:4F:04:17:38:48:65:0F:75:CA:B0:6D:9B:48:97:F6:32:CC:A1:E3:54:0D:5E:00:ED:AF:7B:9C:35:56:4A:C1:7C:C8:BE:29:02:BF:0E:50:52:4C:50:96:27:13:70:29:D1:E2:DB:22:83:25:C1:B3:95:73:02:B6:8E:0D:5E:75:B4:A2:32:83:62:A9:52:AA:8A:1B:8C:69:0E:1E:A3:75:51:9C:55:0E:80:85:09:89:D8:D1:D6:4D:85:5F:99:C3:8B:21:63:FC:13:C3:C8:5B:2A:2E:35:FB:EE:DA:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124944Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.018) 0:00:13.648 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.019) 0:00:13.667 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.019) 0:00:13.687 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.019) 0:00:13.706 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.022) 0:00:13.728 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 12:49:47 +0000 (0:00:00.021) 0:00:13.750 ********* 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.038002", "end": "2024-07-27 12:49:48.116076", "rc": 0, "start": "2024-07-27 12:49:48.078074" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 12:49:48 +0000 (0:00:00.277) 0:00:14.028 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 12:49:48 +0000 (0:00:00.020) 0:00:14.048 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 12:49:48 +0000 (0:00:00.008) 0:00:14.057 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 12:49:48 +0000 (0:00:00.017) 0:00:14.074 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 12:49:48 +0000 (0:00:00.016) 0:00:14.091 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 12:49:48 +0000 (0:00:00.017) 0:00:14.108 ********* 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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.826) 0:00:14.934 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084585.3200781, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1c11b6091eb8bbb150e7ac150230fc96f4efde31", "ctime": 1722084585.4350784, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 4605961, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722084585.317078, "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": "1793116011", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.185) 0:00:15.120 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.019) 0:00:15.140 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.021) 0:00:15.161 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.019) 0:00:15.180 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084585.269078, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0e14dd266b32d3081b4d374d4e33814e4e1f11b5", "ctime": 1722084585.4350784, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 2379907, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722084585.317078, "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": "2540785155", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.185) 0:00:15.365 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.019) 0:00:15.385 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.022) 0:00:15.407 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "02:00:1E:6D:18:7D:51:00:FC:83:42:00:41:0C:BA:49:27:2D:5C:6C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1F:68:79:D0:EE:F3:1C:62:F1:BF:A6:93:BD:6C:8F:80:75:3C:37:A1:8A:2A:73:46:DD:CA:E4:BF:EB:51:7B:C0:75:57:33:AF:3B:2B:18:80:F8:61:FF:0A:D6:17:F0:70:31:2D:CE:DD:B4:9F:F9:6C:15:43:B3:46:37:89:5F:40:A1:EE:2E:5A:1F:76:08:71:60:60:E9:98:A7:0D:B8:94:EA:0A:2E:3E:DD:9E:5E:33:6F:D7:2B:A5:36:D0:11:06:97:78:89:CF:79:5B:E1:5E:13:24:95:7E:15:5A:CC:AE:2D:C9:56:E0:8C:2F:E1:55:F9:96:CF:A3:0C:F2:0F:55:18:A3:4B:3A:1B:C6:E3:5B:24:8E:9F:95:CB:A9:64:D7:AD:29:62:1B:69:D0:84:E4:F5:9C:91:6E:A6:04:35:CF:6D:76:1C:F7:87:AA:F6:E2:FE:33:DC:59:DF:38:D2:FE:D5:F2:1C:E8:A1:CB:FC:E8:FF:FA:97:B8:48:B9:FD:34:65:2E:55:33:28:5E:40:56:64:FE:90:FB:F2:4E:E2:42:F7:F5:EA:3B:AA:43:DF:F3:AB:0F:05:1B:6B:8A:61:03:45:77:9D:B5:3E:0A:8F:02:8E:F0:3B:5C:8B:D1:99:B2:5E:30:D1:FD:4B:35:3B:50:35:7A:0D:97:73:10:22:12" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124945Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.220) 0:00:15.628 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "02:00:1E:6D:18:7D:51:00:FC:83:42:00:41:0C:BA:49:27:2D:5C:6C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1F:68:79:D0:EE:F3:1C:62:F1:BF:A6:93:BD:6C:8F:80:75:3C:37:A1:8A:2A:73:46:DD:CA:E4:BF:EB:51:7B:C0:75:57:33:AF:3B:2B:18:80:F8:61:FF:0A:D6:17:F0:70:31:2D:CE:DD:B4:9F:F9:6C:15:43:B3:46:37:89:5F:40:A1:EE:2E:5A:1F:76:08:71:60:60:E9:98:A7:0D:B8:94:EA:0A:2E:3E:DD:9E:5E:33:6F:D7:2B:A5:36:D0:11:06:97:78:89:CF:79:5B:E1:5E:13:24:95:7E:15:5A:CC:AE:2D:C9:56:E0:8C:2F:E1:55:F9:96:CF:A3:0C:F2:0F:55:18:A3:4B:3A:1B:C6:E3:5B:24:8E:9F:95:CB:A9:64:D7:AD:29:62:1B:69:D0:84:E4:F5:9C:91:6E:A6:04:35:CF:6D:76:1C:F7:87:AA:F6:E2:FE:33:DC:59:DF:38:D2:FE:D5:F2:1C:E8:A1:CB:FC:E8:FF:FA:97:B8:48:B9:FD:34:65:2E:55:33:28:5E:40:56:64:FE:90:FB:F2:4E:E2:42:F7:F5:EA:3B:AA:43:DF:F3:AB:0F:05:1B:6B:8A:61:03:45:77:9D:B5:3E:0A:8F:02:8E:F0:3B:5C:8B:D1:99:B2:5E:30:D1:FD:4B:35:3B:50:35:7A:0D:97:73:10:22:12" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124945Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.020) 0:00:15.648 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.021) 0:00:15.669 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.022) 0:00:15.691 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.022) 0:00:15.713 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.023) 0:00:15.737 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 12:49:49 +0000 (0:00:00.024) 0:00:15.762 ********* 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.039374", "end": "2024-07-27 12:49:50.064806", "rc": 0, "start": "2024-07-27 12:49:50.025432" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.213) 0:00:15.975 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:67 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.023) 0:00:15.999 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.461) 0:00:16.460 ********* included: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.011) 0:00:16.472 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.018) 0:00:16.490 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.017) 0:00:16.508 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.017) 0:00:16.525 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 27 July 2024 12:49:50 +0000 (0:00:00.032) 0:00:16.557 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 27 July 2024 12:49:51 +0000 (0:00:00.862) 0:00:17.420 ********* 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 [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 27 July 2024 12:49:52 +0000 (0:00:00.860) 0:00:18.281 ********* 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 27 July 2024 12:49:52 +0000 (0:00:00.194) 0:00:18.475 ********* 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 27 July 2024 12:49:52 +0000 (0:00:00.203) 0:00:18.679 ********* 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-07-27 12:49:44 UTC", "ActiveEnterTimestampMonotonic": "459188301", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service basic.target system.slice systemd-journald.socket syslog.target network.target sysinit.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-27 12:49:44 UTC", "AssertTimestampMonotonic": "459173721", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "737264000", "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-07-27 12:49:44 UTC", "ConditionTimestampMonotonic": "459173718", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4487", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9055", "ExecMainStartTimestamp": "Sat 2024-07-27 12:49:44 UTC", "ExecMainStartTimestampMonotonic": "459180104", "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-07-27 12:49:44 UTC] ; stop_time=[n/a] ; pid=9055 ; 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-07-27 12:49:44 UTC] ; stop_time=[n/a] ; pid=9055 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-07-27 12:49:44 UTC", "InactiveExitTimestampMonotonic": "459180389", "InvocationID": "33b790a710224547a9f8577252c64eb0", "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": "13964", "LimitNPROCSoft": "13964", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13964", "LimitSIGPENDINGSoft": "13964", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9055", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4366336", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-07-27 12:49:44 UTC", "StateChangeTimestampMonotonic": "459188301", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22342", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "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 [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 27 July 2024 12:49:53 +0000 (0:00:00.309) 0:00:18.988 ********* 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 [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 27 July 2024 12:49:54 +0000 (0:00:01.208) 0:00:20.196 ********* 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, "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, "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, "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, "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, "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, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.033) 0:00:20.230 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.017) 0:00:20.247 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.017) 0:00:20.264 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:85 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.020) 0:00:20.285 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:112 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.464) 0:00:20.749 ********* included: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.035) 0:00:20.784 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.009) 0:00:20.794 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.018) 0:00:20.812 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.018) 0:00:20.830 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 12:49:54 +0000 (0:00:00.017) 0:00:20.848 ********* 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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 12:49:55 +0000 (0:00:00.834) 0:00:21.682 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084593.5051022, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "93e8e3789825d947a6abdd1d25c4f07b055406ae", "ctime": 1722084593.6291025, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4605962, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722084593.503102, "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": "3284426033", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 12:49:55 +0000 (0:00:00.184) 0:00:21.866 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 12:49:55 +0000 (0:00:00.020) 0:00:21.887 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.021) 0:00:21.909 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.019) 0:00:21.928 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084593.454102, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bb3c796298d5060538e0f30fd29fe6dc5f9a784b", "ctime": 1722084593.6291025, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2379909, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722084593.503102, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "2074620580", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.180) 0:00:22.108 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.019) 0:00:22.128 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.022) 0:00:22.151 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "47:86:3C:74:EE:A9:7E:61:9C:A2:DD:79:55:8E:A3:B5:CE:76:7F:7A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2F:A0:FB:1F:0A:65:CB:08:71:59:A4:A5:31:C2:7D:73:44:A2:44:00:6F:DA:D1:8D:05:DE:58:8A:2B:C1:91:03:19:76:0D:B2:22:39:4B:EB:0C:F8:6F:E2:65:B0:B5:D2:7D:9C:A4:2B:3D:B0:36:CC:51:6D:38:CF:B6:4B:17:BE:97:D3:E6:6A:B0:C5:46:22:CA:84:84:40:5E:D0:C0:4A:2E:A4:5A:7C:02:5D:9F:20:BC:C1:95:2B:39:D7:88:27:06:46:DB:CC:64:8C:48:0F:8C:2B:04:B6:58:74:83:C5:1C:BF:22:23:46:D6:71:CE:D8:5C:E0:E1:A9:6F:2F:98:8F:42:29:9D:B8:76:6E:56:3C:32:6C:CF:27:75:49:66:4E:F7:3C:83:1D:72:DE:4A:D2:42:FE:77:FB:39:57:90:73:1D:5B:38:C5:02:FA:92:62:89:D2:E6:68:69:01:0C:82:18:77:C0:FE:FB:0E:E9:4E:50:9F:1A:0B:8C:FB:2E:E7:7C:29:50:35:B2:65:07:5F:0C:E2:44:0D:BB:2F:05:EF:87:33:77:C4:5C:68:DC:29:EA:C5:4B:E1:72:33:4A:97:A5:E2:98:B6:24:CC:A5:4E:05:71:8C:A2:24:7C:1B:77:B6:14:36:1E:45:30:D9:6F:E9:82:AA:F0:26:B0:CA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124953Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.226) 0:00:22.377 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "47:86:3C:74:EE:A9:7E:61:9C:A2:DD:79:55:8E:A3:B5:CE:76:7F:7A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2F:A0:FB:1F:0A:65:CB:08:71:59:A4:A5:31:C2:7D:73:44:A2:44:00:6F:DA:D1:8D:05:DE:58:8A:2B:C1:91:03:19:76:0D:B2:22:39:4B:EB:0C:F8:6F:E2:65:B0:B5:D2:7D:9C:A4:2B:3D:B0:36:CC:51:6D:38:CF:B6:4B:17:BE:97:D3:E6:6A:B0:C5:46:22:CA:84:84:40:5E:D0:C0:4A:2E:A4:5A:7C:02:5D:9F:20:BC:C1:95:2B:39:D7:88:27:06:46:DB:CC:64:8C:48:0F:8C:2B:04:B6:58:74:83:C5:1C:BF:22:23:46:D6:71:CE:D8:5C:E0:E1:A9:6F:2F:98:8F:42:29:9D:B8:76:6E:56:3C:32:6C:CF:27:75:49:66:4E:F7:3C:83:1D:72:DE:4A:D2:42:FE:77:FB:39:57:90:73:1D:5B:38:C5:02:FA:92:62:89:D2:E6:68:69:01:0C:82:18:77:C0:FE:FB:0E:E9:4E:50:9F:1A:0B:8C:FB:2E:E7:7C:29:50:35:B2:65:07:5F:0C:E2:44:0D:BB:2F:05:EF:87:33:77:C4:5C:68:DC:29:EA:C5:4B:E1:72:33:4A:97:A5:E2:98:B6:24:CC:A5:4E:05:71:8C:A2:24:7C:1B:77:B6:14:36:1E:45:30:D9:6F:E9:82:AA:F0:26:B0:CA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124953Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.019) 0:00:22.397 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.020) 0:00:22.417 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.019) 0:00:22.436 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.019) 0:00:22.455 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.024) 0:00:22.480 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.023) 0:00:22.503 ********* 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.041749", "end": "2024-07-27 12:49:56.808986", "rc": 0, "start": "2024-07-27 12:49:56.767237" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.216) 0:00:22.720 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.021) 0:00:22.742 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.008) 0:00:22.751 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.020) 0:00:22.771 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.020) 0:00:22.791 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 12:49:56 +0000 (0:00:00.021) 0:00:22.813 ********* 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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 12:49:57 +0000 (0:00:00.842) 0:00:23.655 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084594.1941042, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6cff7835bc323fb0a2b54557d22c2c15ac31f261", "ctime": 1722084594.1911042, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4605963, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722084594.1911042, "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": "3868165303", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 12:49:57 +0000 (0:00:00.187) 0:00:23.842 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 12:49:57 +0000 (0:00:00.023) 0:00:23.866 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 12:49:57 +0000 (0:00:00.024) 0:00:23.890 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.030) 0:00:23.921 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722084594.143104, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f3c703b407af40d95de634446368ef897a783ed3", "ctime": 1722084594.1911042, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2379910, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722084594.1911042, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2044422714", "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-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.209) 0:00:24.130 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.020) 0:00:24.151 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.030) 0:00:24.182 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "E5:81:A2:D9:2B:20:DB:01:39:D9:3F:46:69:7C:DD:B3:E1:21:9C:A2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "06:8B:1B:E7:51:78:78:BC:CF:9F:52:F4:87:EC:81:39:9C:E0:4C:0D:AD:3A:39:9B:06:02:36:AD:77:75:0A:D3:18:D5:48:EC:E7:90:6C:A1:8B:C3:F9:A7:65:23:0D:5E:12:D3:23:88:21:81:E3:E9:AD:E1:94:3C:2E:56:76:FB:67:4F:33:AB:1D:6C:BD:1B:72:E8:2E:16:D6:A6:FF:21:A0:A6:14:3D:FF:8F:A3:A8:87:B2:EB:2C:C0:9A:4F:CA:53:F5:F6:02:C4:F3:DC:B9:91:8A:D5:CF:13:CE:C4:69:28:BE:DB:F3:AE:F6:9B:5C:69:7C:E8:16:CD:76:9E:7D:89:F5:12:E9:17:27:BB:D3:0E:14:76:C6:F2:C1:AF:A4:74:FB:17:48:9B:C3:58:52:4E:3B:F6:F9:1B:B8:67:39:77:D4:A1:61:EC:AB:75:82:AD:4B:40:A9:B9:D5:02:FA:50:32:C3:D9:AE:73:59:FF:E5:B9:0D:73:08:EB:42:25:21:AB:48:87:F8:A5:B5:87:22:91:36:66:48:03:94:F0:E3:29:85:AC:E5:B6:67:CC:71:5D:43:CE:83:41:86:81:08:0B:FE:CF:6F:0A:FB:7B:1E:EF:F7:45:42:51:4B:1E:AD:24:B9:AF:51:FF:F2:5E:CD:68:46:DC:F6:5B:20:C2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124954Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.259) 0:00:24.441 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7A:D5:53:56:5E:DD:CF:86:A4:74:4D:25:FA:B6:EB:1F:61:57:EB:33" }, "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": "E5:81:A2:D9:2B:20:DB:01:39:D9:3F:46:69:7C:DD:B3:E1:21:9C:A2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "06:8B:1B:E7:51:78:78:BC:CF:9F:52:F4:87:EC:81:39:9C:E0:4C:0D:AD:3A:39:9B:06:02:36:AD:77:75:0A:D3:18:D5:48:EC:E7:90:6C:A1:8B:C3:F9:A7:65:23:0D:5E:12:D3:23:88:21:81:E3:E9:AD:E1:94:3C:2E:56:76:FB:67:4F:33:AB:1D:6C:BD:1B:72:E8:2E:16:D6:A6:FF:21:A0:A6:14:3D:FF:8F:A3:A8:87:B2:EB:2C:C0:9A:4F:CA:53:F5:F6:02:C4:F3:DC:B9:91:8A:D5:CF:13:CE:C4:69:28:BE:DB:F3:AE:F6:9B:5C:69:7C:E8:16:CD:76:9E:7D:89:F5:12:E9:17:27:BB:D3:0E:14:76:C6:F2:C1:AF:A4:74:FB:17:48:9B:C3:58:52:4E:3B:F6:F9:1B:B8:67:39:77:D4:A1:61:EC:AB:75:82:AD:4B:40:A9:B9:D5:02:FA:50:32:C3:D9:AE:73:59:FF:E5:B9:0D:73:08:EB:42:25:21:AB:48:87:F8:A5:B5:87:22:91:36:66:48:03:94:F0:E3:29:85:AC:E5:B6:67:CC:71:5D:43:CE:83:41:86:81:08:0B:FE:CF:6F:0A:FB:7B:1E:EF:F7:45:42:51:4B:1E:AD:24:B9:AF:51:FF:F2:5E:CD:68:46:DC:F6:5B:20:C2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727124944Z", "not_valid_before": "20240727124954Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.020) 0:00:24.462 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.020) 0:00:24.482 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.019) 0:00:24.502 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.019) 0:00:24.521 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.024) 0:00:24.546 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.023) 0:00:24.569 ********* 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.042074", "end": "2024-07-27 12:49:58.876391", "rc": 0, "start": "2024-07-27 12:49:58.834317" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.216) 0:00:24.786 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 27 July 2024 12:49:58 +0000 (0:00:00.019) 0:00:24.805 ********* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 3.97s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 2.55s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.22s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.21s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.86s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 0.86s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 0.85s /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.84s /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.83s /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.83s /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:29 Gathering Facts --------------------------------------------------------- 0.68s /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:2 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.66s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.55s /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:14 -------------------- Ensure group "somegroup" exists ----------------------------------------- 0.50s /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:9 --------------------- Gathering Facts --------------------------------------------------------- 0.47s /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.46s /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.46s /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:67 -------------------- Ensure user exists ------------------------------------------------------ 0.42s /WORKDIR/git-weekly-ci5k0m79mk/tests/tests_fs_attrs.yml:5 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.31s /WORKDIR/git-weekly-ci5k0m79mk/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Parse certificate ------------------------------------------------------- 0.29s /WORKDIR/git-weekly-ci5k0m79mk/tests/tasks/assert_certificate_parameters.yml:92 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---