# 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-ciqq_aod1c/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:2 Saturday 15 June 2024 13:09:24 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:5 Saturday 15 June 2024 13:09:25 +0000 (0:00:00.681) 0:00:00.693 ********* 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-ciqq_aod1c/tests/tests_fs_attrs.yml:9 Saturday 15 June 2024 13:09:26 +0000 (0:00:00.435) 0:00:01.128 ********* 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-ciqq_aod1c/tests/tests_fs_attrs.yml:14 Saturday 15 June 2024 13:09:26 +0000 (0:00:00.361) 0:00:01.490 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 15 June 2024 13:09:26 +0000 (0:00:00.505) 0:00:01.996 ********* included: /WORKDIR/git-weekly-ciqq_aod1c/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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 15 June 2024 13:09:26 +0000 (0:00:00.011) 0:00:02.007 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 15 June 2024 13:09:26 +0000 (0:00:00.017) 0:00:02.024 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 15 June 2024 13:09:27 +0000 (0:00:00.230) 0:00:02.255 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 15 June 2024 13:09:27 +0000 (0:00:00.019) 0:00:02.275 ********* 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-ciqq_aod1c/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-ciqq_aod1c/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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 15 June 2024 13:09:27 +0000 (0:00:00.034) 0:00:02.309 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-cffi-1.14.5-5.el9.x86_64", "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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 15 June 2024 13:09:32 +0000 (0:00:04.857) 0:00:07.167 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 15 June 2024 13:09:35 +0000 (0:00:02.906) 0:00:10.073 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 15 June 2024 13:09:35 +0000 (0:00:00.273) 0:00:10.346 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 15 June 2024 13:09:35 +0000 (0:00:00.203) 0:00:10.550 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "syslog.target basic.target dbus.socket dbus-broker.service network.target systemd-journald.socket sysinit.target system.slice", "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": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "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": "dbus.socket system.slice 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": "22356", "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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 15 June 2024 13:09:36 +0000 (0:00:00.699) 0:00:11.250 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 15 June 2024 13:09:37 +0000 (0:00:01.262) 0:00:12.512 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 15 June 2024 13:09:37 +0000 (0:00:00.032) 0:00:12.544 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 15 June 2024 13:09:37 +0000 (0:00:00.017) 0:00:12.562 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 15 June 2024 13:09:37 +0000 (0:00:00.018) 0:00:12.580 ********* 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-ciqq_aod1c/tests/tests_fs_attrs.yml:32 Saturday 15 June 2024 13:09:37 +0000 (0:00:00.019) 0:00:12.600 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:61 Saturday 15 June 2024 13:09:38 +0000 (0:00:00.468) 0:00:13.069 ********* included: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:09:38 +0000 (0:00:00.031) 0:00:13.100 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:09:38 +0000 (0:00:00.007) 0:00:13.107 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:09:38 +0000 (0:00:00.016) 0:00:13.124 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:09:38 +0000 (0:00:00.017) 0:00:13.141 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 Saturday 15 June 2024 13:09:38 +0000 (0:00:00.016) 0:00:13.157 ********* 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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:40 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.902) 0:00:14.060 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456976.777418, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "30c495ddf38e7a0a31cafd4235d9b6ccb40b61f8", "ctime": 1718456976.8904142, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6969969, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456976.774418, "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": "3080876152", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:45 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.196) 0:00:14.257 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:51 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.019) 0:00:14.276 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:63 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.021) 0:00:14.298 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:69 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.019) 0:00:14.317 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456976.72042, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e47e889c15b0790f47d5acff87fffc4c4273ba86", "ctime": 1718456976.8904142, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4855577, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456976.774418, "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": "1632452539", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:74 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.197) 0:00:14.515 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:80 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.019) 0:00:14.534 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.021) 0:00:14.556 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "6A:35:99:74:47:8B:EA:4A:04:11:9C:47:99:46:12:54:D6:20:AA:A3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "13:E2:C0:9F:29:D5:B1:EB:98:4C:A7:60:3E:4E:D9:C3:C1:CF:3A:2B:38:F3:29:F9:FA:2E:C7:C8:24:04:C7:7D:4B:15:BE:BF:57:DF:03:16:B9:29:91:9D:8B:0A:C9:39:46:7A:C5:9A:C4:4D:70:3A:C4:9C:A2:A1:DF:FA:80:7F:89:0F:B3:B7:D4:88:CA:FF:66:A2:C7:82:FB:82:5C:0E:0F:2D:48:5A:2D:A8:C8:1D:45:0F:D7:7A:66:D8:93:59:E1:D9:DA:45:D7:08:AB:D4:33:D0:CD:45:CD:FC:24:96:F3:3E:DE:C4:D5:68:95:44:48:69:5C:8D:86:0C:E3:D8:B7:7A:DE:86:1E:C5:F1:81:5F:D8:40:9A:2B:93:9A:CA:B2:F1:5F:19:E9:E5:FE:EA:21:A2:84:4F:F1:83:EC:01:CC:DE:20:E5:FD:AC:14:27:EE:BC:61:20:50:7A:77:B5:F3:10:94:51:B8:B6:49:76:CB:45:51:2C:20:C8:A5:58:5F:E4:52:24:00:D7:21:D1:94:A1:36:3C:7C:32:F2:E5:7D:D2:69:D5:8E:F6:8F:08:49:92:18:CF:CF:CB:DF:8E:9A:7F:20:7D:2B:B0:AD:6A:78:5A:1F:5B:E2:8D:A5:CC:FC:63:A6:F8:A5:98:44:BA:D4:94:FA:A5:0B:14:1F:75" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130936Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:98 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.303) 0:00:14.859 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "6A:35:99:74:47:8B:EA:4A:04:11:9C:47:99:46:12:54:D6:20:AA:A3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "13:E2:C0:9F:29:D5:B1:EB:98:4C:A7:60:3E:4E:D9:C3:C1:CF:3A:2B:38:F3:29:F9:FA:2E:C7:C8:24:04:C7:7D:4B:15:BE:BF:57:DF:03:16:B9:29:91:9D:8B:0A:C9:39:46:7A:C5:9A:C4:4D:70:3A:C4:9C:A2:A1:DF:FA:80:7F:89:0F:B3:B7:D4:88:CA:FF:66:A2:C7:82:FB:82:5C:0E:0F:2D:48:5A:2D:A8:C8:1D:45:0F:D7:7A:66:D8:93:59:E1:D9:DA:45:D7:08:AB:D4:33:D0:CD:45:CD:FC:24:96:F3:3E:DE:C4:D5:68:95:44:48:69:5C:8D:86:0C:E3:D8:B7:7A:DE:86:1E:C5:F1:81:5F:D8:40:9A:2B:93:9A:CA:B2:F1:5F:19:E9:E5:FE:EA:21:A2:84:4F:F1:83:EC:01:CC:DE:20:E5:FD:AC:14:27:EE:BC:61:20:50:7A:77:B5:F3:10:94:51:B8:B6:49:76:CB:45:51:2C:20:C8:A5:58:5F:E4:52:24:00:D7:21:D1:94:A1:36:3C:7C:32:F2:E5:7D:D2:69:D5:8E:F6:8F:08:49:92:18:CF:CF:CB:DF:8E:9A:7F:20:7D:2B:B0:AD:6A:78:5A:1F:5B:E2:8D:A5:CC:FC:63:A6:F8:A5:98:44:BA:D4:94:FA:A5:0B:14:1F:75" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130936Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:102 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.018) 0:00:14.878 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:111 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.019) 0:00:14.897 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:120 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.019) 0:00:14.917 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:127 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.018) 0:00:14.935 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:138 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.021) 0:00:14.956 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:151 Saturday 15 June 2024 13:09:39 +0000 (0:00:00.021) 0:00:14.977 ********* 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.045795", "end": "2024-06-15 13:09:40.219054", "rc": 0, "start": "2024-06-15 13:09:40.173259" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:160 Saturday 15 June 2024 13:09:40 +0000 (0:00:00.293) 0:00:15.271 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:09:40 +0000 (0:00:00.020) 0:00:15.291 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:09:40 +0000 (0:00:00.008) 0:00:15.299 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:09:40 +0000 (0:00:00.016) 0:00:15.316 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:09:40 +0000 (0:00:00.016) 0:00:15.333 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 Saturday 15 June 2024 13:09:40 +0000 (0:00:00.015) 0:00:15.348 ********* 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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:40 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.900) 0:00:16.249 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456977.3453987, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4dbacf067e45a25dc791119525416c5d864be7cb", "ctime": 1718456977.4483953, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6970075, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456977.3433988, "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": "1404582068", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:45 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.198) 0:00:16.447 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:51 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.019) 0:00:16.466 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:63 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.021) 0:00:16.488 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:69 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.019) 0:00:16.507 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456977.2934005, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "95eb52f26727eed6c3d747d85c7b576c1e2656db", "ctime": 1718456977.4483953, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 4855592, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456977.3433988, "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": "1530715544", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:74 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.197) 0:00:16.705 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:80 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.019) 0:00:16.724 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.021) 0:00:16.746 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "54:43:92:E0:C3:25:26:D0:BB:10:13:22:B5:37:AB:9D:28:E3:35:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4C:0F:66:E7:6E:2F:4F:EB:A5:30:73:37:97:05:77:F7:1F:73:9D:E5:8E:30:76:00:82:66:4C:AD:F9:10:A9:F3:26:48:B8:32:F0:32:2B:7E:D8:31:74:0B:51:1F:3C:A5:B9:29:47:D4:2F:90:2D:A7:10:79:EE:75:85:65:DD:0E:CA:BC:FB:5B:79:66:85:EC:C1:37:EE:86:3F:8E:C7:C8:71:6F:A8:CF:07:3B:34:4A:FA:A2:7C:B9:9A:CF:2A:A3:36:6F:63:53:2B:8B:EE:79:C7:D2:A5:DA:E1:3A:24:25:D4:E5:9D:7B:2E:41:16:CF:CD:02:1B:14:B5:A3:36:5E:3C:F9:F6:9E:70:47:43:3C:0C:2A:2C:C3:E3:49:7A:65:5A:6F:05:E8:39:0C:7F:16:11:77:BD:7B:75:DD:7C:52:97:62:3F:D8:2E:7D:1F:87:A6:1B:59:EE:78:84:8D:74:E2:83:E8:29:89:2E:4D:5C:EF:26:7E:B7:FC:49:BE:3B:71:70:08:6A:A1:F8:A3:C1:77:2C:9A:B3:C9:A2:98:6C:3F:E1:C1:A1:96:5A:AA:96:67:45:21:A9:DF:1E:9B:AE:04:17:8A:4E:D7:A5:FC:B2:EC:9E:30:37:2D:8F:FF:91:8C:B4:E3:7D:89:88:88:9A:28:03:0C:59:F8:DE:DD:82" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130937Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:98 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.236) 0:00:16.982 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "54:43:92:E0:C3:25:26:D0:BB:10:13:22:B5:37:AB:9D:28:E3:35:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4C:0F:66:E7:6E:2F:4F:EB:A5:30:73:37:97:05:77:F7:1F:73:9D:E5:8E:30:76:00:82:66:4C:AD:F9:10:A9:F3:26:48:B8:32:F0:32:2B:7E:D8:31:74:0B:51:1F:3C:A5:B9:29:47:D4:2F:90:2D:A7:10:79:EE:75:85:65:DD:0E:CA:BC:FB:5B:79:66:85:EC:C1:37:EE:86:3F:8E:C7:C8:71:6F:A8:CF:07:3B:34:4A:FA:A2:7C:B9:9A:CF:2A:A3:36:6F:63:53:2B:8B:EE:79:C7:D2:A5:DA:E1:3A:24:25:D4:E5:9D:7B:2E:41:16:CF:CD:02:1B:14:B5:A3:36:5E:3C:F9:F6:9E:70:47:43:3C:0C:2A:2C:C3:E3:49:7A:65:5A:6F:05:E8:39:0C:7F:16:11:77:BD:7B:75:DD:7C:52:97:62:3F:D8:2E:7D:1F:87:A6:1B:59:EE:78:84:8D:74:E2:83:E8:29:89:2E:4D:5C:EF:26:7E:B7:FC:49:BE:3B:71:70:08:6A:A1:F8:A3:C1:77:2C:9A:B3:C9:A2:98:6C:3F:E1:C1:A1:96:5A:AA:96:67:45:21:A9:DF:1E:9B:AE:04:17:8A:4E:D7:A5:FC:B2:EC:9E:30:37:2D:8F:FF:91:8C:B4:E3:7D:89:88:88:9A:28:03:0C:59:F8:DE:DD:82" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130937Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:102 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.019) 0:00:17.001 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:111 Saturday 15 June 2024 13:09:41 +0000 (0:00:00.020) 0:00:17.022 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:120 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.020) 0:00:17.042 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:127 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.020) 0:00:17.063 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:138 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.022) 0:00:17.085 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:151 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.022) 0:00:17.107 ********* 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.045621", "end": "2024-06-15 13:09:42.288389", "rc": 0, "start": "2024-06-15 13:09:42.242768" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:160 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.232) 0:00:17.340 ********* 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-ciqq_aod1c/tests/tests_fs_attrs.yml:67 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.026) 0:00:17.366 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.483) 0:00:17.850 ********* included: /WORKDIR/git-weekly-ciqq_aod1c/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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.010) 0:00:17.861 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.018) 0:00:17.879 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.017) 0:00:17.896 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.016) 0:00:17.913 ********* 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-ciqq_aod1c/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-ciqq_aod1c/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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 15 June 2024 13:09:42 +0000 (0:00:00.031) 0:00:17.944 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 15 June 2024 13:09:43 +0000 (0:00:00.884) 0:00:18.829 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 15 June 2024 13:09:44 +0000 (0:00:00.910) 0:00:19.740 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 15 June 2024 13:09:44 +0000 (0:00:00.206) 0:00:19.946 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 15 June 2024 13:09:45 +0000 (0:00:00.205) 0:00:20.151 ********* 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-06-15 13:09:36 UTC", "ActiveEnterTimestampMonotonic": "678927442", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target basic.target sysinit.target dbus-broker.service system.slice network.target systemd-journald.socket dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-15 13:09:36 UTC", "AssertTimestampMonotonic": "678910962", "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": "800416000", "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-06-15 13:09:36 UTC", "ConditionTimestampMonotonic": "678910957", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4654", "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": "9576", "ExecMainStartTimestamp": "Sat 2024-06-15 13:09:36 UTC", "ExecMainStartTimestampMonotonic": "678918067", "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-06-15 13:09:36 UTC] ; stop_time=[n/a] ; pid=9576 ; 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-06-15 13:09:36 UTC] ; stop_time=[n/a] ; pid=9576 ; 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-06-15 13:09:36 UTC", "InactiveExitTimestampMonotonic": "678918776", "InvocationID": "9b9c110e925f4c8f9d6ef132725a1cf7", "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": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9576", "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": "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]", "StateChangeTimestamp": "Sat 2024-06-15 13:09:36 UTC", "StateChangeTimestampMonotonic": "678927442", "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": "22356", "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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 15 June 2024 13:09:45 +0000 (0:00:00.334) 0:00:20.485 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 15 June 2024 13:09:46 +0000 (0:00:01.145) 0:00:21.630 ********* 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-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 15 June 2024 13:09:46 +0000 (0:00:00.032) 0:00:21.663 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 15 June 2024 13:09:46 +0000 (0:00:00.017) 0:00:21.680 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 15 June 2024 13:09:46 +0000 (0:00:00.017) 0:00:21.698 ********* 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-ciqq_aod1c/tests/tests_fs_attrs.yml:85 Saturday 15 June 2024 13:09:46 +0000 (0:00:00.019) 0:00:21.717 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:112 Saturday 15 June 2024 13:09:47 +0000 (0:00:00.478) 0:00:22.195 ********* included: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:09:47 +0000 (0:00:00.034) 0:00:22.230 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:09:47 +0000 (0:00:00.009) 0:00:22.239 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:09:47 +0000 (0:00:00.017) 0:00:22.257 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:09:47 +0000 (0:00:00.019) 0:00:22.276 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 Saturday 15 June 2024 13:09:47 +0000 (0:00:00.030) 0:00:22.307 ********* 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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:40 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.899) 0:00:23.206 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456985.8761094, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a4f5b07782f9340fd051ec6f7ff637ebf3fe6ab4", "ctime": 1718456986.0001051, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6970076, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1718456985.8741095, "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": "2372814211", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:45 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.197) 0:00:23.404 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:51 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.019) 0:00:23.424 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:63 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.021) 0:00:23.445 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:69 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.019) 0:00:23.464 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456985.8241112, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "47ef8f9afb4febb0c00a0c34d8b98e77a64e7137", "ctime": 1718456986.0011053, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4855593, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1718456985.8731096, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "3891170341", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:74 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.197) 0:00:23.661 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:80 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.019) 0:00:23.681 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.021) 0:00:23.703 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "3B:2B:97:64:56:C5:B5:11:F8:0C:07:AE:01:A6:E7:75:36:30:6B:0C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "62:A8:1E:39:23:C3:4A:B9:0E:32:7A:26:EB:96:FE:98:D1:72:AA:C0:9B:AA:A8:A4:9A:94:5A:CA:1F:B0:42:05:0F:1B:DE:92:36:2E:D3:14:27:B3:ED:08:CB:AA:E1:BB:B0:29:4D:2A:CA:25:D8:B6:0C:3E:94:CC:B5:A2:A5:CD:90:6D:7E:3F:36:80:58:3C:D9:F2:58:8E:F8:A4:1B:7C:FA:61:B3:F6:CB:36:70:5E:F4:FB:96:02:88:40:3E:1C:DD:F1:91:CC:CF:09:D6:59:93:A4:FF:C3:4D:6A:AF:F5:25:7D:D3:F2:F5:6E:CA:CD:8A:1D:8E:EA:FB:7F:83:59:CA:95:42:55:E6:29:8D:33:4C:95:90:EA:0D:51:D0:1A:1F:85:CE:7A:45:80:22:3F:7E:F1:F8:8A:01:C3:83:06:B7:AE:22:F8:F4:87:77:E0:20:46:EE:C8:DC:80:15:C2:84:09:B4:FE:5C:60:DD:AB:47:F5:16:17:81:2F:FE:CC:DB:41:67:4D:69:49:56:B9:B6:6E:A3:17:75:86:0A:F7:31:ED:8C:73:95:84:C2:20:F5:B5:3A:B6:56:38:C2:4E:10:79:FB:CF:AA:91:37:C3:04:99:3A:AE:A6:F3:D7:FA:4B:BA:97:9C:A8:C7:60:2A:59:DF:C9:25:E2:CB:A7:38" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130945Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:98 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.239) 0:00:23.942 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "3B:2B:97:64:56:C5:B5:11:F8:0C:07:AE:01:A6:E7:75:36:30:6B:0C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "62:A8:1E:39:23:C3:4A:B9:0E:32:7A:26:EB:96:FE:98:D1:72:AA:C0:9B:AA:A8:A4:9A:94:5A:CA:1F:B0:42:05:0F:1B:DE:92:36:2E:D3:14:27:B3:ED:08:CB:AA:E1:BB:B0:29:4D:2A:CA:25:D8:B6:0C:3E:94:CC:B5:A2:A5:CD:90:6D:7E:3F:36:80:58:3C:D9:F2:58:8E:F8:A4:1B:7C:FA:61:B3:F6:CB:36:70:5E:F4:FB:96:02:88:40:3E:1C:DD:F1:91:CC:CF:09:D6:59:93:A4:FF:C3:4D:6A:AF:F5:25:7D:D3:F2:F5:6E:CA:CD:8A:1D:8E:EA:FB:7F:83:59:CA:95:42:55:E6:29:8D:33:4C:95:90:EA:0D:51:D0:1A:1F:85:CE:7A:45:80:22:3F:7E:F1:F8:8A:01:C3:83:06:B7:AE:22:F8:F4:87:77:E0:20:46:EE:C8:DC:80:15:C2:84:09:B4:FE:5C:60:DD:AB:47:F5:16:17:81:2F:FE:CC:DB:41:67:4D:69:49:56:B9:B6:6E:A3:17:75:86:0A:F7:31:ED:8C:73:95:84:C2:20:F5:B5:3A:B6:56:38:C2:4E:10:79:FB:CF:AA:91:37:C3:04:99:3A:AE:A6:F3:D7:FA:4B:BA:97:9C:A8:C7:60:2A:59:DF:C9:25:E2:CB:A7:38" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130945Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:102 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.019) 0:00:23.962 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:111 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.021) 0:00:23.984 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:120 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.020) 0:00:24.004 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:127 Saturday 15 June 2024 13:09:48 +0000 (0:00:00.019) 0:00:24.023 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:138 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.022) 0:00:24.046 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:151 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.021) 0:00:24.067 ********* 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.049482", "end": "2024-06-15 13:09:49.251372", "rc": 0, "start": "2024-06-15 13:09:49.201890" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:160 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.236) 0:00:24.303 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.020) 0:00:24.324 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.007) 0:00:24.331 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.017) 0:00:24.348 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.017) 0:00:24.366 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 Saturday 15 June 2024 13:09:49 +0000 (0:00:00.017) 0:00:24.383 ********* 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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:40 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.895) 0:00:25.279 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456986.4710894, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "aed734c1559ff9c10ea538bf6bf887eb1f51bbd2", "ctime": 1718456986.4680893, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6970077, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1718456986.4680893, "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": "1135304193", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:45 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.197) 0:00:25.477 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:51 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.019) 0:00:25.496 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:63 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.023) 0:00:25.520 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:69 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.021) 0:00:25.541 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456986.418091, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0b56cb1b3cf5395f6ec4c35ab7192540720f7c13", "ctime": 1718456986.4680893, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4855594, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1718456986.4680893, "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": "3326087289", "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-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:74 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.200) 0:00:25.742 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:80 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.019) 0:00:25.761 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.021) 0:00:25.783 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "F6:DC:C5:23:16:E1:38:50:C5:02:10:F7:97:A0:A9:B3:90:14:BD:27" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "59:31:96:54:F8:B4:C3:EF:4B:15:47:80:B0:B0:6E:F1:96:6A:0E:25:8A:EC:7B:A0:4C:E6:15:13:03:3E:0C:57:04:8F:96:E9:7D:29:02:3D:BD:A2:1D:9F:36:6E:4F:ED:2B:34:D9:A0:B3:B3:B4:44:D0:7D:7E:9E:67:FA:59:0D:0D:77:C3:76:AF:1B:D4:B5:5C:50:52:BC:D9:56:CF:6C:B1:FF:A2:62:54:99:28:97:3E:29:70:2D:D8:AD:46:AD:78:E0:73:05:7F:51:A8:22:C0:CE:43:AE:A4:81:15:89:03:4F:3A:0F:F5:AC:F8:2D:BC:A8:38:B4:1A:C4:23:50:61:6F:29:CB:A0:52:51:CF:77:64:19:BD:C4:1E:67:95:1D:66:12:F7:2C:46:23:8F:5C:52:84:04:C0:40:10:CF:4D:11:BB:BD:82:00:06:0E:75:3B:B2:2C:56:EE:F4:C2:42:6C:A6:DF:07:B4:3D:6C:35:07:E6:30:C8:27:0A:26:08:3E:17:8F:25:BC:A9:4D:70:4A:9F:86:55:EA:8F:1E:0F:5F:EF:C3:E1:0A:06:64:18:CF:41:87:A0:86:DF:79:CC:1A:5F:BE:05:DC:11:E3:44:D3:D9:E7:FB:EC:80:43:DF:B2:D2:1C:E4:CB:E8:EF:DF:F5:D3:A7:76:66:4A:34" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130946Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:98 Saturday 15 June 2024 13:09:50 +0000 (0:00:00.239) 0:00:26.022 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C1:98:0C:0D:67:E6:44:C7:EC:7E:90:15:5C:CA:53:5F:02:A6:D6:57" }, "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": "F6:DC:C5:23:16:E1:38:50:C5:02:10:F7:97:A0:A9:B3:90:14:BD:27" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "59:31:96:54:F8:B4:C3:EF:4B:15:47:80:B0:B0:6E:F1:96:6A:0E:25:8A:EC:7B:A0:4C:E6:15:13:03:3E:0C:57:04:8F:96:E9:7D:29:02:3D:BD:A2:1D:9F:36:6E:4F:ED:2B:34:D9:A0:B3:B3:B4:44:D0:7D:7E:9E:67:FA:59:0D:0D:77:C3:76:AF:1B:D4:B5:5C:50:52:BC:D9:56:CF:6C:B1:FF:A2:62:54:99:28:97:3E:29:70:2D:D8:AD:46:AD:78:E0:73:05:7F:51:A8:22:C0:CE:43:AE:A4:81:15:89:03:4F:3A:0F:F5:AC:F8:2D:BC:A8:38:B4:1A:C4:23:50:61:6F:29:CB:A0:52:51:CF:77:64:19:BD:C4:1E:67:95:1D:66:12:F7:2C:46:23:8F:5C:52:84:04:C0:40:10:CF:4D:11:BB:BD:82:00:06:0E:75:3B:B2:2C:56:EE:F4:C2:42:6C:A6:DF:07:B4:3D:6C:35:07:E6:30:C8:27:0A:26:08:3E:17:8F:25:BC:A9:4D:70:4A:9F:86:55:EA:8F:1E:0F:5F:EF:C3:E1:0A:06:64:18:CF:41:87:A0:86:DF:79:CC:1A:5F:BE:05:DC:11:E3:44:D3:D9:E7:FB:EC:80:43:DF:B2:D2:1C:E4:CB:E8:EF:DF:F5:D3:A7:76:66:4A:34" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130936Z", "not_valid_before": "20240615130946Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:102 Saturday 15 June 2024 13:09:51 +0000 (0:00:00.019) 0:00:26.041 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:111 Saturday 15 June 2024 13:09:51 +0000 (0:00:00.020) 0:00:26.062 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:120 Saturday 15 June 2024 13:09:51 +0000 (0:00:00.020) 0:00:26.082 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:127 Saturday 15 June 2024 13:09:51 +0000 (0:00:00.019) 0:00:26.102 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:138 Saturday 15 June 2024 13:09:51 +0000 (0:00:00.025) 0:00:26.127 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:151 Saturday 15 June 2024 13:09:51 +0000 (0:00:00.023) 0:00:26.151 ********* 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.049407", "end": "2024-06-15 13:09:51.335144", "rc": 0, "start": "2024-06-15 13:09:51.285737" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:160 Saturday 15 June 2024 13:09:51 +0000 (0:00:00.238) 0:00:26.389 ********* 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 15 June 2024 13:09:51 +0000 (0:00:00.020) 0:00:26.410 ********* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 4.86s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 2.91s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.26s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.15s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure provider packages are installed --- 0.91s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-ciqq_aod1c/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.88s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider service is running ----- 0.70s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.68s /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.51s /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.47s /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:32 -------------------- Ensure user exists ------------------------------------------------------ 0.44s /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:5 --------------------- Ensure group "somegroup" exists ----------------------------------------- 0.36s /WORKDIR/git-weekly-ciqq_aod1c/tests/tests_fs_attrs.yml:9 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.33s /WORKDIR/git-weekly-ciqq_aod1c/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Parse certificate ------------------------------------------------------- 0.30s /WORKDIR/git-weekly-ciqq_aod1c/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. ---^---^---^---^---^---