# 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-cio2bo2j5a/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:2 Saturday 06 July 2024 15:11:09 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:5 Saturday 06 July 2024 15:11:10 +0000 (0:00:00.669) 0:00:00.681 ********* 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-cio2bo2j5a/tests/tests_fs_attrs.yml:9 Saturday 06 July 2024 15:11:10 +0000 (0:00:00.362) 0:00:01.044 ********* 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-cio2bo2j5a/tests/tests_fs_attrs.yml:14 Saturday 06 July 2024 15:11:11 +0000 (0:00:00.288) 0:00:01.332 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 06 July 2024 15:11:11 +0000 (0:00:00.469) 0:00:01.802 ********* included: /WORKDIR/git-weekly-cio2bo2j5a/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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 06 July 2024 15:11:11 +0000 (0:00:00.011) 0:00:01.814 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 06 July 2024 15:11:11 +0000 (0:00:00.018) 0:00:01.832 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 06 July 2024 15:11:11 +0000 (0:00:00.226) 0:00:02.059 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 06 July 2024 15:11:11 +0000 (0:00:00.021) 0:00:02.080 ********* 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-cio2bo2j5a/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-cio2bo2j5a/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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 06 July 2024 15:11:11 +0000 (0:00:00.033) 0:00:02.114 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "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", "Installed: python3-pyasn1-0.4.8-6.el9.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 06 July 2024 15:11:15 +0000 (0:00:03.743) 0:00:05.858 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-2.el9.x86_64", "Installed: python3-pyparsing-2.4.7-9.el9.noarch", "Installed: python3-packaging-20.9-5.el9.noarch" ] } lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 06 July 2024 15:11:17 +0000 (0:00:02.392) 0:00:08.250 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 06 July 2024 15:11:18 +0000 (0:00:00.275) 0:00:08.525 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 06 July 2024 15:11:18 +0000 (0:00:00.199) 0:00:08.724 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "syslog.target dbus-broker.service dbus.socket network.target basic.target sysinit.target systemd-journald.socket 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 06 July 2024 15:11:19 +0000 (0:00:00.676) 0:00:09.400 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 06 July 2024 15:11:20 +0000 (0:00:01.229) 0:00:10.629 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.032) 0:00:10.662 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.018) 0:00:10.680 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.018) 0:00:10.699 ********* 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-cio2bo2j5a/tests/tests_fs_attrs.yml:32 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.020) 0:00:10.719 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:61 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.460) 0:00:11.180 ********* included: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.032) 0:00:11.212 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.008) 0:00:11.220 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.018) 0:00:11.239 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.017) 0:00:11.256 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:11:20 +0000 (0:00:00.017) 0:00:11.273 ********* 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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:11:21 +0000 (0:00:00.853) 0:00:12.127 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278679.6889381, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9b0e6741f3f54abd111c4d7c8ea275d9d8d33d7f", "ctime": 1720278679.7499392, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2358674, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1720278679.6879382, "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": "1836202288", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.189) 0:00:12.317 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.021) 0:00:12.338 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.022) 0:00:12.360 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.019) 0:00:12.379 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278679.6379375, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "75a709ca1d08506c67902764cd7ed78f31dd3da5", "ctime": 1720278679.7499392, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 270028, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1720278679.6879382, "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": "1302344075", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.189) 0:00:12.569 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.020) 0:00:12.590 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.023) 0:00:12.614 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "62:8E:2B:C5:19:0E:AB:FD:2D:75:DA:98:7E:59:E7:26:2E:38:FA:E7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "18:3F:6E:3E:1B:0C:49:13:2F:FD:61:24:28:84:E1:DA:BC:7E:5D:16:1D:80:5A:44:AD:DF:41:12:D1:2D:1D:51:D1:0C:4C:CD:C9:43:2A:E3:B5:0B:97:87:9C:2B:C1:F0:9A:07:91:47:C5:3F:D3:A8:8B:EC:84:93:11:FC:34:48:96:FA:41:CD:B0:56:50:4D:D7:8A:08:AD:54:C0:22:38:DD:64:06:9E:96:F3:27:0B:D7:03:D9:34:02:08:B0:8B:17:00:11:10:D5:CB:71:03:B6:81:41:65:10:B9:02:BB:AB:B0:C0:F8:D1:D9:3F:D4:B2:A2:34:87:48:A0:11:B1:64:96:3B:B3:38:23:27:83:7C:28:C2:8C:0A:92:22:6D:59:88:96:12:1C:EC:85:E4:5A:C0:04:56:9A:38:B7:FA:07:80:BA:8C:57:9D:26:BE:5A:41:18:B7:2C:A5:62:0C:32:04:72:B9:65:78:D8:6A:7A:73:13:70:DC:AC:85:35:A1:ED:DD:0E:B5:2E:D7:74:4D:A2:2D:19:90:BB:6A:1D:B8:91:D1:0B:D6:A7:DF:33:FF:93:95:72:58:27:CB:B0:2D:2F:CD:9A:16:D8:5F:71:58:C4:8D:06:9C:2B:3D:3A:2B:5E:3E:EA:D3:AE:97:09:F3:45:0B:7C:07:23:60:B2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151119Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.295) 0:00:12.909 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "62:8E:2B:C5:19:0E:AB:FD:2D:75:DA:98:7E:59:E7:26:2E:38:FA:E7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "18:3F:6E:3E:1B:0C:49:13:2F:FD:61:24:28:84:E1:DA:BC:7E:5D:16:1D:80:5A:44:AD:DF:41:12:D1:2D:1D:51:D1:0C:4C:CD:C9:43:2A:E3:B5:0B:97:87:9C:2B:C1:F0:9A:07:91:47:C5:3F:D3:A8:8B:EC:84:93:11:FC:34:48:96:FA:41:CD:B0:56:50:4D:D7:8A:08:AD:54:C0:22:38:DD:64:06:9E:96:F3:27:0B:D7:03:D9:34:02:08:B0:8B:17:00:11:10:D5:CB:71:03:B6:81:41:65:10:B9:02:BB:AB:B0:C0:F8:D1:D9:3F:D4:B2:A2:34:87:48:A0:11:B1:64:96:3B:B3:38:23:27:83:7C:28:C2:8C:0A:92:22:6D:59:88:96:12:1C:EC:85:E4:5A:C0:04:56:9A:38:B7:FA:07:80:BA:8C:57:9D:26:BE:5A:41:18:B7:2C:A5:62:0C:32:04:72:B9:65:78:D8:6A:7A:73:13:70:DC:AC:85:35:A1:ED:DD:0E:B5:2E:D7:74:4D:A2:2D:19:90:BB:6A:1D:B8:91:D1:0B:D6:A7:DF:33:FF:93:95:72:58:27:CB:B0:2D:2F:CD:9A:16:D8:5F:71:58:C4:8D:06:9C:2B:3D:3A:2B:5E:3E:EA:D3:AE:97:09:F3:45:0B:7C:07:23:60:B2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151119Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.020) 0:00:12.929 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.020) 0:00:12.950 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.019) 0:00:12.970 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.019) 0:00:12.989 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.022) 0:00:13.012 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:11:22 +0000 (0:00:00.022) 0:00:13.035 ********* 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.037436", "end": "2024-07-06 15:11:22.990437", "rc": 0, "start": "2024-07-06 15:11:22.953001" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:11:23 +0000 (0:00:00.285) 0:00:13.320 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:11:23 +0000 (0:00:00.021) 0:00:13.342 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:11:23 +0000 (0:00:00.008) 0:00:13.351 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:11:23 +0000 (0:00:00.017) 0:00:13.368 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:11:23 +0000 (0:00:00.017) 0:00:13.385 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:11:23 +0000 (0:00:00.017) 0:00:13.402 ********* 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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:11:23 +0000 (0:00:00.858) 0:00:14.261 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278680.2299461, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a29d624b4c78fb454d8b2983acb4e4d9cb1d7bbf", "ctime": 1720278680.2869468, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 2365589, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1720278680.227946, "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": "1436678591", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.194) 0:00:14.455 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.021) 0:00:14.476 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.021) 0:00:14.498 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.019) 0:00:14.518 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278680.1819453, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0685276edd83ff86ec1a8a223469c85dbf4a95b8", "ctime": 1720278680.2869468, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 270032, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1720278680.2269459, "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": "2368983840", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.195) 0:00:14.713 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.021) 0:00:14.735 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.022) 0:00:14.757 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "3E:09:9D:D3:8C:F5:B2:D9:F2:28:08:F8:23:18:14:7C:47:0C:FC:39" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:46:34:6F:B5:B0:D0:73:9B:A3:C0:4C:BF:C1:F5:37:F7:72:F7:5D:8F:81:DC:28:4F:30:8C:D4:3A:3E:A1:8E:46:31:97:C0:DB:DB:31:66:9E:87:84:22:FD:29:16:35:EF:B3:7E:CF:E0:52:AB:5F:DF:5B:07:94:2A:EE:A4:1C:57:2E:5E:46:82:5E:1A:12:11:86:18:E4:63:0D:13:60:64:A0:CD:48:2C:7F:CE:DB:1A:57:76:F8:BF:2C:0E:C6:44:5F:6A:AB:14:5C:93:6E:92:53:0D:F0:30:28:79:86:EA:33:7B:15:24:8B:0D:AD:1F:D0:BF:69:ED:43:38:3E:38:53:A0:DA:40:D5:F9:D7:F4:10:02:5D:5C:F5:96:72:64:B1:A2:BA:0E:5B:91:D8:01:BD:75:94:96:BF:78:2A:78:18:70:97:DE:68:12:B5:DD:72:37:1A:F5:BB:63:8B:E2:1E:6F:98:3D:4D:4A:CA:0E:83:2C:ED:4D:99:22:7A:69:4B:9E:F1:F6:11:51:62:9C:5A:31:AB:0F:00:F6:84:9A:85:41:78:34:E5:28:FB:3F:A3:AB:E7:93:64:A0:FD:FD:1A:7A:2E:E3:C2:79:CC:70:EB:70:CF:74:B7:1D:BC:8C:35:60:1D:DC:2B:9A:A3:D5:E2:6A:D8:FF:6A:E3:C9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151120Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.229) 0:00:14.987 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "3E:09:9D:D3:8C:F5:B2:D9:F2:28:08:F8:23:18:14:7C:47:0C:FC:39" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:46:34:6F:B5:B0:D0:73:9B:A3:C0:4C:BF:C1:F5:37:F7:72:F7:5D:8F:81:DC:28:4F:30:8C:D4:3A:3E:A1:8E:46:31:97:C0:DB:DB:31:66:9E:87:84:22:FD:29:16:35:EF:B3:7E:CF:E0:52:AB:5F:DF:5B:07:94:2A:EE:A4:1C:57:2E:5E:46:82:5E:1A:12:11:86:18:E4:63:0D:13:60:64:A0:CD:48:2C:7F:CE:DB:1A:57:76:F8:BF:2C:0E:C6:44:5F:6A:AB:14:5C:93:6E:92:53:0D:F0:30:28:79:86:EA:33:7B:15:24:8B:0D:AD:1F:D0:BF:69:ED:43:38:3E:38:53:A0:DA:40:D5:F9:D7:F4:10:02:5D:5C:F5:96:72:64:B1:A2:BA:0E:5B:91:D8:01:BD:75:94:96:BF:78:2A:78:18:70:97:DE:68:12:B5:DD:72:37:1A:F5:BB:63:8B:E2:1E:6F:98:3D:4D:4A:CA:0E:83:2C:ED:4D:99:22:7A:69:4B:9E:F1:F6:11:51:62:9C:5A:31:AB:0F:00:F6:84:9A:85:41:78:34:E5:28:FB:3F:A3:AB:E7:93:64:A0:FD:FD:1A:7A:2E:E3:C2:79:CC:70:EB:70:CF:74:B7:1D:BC:8C:35:60:1D:DC:2B:9A:A3:D5:E2:6A:D8:FF:6A:E3:C9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151120Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.020) 0:00:15.007 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.020) 0:00:15.027 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.019) 0:00:15.047 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.019) 0:00:15.067 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.022) 0:00:15.089 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:11:24 +0000 (0:00:00.022) 0:00:15.112 ********* 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.039504", "end": "2024-07-06 15:11:25.000344", "rc": 0, "start": "2024-07-06 15:11:24.960840" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.215) 0:00:15.328 ********* 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-cio2bo2j5a/tests/tests_fs_attrs.yml:67 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.024) 0:00:15.352 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.459) 0:00:15.811 ********* included: /WORKDIR/git-weekly-cio2bo2j5a/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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.011) 0:00:15.822 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.019) 0:00:15.842 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.018) 0:00:15.861 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.034) 0:00:15.895 ********* 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-cio2bo2j5a/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-cio2bo2j5a/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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 06 July 2024 15:11:25 +0000 (0:00:00.040) 0:00:15.936 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 06 July 2024 15:11:26 +0000 (0:00:00.859) 0:00:16.795 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 06 July 2024 15:11:27 +0000 (0:00:00.852) 0:00:17.648 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 06 July 2024 15:11:27 +0000 (0:00:00.193) 0:00:17.841 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 06 July 2024 15:11:27 +0000 (0:00:00.195) 0:00:18.036 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-07-06 15:11:19 UTC", "ActiveEnterTimestampMonotonic": "492043370", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.socket systemd-journald.socket sysinit.target dbus-broker.service network.target system.slice syslog.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-06 15:11:19 UTC", "AssertTimestampMonotonic": "492022653", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "881021000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-07-06 15:11:19 UTC", "ConditionTimestampMonotonic": "492022650", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4777", "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": "9827", "ExecMainStartTimestamp": "Sat 2024-07-06 15:11:19 UTC", "ExecMainStartTimestampMonotonic": "492033097", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-07-06 15:11:19 UTC] ; stop_time=[n/a] ; pid=9827 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-07-06 15:11:19 UTC] ; stop_time=[n/a] ; pid=9827 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-07-06 15:11:19 UTC", "InactiveExitTimestampMonotonic": "492033620", "InvocationID": "3e0e1f51b82048dca4468845ffe5d57a", "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": "9827", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4337664", "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 sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-07-06 15:11:19 UTC", "StateChangeTimestampMonotonic": "492043370", "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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 06 July 2024 15:11:28 +0000 (0:00:00.314) 0:00:18.350 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 06 July 2024 15:11:29 +0000 (0:00:01.306) 0:00:19.657 ********* 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-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 06 July 2024 15:11:29 +0000 (0:00:00.032) 0:00:19.689 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 06 July 2024 15:11:29 +0000 (0:00:00.017) 0:00:19.707 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 06 July 2024 15:11:29 +0000 (0:00:00.018) 0:00:19.725 ********* 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-cio2bo2j5a/tests/tests_fs_attrs.yml:85 Saturday 06 July 2024 15:11:29 +0000 (0:00:00.020) 0:00:19.746 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:112 Saturday 06 July 2024 15:11:29 +0000 (0:00:00.523) 0:00:20.269 ********* included: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:11:29 +0000 (0:00:00.032) 0:00:20.302 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:11:30 +0000 (0:00:00.014) 0:00:20.316 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:11:30 +0000 (0:00:00.018) 0:00:20.335 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:11:30 +0000 (0:00:00.017) 0:00:20.352 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:11:30 +0000 (0:00:00.017) 0:00:20.370 ********* 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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:11:30 +0000 (0:00:00.837) 0:00:21.208 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278688.5080657, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c9e6e0849e32be2fa75734344bd9267b9ddb326d", "ctime": 1720278688.5730667, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2365721, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1720278688.5070658, "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": "2650004294", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.188) 0:00:21.396 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.019) 0:00:21.415 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.021) 0:00:21.437 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.020) 0:00:21.458 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278688.460065, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "46fd5f1ac0598303a37db888e3a54457072fd29c", "ctime": 1720278688.5740666, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 270038, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1720278688.5070658, "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": "2293793831", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.191) 0:00:21.649 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.019) 0:00:21.669 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.021) 0:00:21.690 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "65:88:1A:67:78:97:EF:13:24:5D:85:BC:87:3E:EA:9A:69:25:68:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "09:71:BD:C0:6E:D1:B2:3C:3C:82:CB:F9:3A:11:17:82:E1:26:3D:E6:9E:12:3E:AD:FA:F5:1B:31:3C:53:A5:97:28:48:4A:F1:A6:B9:2F:4E:31:F9:69:E5:D7:FF:5D:5C:97:E3:E1:E0:D6:F6:C3:4A:61:CC:A6:4F:1B:70:20:FE:10:85:A3:27:EF:C2:AC:75:01:C5:91:6A:4E:6A:84:29:57:F8:44:6B:54:3A:9F:64:34:BC:9B:F9:C5:83:37:CE:25:5F:02:B2:CF:51:9B:F1:EF:02:A1:E6:38:95:28:9F:6E:86:4C:83:0A:D9:F1:A2:B5:61:5C:08:B7:54:65:71:89:97:C7:72:E9:78:68:4A:F8:26:D6:BC:0B:59:05:08:F0:FC:D8:05:71:45:04:A0:22:0A:92:F9:D3:AE:57:B2:55:34:59:07:B9:5E:F8:4D:6E:16:39:F4:20:F7:AF:06:E0:6B:9C:B7:3A:B8:1A:61:46:CB:8D:CF:2B:71:20:9D:D7:C4:58:B0:94:9C:B3:1C:64:69:88:71:5D:2B:92:72:14:E4:EF:AD:0A:44:08:C6:34:61:8C:22:91:75:AD:1B:91:18:F3:86:24:0A:EB:75:F5:69:B8:6A:26:25:A9:70:0A:31:8C:20:C9:FC:29:BA:8D:1B:50:06:E6:31:29:74" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151128Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.227) 0:00:21.918 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "65:88:1A:67:78:97:EF:13:24:5D:85:BC:87:3E:EA:9A:69:25:68:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "09:71:BD:C0:6E:D1:B2:3C:3C:82:CB:F9:3A:11:17:82:E1:26:3D:E6:9E:12:3E:AD:FA:F5:1B:31:3C:53:A5:97:28:48:4A:F1:A6:B9:2F:4E:31:F9:69:E5:D7:FF:5D:5C:97:E3:E1:E0:D6:F6:C3:4A:61:CC:A6:4F:1B:70:20:FE:10:85:A3:27:EF:C2:AC:75:01:C5:91:6A:4E:6A:84:29:57:F8:44:6B:54:3A:9F:64:34:BC:9B:F9:C5:83:37:CE:25:5F:02:B2:CF:51:9B:F1:EF:02:A1:E6:38:95:28:9F:6E:86:4C:83:0A:D9:F1:A2:B5:61:5C:08:B7:54:65:71:89:97:C7:72:E9:78:68:4A:F8:26:D6:BC:0B:59:05:08:F0:FC:D8:05:71:45:04:A0:22:0A:92:F9:D3:AE:57:B2:55:34:59:07:B9:5E:F8:4D:6E:16:39:F4:20:F7:AF:06:E0:6B:9C:B7:3A:B8:1A:61:46:CB:8D:CF:2B:71:20:9D:D7:C4:58:B0:94:9C:B3:1C:64:69:88:71:5D:2B:92:72:14:E4:EF:AD:0A:44:08:C6:34:61:8C:22:91:75:AD:1B:91:18:F3:86:24:0A:EB:75:F5:69:B8:6A:26:25:A9:70:0A:31:8C:20:C9:FC:29:BA:8D:1B:50:06:E6:31:29:74" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151128Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.020) 0:00:21.939 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.020) 0:00:21.959 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.019) 0:00:21.979 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.019) 0:00:21.998 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.022) 0:00:22.021 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.022) 0:00:22.044 ********* 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.040094", "end": "2024-07-06 15:11:31.933857", "rc": 0, "start": "2024-07-06 15:11:31.893763" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.219) 0:00:22.264 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.020) 0:00:22.285 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 July 2024 15:11:31 +0000 (0:00:00.008) 0:00:22.293 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 July 2024 15:11:32 +0000 (0:00:00.017) 0:00:22.310 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 July 2024 15:11:32 +0000 (0:00:00.017) 0:00:22.328 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 July 2024 15:11:32 +0000 (0:00:00.017) 0:00:22.345 ********* 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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 July 2024 15:11:32 +0000 (0:00:00.840) 0:00:23.185 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278689.1840754, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "25c186ff3c158918b1c86fb3319ae6a5be5241cd", "ctime": 1720278689.1820755, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2365722, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278689.1820755, "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": "2295513018", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.187) 0:00:23.373 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.023) 0:00:23.397 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.023) 0:00:23.420 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.020) 0:00:23.440 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1720278689.1350749, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2d0f71d5a4f06f3089c0eaf6c3892fa8016e72f8", "ctime": 1720278689.1820755, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 270040, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1720278689.1820755, "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": "2786728800", "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-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.186) 0:00:23.627 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.019) 0:00:23.647 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.021) 0:00:23.669 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "A0:21:E3:13:06:1E:6D:9F:DE:CD:21:85:67:48:28:49:50:55:88:F3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "20:16:65:67:10:27:E4:4C:53:35:5C:FB:0F:0B:93:64:14:22:B3:07:A5:70:35:AC:8A:95:BD:3D:38:9F:D4:7F:25:AE:1C:76:F9:1D:69:A2:79:BD:F5:AC:60:1A:FB:AB:57:52:4E:F7:B8:36:45:5D:F1:4E:48:82:F6:F7:20:D0:EC:E8:8C:68:0A:85:EA:6B:67:E0:EC:D2:EF:12:27:80:61:AB:80:36:DA:15:11:B7:9C:E3:54:08:CB:C4:6E:01:0B:E1:99:85:1C:C4:22:E3:0C:FD:3D:80:63:F9:B0:C2:85:E5:7E:2D:44:77:CF:61:90:76:F6:16:D4:54:EF:EC:08:E9:7B:83:8E:88:BC:6B:5B:FE:4F:5E:1E:A3:87:11:8F:B0:62:F8:FE:73:F0:2C:77:1B:58:57:25:65:AB:AC:77:0C:29:77:F4:3F:27:57:9B:1C:06:F6:AD:EF:AE:D3:9E:D2:74:16:37:9B:F8:EE:46:71:A2:2D:46:EF:F7:88:D5:F9:BF:11:56:23:6E:FA:27:FC:7C:30:E7:47:1C:DD:64:15:43:F8:AC:0D:F9:87:44:CE:45:E3:BA:CD:FD:1E:17:82:DD:B6:35:3A:39:FB:EB:9C:60:58:8F:82:AE:10:3B:A1:D6:61:9C:37:21:80:5E:31:0A:54:20:6F:38:53" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151129Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.222) 0:00:23.891 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:7B:3C:CC:E8:F6:3B:FB:C1:EC:13:F6:34:4E:C0:72:EF:5D:C7:43" }, "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": "A0:21:E3:13:06:1E:6D:9F:DE:CD:21:85:67:48:28:49:50:55:88:F3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "20:16:65:67:10:27:E4:4C:53:35:5C:FB:0F:0B:93:64:14:22:B3:07:A5:70:35:AC:8A:95:BD:3D:38:9F:D4:7F:25:AE:1C:76:F9:1D:69:A2:79:BD:F5:AC:60:1A:FB:AB:57:52:4E:F7:B8:36:45:5D:F1:4E:48:82:F6:F7:20:D0:EC:E8:8C:68:0A:85:EA:6B:67:E0:EC:D2:EF:12:27:80:61:AB:80:36:DA:15:11:B7:9C:E3:54:08:CB:C4:6E:01:0B:E1:99:85:1C:C4:22:E3:0C:FD:3D:80:63:F9:B0:C2:85:E5:7E:2D:44:77:CF:61:90:76:F6:16:D4:54:EF:EC:08:E9:7B:83:8E:88:BC:6B:5B:FE:4F:5E:1E:A3:87:11:8F:B0:62:F8:FE:73:F0:2C:77:1B:58:57:25:65:AB:AC:77:0C:29:77:F4:3F:27:57:9B:1C:06:F6:AD:EF:AE:D3:9E:D2:74:16:37:9B:F8:EE:46:71:A2:2D:46:EF:F7:88:D5:F9:BF:11:56:23:6E:FA:27:FC:7C:30:E7:47:1C:DD:64:15:43:F8:AC:0D:F9:87:44:CE:45:E3:BA:CD:FD:1E:17:82:DD:B6:35:3A:39:FB:EB:9C:60:58:8F:82:AE:10:3B:A1:D6:61:9C:37:21:80:5E:31:0A:54:20:6F:38:53" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250706151119Z", "not_valid_before": "20240706151129Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.020) 0:00:23.912 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.021) 0:00:23.934 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.020) 0:00:23.954 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.019) 0:00:23.974 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.022) 0:00:23.997 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.022) 0:00:24.020 ********* 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.040554", "end": "2024-07-06 15:11:33.910582", "rc": 0, "start": "2024-07-06 15:11:33.870028" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 July 2024 15:11:33 +0000 (0:00:00.219) 0:00:24.239 ********* 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 06 July 2024 15:11:33 +0000 (0:00:00.019) 0:00:24.258 ********* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 3.74s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 2.39s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.31s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.23s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.86s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 0.86s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.85s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider packages are installed --- 0.85s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 0.84s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.84s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider service is running ----- 0.68s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.67s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.52s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.47s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.46s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.46s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:67 -------------------- Ensure user exists ------------------------------------------------------ 0.36s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:5 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.31s /WORKDIR/git-weekly-cio2bo2j5a/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Parse certificate ------------------------------------------------------- 0.30s /WORKDIR/git-weekly-cio2bo2j5a/tests/tasks/assert_certificate_parameters.yml:92 Ensure group "somegroup" exists ----------------------------------------- 0.29s /WORKDIR/git-weekly-cio2bo2j5a/tests/tests_fs_attrs.yml:9 --------------------- ---^---^---^---^---^--- # 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. ---^---^---^---^---^---