# 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-cit1urbdte/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:2 Saturday 09 December 2023 12:59:57 +0000 (0:00:00.011) 0:00:00.011 ***** ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:5 Saturday 09 December 2023 12:59:58 +0000 (0:00:00.636) 0:00:00.648 ***** 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-cit1urbdte/tests/tests_fs_attrs.yml:9 Saturday 09 December 2023 12:59:58 +0000 (0:00:00.405) 0:00:01.054 ***** 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-cit1urbdte/tests/tests_fs_attrs.yml:14 Saturday 09 December 2023 12:59:59 +0000 (0:00:00.372) 0:00:01.427 ***** ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 09 December 2023 12:59:59 +0000 (0:00:00.482) 0:00:01.909 ***** included: /WORKDIR/git-weekly-cit1urbdte/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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 09 December 2023 12:59:59 +0000 (0:00:00.011) 0:00:01.920 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 09 December 2023 12:59:59 +0000 (0:00:00.017) 0:00:01.937 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 09 December 2023 12:59:59 +0000 (0:00:00.239) 0:00:02.177 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 09 December 2023 13:00:00 +0000 (0:00:00.021) 0:00:02.198 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 09 December 2023 13:00:00 +0000 (0:00:00.030) 0:00:02.229 ***** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.3.7-6.el8.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 09 December 2023 13:00:02 +0000 (0:00:02.700) 0:00:04.929 ***** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: xmlrpc-c-1.51.0-8.el8.x86_64", "Installed: xmlrpc-c-client-1.51.0-8.el8.x86_64", "Installed: certmonger-0.79.17-2.el8.x86_64" ] } lsrpackages: certmonger TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 09 December 2023 13:00:06 +0000 (0:00:03.728) 0:00:08.657 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 09 December 2023 13:00:06 +0000 (0:00:00.377) 0:00:09.034 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 09 December 2023 13:00:07 +0000 (0:00:00.216) 0:00:09.250 ***** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket basic.target systemd-journald.socket syslog.target network.target dbus.service system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "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", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "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": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "13957", "LimitNPROCSoft": "13957", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13957", "LimitSIGPENDINGSoft": "13957", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "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": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22331", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 09 December 2023 13:00:07 +0000 (0:00:00.701) 0:00:09.951 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 09 December 2023 13:00:09 +0000 (0:00:01.716) 0:00:11.668 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 09 December 2023 13:00:09 +0000 (0:00:00.031) 0:00:11.700 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 09 December 2023 13:00:09 +0000 (0:00:00.016) 0:00:11.716 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 09 December 2023 13:00:09 +0000 (0:00:00.016) 0:00:11.733 ***** 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-cit1urbdte/tests/tests_fs_attrs.yml:32 Saturday 09 December 2023 13:00:09 +0000 (0:00:00.020) 0:00:11.753 ***** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:61 Saturday 09 December 2023 13:00:10 +0000 (0:00:00.568) 0:00:12.322 ***** included: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:2 Saturday 09 December 2023 13:00:10 +0000 (0:00:00.033) 0:00:12.355 ***** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:9 Saturday 09 December 2023 13:00:10 +0000 (0:00:00.007) 0:00:12.362 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:14 Saturday 09 December 2023 13:00:10 +0000 (0:00:00.017) 0:00:12.380 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:18 Saturday 09 December 2023 13:00:10 +0000 (0:00:00.016) 0:00:12.396 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 Saturday 09 December 2023 13:00:10 +0000 (0:00:00.017) 0:00:12.413 ***** 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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:40 Saturday 09 December 2023 13:00:11 +0000 (0:00:01.223) 0:00:13.637 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126808.3591597, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "da700151eca07697d03b524e5b8376503369ac0c", "ctime": 1702126808.4471574, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 25166115, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1702126808.35616, "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": "2615948066", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:45 Saturday 09 December 2023 13:00:11 +0000 (0:00:00.206) 0:00:13.844 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:51 Saturday 09 December 2023 13:00:11 +0000 (0:00:00.020) 0:00:13.864 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:63 Saturday 09 December 2023 13:00:11 +0000 (0:00:00.023) 0:00:13.888 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:69 Saturday 09 December 2023 13:00:11 +0000 (0:00:00.045) 0:00:13.934 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126808.3061612, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "57fb0b8fc276b94e7823e70c5a4373dc9139aeee", "ctime": 1702126808.4471574, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 8388814, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1702126808.35616, "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": "3173138744", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:74 Saturday 09 December 2023 13:00:11 +0000 (0:00:00.216) 0:00:14.150 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:80 Saturday 09 December 2023 13:00:11 +0000 (0:00:00.020) 0:00:14.170 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:92 Saturday 09 December 2023 13:00:11 +0000 (0:00:00.023) 0:00:14.193 ***** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "A1:0A:07:64:82:9C:42:E9:9E:42:8B:99:30:6B:DD:71:0B:9E:BF:E2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "56:51:69:8E:3C:42:20:8D:79:6B:F0:DB:81:6A:1D:C5:1C:CC:48:9E:7F:93:AA:EA:58:BA:24:EC:90:A7:7B:03:4A:C7:B0:1F:3C:57:DB:FE:E3:A6:CA:FA:25:BA:BC:DB:7A:B4:62:11:89:64:FA:6A:7B:E7:E9:7E:71:2F:49:0A:B8:8B:CB:9F:C6:D9:EA:21:E7:09:EA:1C:01:F8:90:51:71:4D:1C:70:12:8A:EE:AE:17:5E:66:41:DD:B8:F4:37:0D:10:2E:54:2D:99:3C:E4:3B:51:1A:55:07:4F:15:A5:4F:10:EB:40:E5:9A:10:CD:2D:38:73:02:10:E0:A0:2B:32:E1:B5:CD:88:4F:BE:C6:5E:CC:AD:B0:49:D2:1D:BB:60:83:62:E1:AE:C6:BC:72:49:E8:C3:A4:AC:14:85:D1:17:65:1E:D4:D3:CB:17:56:0A:79:95:D1:D8:37:02:AA:9E:2F:AC:DA:FD:96:40:F7:F3:C6:41:74:4F:17:42:BC:F2:29:48:E1:B1:5D:88:D6:FA:9C:AF:7F:29:80:F9:3A:E6:9F:0C:40:25:84:AB:2E:BC:9D:B2:3A:E8:A3:5C:10:05:92:8B:94:79:1D:84:C7:5A:49:48:10:4A:EE:18:71:68:E0:BD:DE:12:19:7F:0F:5F:67:5B:95:46:37:DB:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130008Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:98 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.426) 0:00:14.620 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "A1:0A:07:64:82:9C:42:E9:9E:42:8B:99:30:6B:DD:71:0B:9E:BF:E2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "56:51:69:8E:3C:42:20:8D:79:6B:F0:DB:81:6A:1D:C5:1C:CC:48:9E:7F:93:AA:EA:58:BA:24:EC:90:A7:7B:03:4A:C7:B0:1F:3C:57:DB:FE:E3:A6:CA:FA:25:BA:BC:DB:7A:B4:62:11:89:64:FA:6A:7B:E7:E9:7E:71:2F:49:0A:B8:8B:CB:9F:C6:D9:EA:21:E7:09:EA:1C:01:F8:90:51:71:4D:1C:70:12:8A:EE:AE:17:5E:66:41:DD:B8:F4:37:0D:10:2E:54:2D:99:3C:E4:3B:51:1A:55:07:4F:15:A5:4F:10:EB:40:E5:9A:10:CD:2D:38:73:02:10:E0:A0:2B:32:E1:B5:CD:88:4F:BE:C6:5E:CC:AD:B0:49:D2:1D:BB:60:83:62:E1:AE:C6:BC:72:49:E8:C3:A4:AC:14:85:D1:17:65:1E:D4:D3:CB:17:56:0A:79:95:D1:D8:37:02:AA:9E:2F:AC:DA:FD:96:40:F7:F3:C6:41:74:4F:17:42:BC:F2:29:48:E1:B1:5D:88:D6:FA:9C:AF:7F:29:80:F9:3A:E6:9F:0C:40:25:84:AB:2E:BC:9D:B2:3A:E8:A3:5C:10:05:92:8B:94:79:1D:84:C7:5A:49:48:10:4A:EE:18:71:68:E0:BD:DE:12:19:7F:0F:5F:67:5B:95:46:37:DB:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130008Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:102 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.019) 0:00:14.640 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:111 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.019) 0:00:14.659 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:120 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.019) 0:00:14.678 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:127 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.019) 0:00:14.698 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:138 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.021) 0:00:14.719 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:151 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.022) 0:00:14.742 ***** 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.055468", "end": "2023-12-09 13:00:12.839269", "rc": 0, "start": "2023-12-09 13:00:12.783801" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:160 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.319) 0:00:15.062 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:2 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.029) 0:00:15.091 ***** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:9 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.009) 0:00:15.100 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:14 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.020) 0:00:15.121 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:18 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.018) 0:00:15.140 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 Saturday 09 December 2023 13:00:12 +0000 (0:00:00.017) 0:00:15.158 ***** 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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:40 Saturday 09 December 2023 13:00:14 +0000 (0:00:01.216) 0:00:16.374 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126809.3121336, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b7552e60956811aba083a58172c0eda99fe5b3eb", "ctime": 1702126809.44413, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 25166326, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1702126809.3091335, "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": "3905373542", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:45 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.209) 0:00:16.584 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:51 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.032) 0:00:16.616 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:63 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.023) 0:00:16.639 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:69 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.022) 0:00:16.661 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126809.264135, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7255aab90c44e73e6500e0d647acd854c640b85d", "ctime": 1702126809.44413, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 8388838, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1702126809.3091335, "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": "3600219012", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:74 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.206) 0:00:16.868 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:80 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.030) 0:00:16.899 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:92 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.023) 0:00:16.922 ***** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "16:7C:33:96:2B:DE:72:21:4D:85:5A:78:4E:F8:04:88:72:BA:AA:C9" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3D:2F:C6:88:5C:11:EC:91:D0:18:47:1E:C8:C7:42:48:E7:90:5C:20:64:77:21:C1:7F:B0:EC:47:1F:DB:72:AC:34:77:44:09:4F:27:DC:BB:78:5C:E4:32:B9:B7:F2:5F:63:53:30:25:67:47:B8:D9:8F:21:93:94:5D:79:C9:60:6D:63:66:74:0C:A8:FD:E2:02:B8:AF:00:69:FD:B4:A5:F1:3A:6A:2F:46:AC:98:67:D0:AF:22:9B:A6:9B:70:9B:96:CC:02:04:D4:79:B9:00:07:C2:3F:F9:C6:ED:39:FA:D6:65:F9:29:BC:AD:21:A2:AA:B3:BD:BB:37:BD:19:D3:8E:A4:93:23:4C:13:4F:77:46:C4:CA:5F:39:43:4D:00:46:73:65:A1:3A:7A:53:CD:0D:38:0F:7D:B9:39:25:3B:0B:9C:C8:96:A3:F0:A5:3D:49:9D:97:EF:C1:A2:91:BE:FE:C0:42:B0:9C:09:8B:61:24:C3:B5:5C:EF:F0:D1:29:ED:E7:FF:E6:06:41:93:6C:80:31:33:2F:24:25:2E:BE:C8:65:9A:E2:C1:02:E7:CF:39:08:E4:DE:55:01:2D:D1:BE:A7:94:23:05:0C:20:D3:11:35:43:77:4C:13:B7:59:BD:C0:41:EB:41:F6:70:CA:57:82:82:C0:50:EF:B9:86" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130009Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:98 Saturday 09 December 2023 13:00:14 +0000 (0:00:00.268) 0:00:17.191 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "16:7C:33:96:2B:DE:72:21:4D:85:5A:78:4E:F8:04:88:72:BA:AA:C9" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3D:2F:C6:88:5C:11:EC:91:D0:18:47:1E:C8:C7:42:48:E7:90:5C:20:64:77:21:C1:7F:B0:EC:47:1F:DB:72:AC:34:77:44:09:4F:27:DC:BB:78:5C:E4:32:B9:B7:F2:5F:63:53:30:25:67:47:B8:D9:8F:21:93:94:5D:79:C9:60:6D:63:66:74:0C:A8:FD:E2:02:B8:AF:00:69:FD:B4:A5:F1:3A:6A:2F:46:AC:98:67:D0:AF:22:9B:A6:9B:70:9B:96:CC:02:04:D4:79:B9:00:07:C2:3F:F9:C6:ED:39:FA:D6:65:F9:29:BC:AD:21:A2:AA:B3:BD:BB:37:BD:19:D3:8E:A4:93:23:4C:13:4F:77:46:C4:CA:5F:39:43:4D:00:46:73:65:A1:3A:7A:53:CD:0D:38:0F:7D:B9:39:25:3B:0B:9C:C8:96:A3:F0:A5:3D:49:9D:97:EF:C1:A2:91:BE:FE:C0:42:B0:9C:09:8B:61:24:C3:B5:5C:EF:F0:D1:29:ED:E7:FF:E6:06:41:93:6C:80:31:33:2F:24:25:2E:BE:C8:65:9A:E2:C1:02:E7:CF:39:08:E4:DE:55:01:2D:D1:BE:A7:94:23:05:0C:20:D3:11:35:43:77:4C:13:B7:59:BD:C0:41:EB:41:F6:70:CA:57:82:82:C0:50:EF:B9:86" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130009Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:102 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.019) 0:00:17.210 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:111 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.020) 0:00:17.231 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:120 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.020) 0:00:17.251 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:127 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.019) 0:00:17.271 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:138 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.023) 0:00:17.294 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:151 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.029) 0:00:17.324 ***** 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.055770", "end": "2023-12-09 13:00:15.366964", "rc": 0, "start": "2023-12-09 13:00:15.311194" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:160 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.258) 0:00:17.582 ***** 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-cit1urbdte/tests/tests_fs_attrs.yml:67 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.023) 0:00:17.606 ***** ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.499) 0:00:18.106 ***** included: /WORKDIR/git-weekly-cit1urbdte/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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.026) 0:00:18.132 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.018) 0:00:18.151 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.017) 0:00:18.168 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 09 December 2023 13:00:15 +0000 (0:00:00.017) 0:00:18.185 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 09 December 2023 13:00:16 +0000 (0:00:00.028) 0:00:18.214 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 09 December 2023 13:00:17 +0000 (0:00:01.224) 0:00:19.438 ***** ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 09 December 2023 13:00:18 +0000 (0:00:01.223) 0:00:20.662 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 09 December 2023 13:00:18 +0000 (0:00:00.208) 0:00:20.871 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 09 December 2023 13:00:18 +0000 (0:00:00.220) 0:00:21.091 ***** ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2023-12-09 13:00:07 UTC", "ActiveEnterTimestampMonotonic": "353790771", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target dbus.socket system.slice sysinit.target basic.target dbus.service syslog.target systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2023-12-09 13:00:07 UTC", "AssertTimestampMonotonic": "353778587", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2023-12-09 13:00:07 UTC", "ConditionTimestampMonotonic": "353778585", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "6631", "ExecMainStartTimestamp": "Sat 2023-12-09 13:00:07 UTC", "ExecMainStartTimestampMonotonic": "353779642", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2023-12-09 13:00:07 UTC] ; stop_time=[n/a] ; pid=6631 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2023-12-09 13:00:07 UTC", "InactiveExitTimestampMonotonic": "353779692", "InvocationID": "c47ff50aa27a4d6fb48c8f39a5c73e0a", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "13957", "LimitNPROCSoft": "13957", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13957", "LimitSIGPENDINGSoft": "13957", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6631", "MemoryAccounting": "yes", "MemoryCurrent": "3551232", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2023-12-09 13:00:07 UTC", "StateChangeTimestampMonotonic": "353790771", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22331", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2023-12-09 13:00:07 UTC", "WatchdogTimestampMonotonic": "353790769", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 09 December 2023 13:00:19 +0000 (0:00:00.326) 0:00:21.417 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 09 December 2023 13:00:20 +0000 (0:00:01.149) 0:00:22.567 ***** 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-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 09 December 2023 13:00:20 +0000 (0:00:00.031) 0:00:22.599 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 09 December 2023 13:00:20 +0000 (0:00:00.018) 0:00:22.617 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 09 December 2023 13:00:20 +0000 (0:00:00.017) 0:00:22.635 ***** 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-cit1urbdte/tests/tests_fs_attrs.yml:85 Saturday 09 December 2023 13:00:20 +0000 (0:00:00.019) 0:00:22.655 ***** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:112 Saturday 09 December 2023 13:00:20 +0000 (0:00:00.494) 0:00:23.149 ***** included: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:2 Saturday 09 December 2023 13:00:20 +0000 (0:00:00.033) 0:00:23.182 ***** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:9 Saturday 09 December 2023 13:00:20 +0000 (0:00:00.010) 0:00:23.193 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:14 Saturday 09 December 2023 13:00:21 +0000 (0:00:00.019) 0:00:23.213 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:18 Saturday 09 December 2023 13:00:21 +0000 (0:00:00.017) 0:00:23.230 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 Saturday 09 December 2023 13:00:21 +0000 (0:00:00.017) 0:00:23.247 ***** 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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:40 Saturday 09 December 2023 13:00:22 +0000 (0:00:01.225) 0:00:24.473 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126819.6208491, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "92fefde6aba8031ffd78fa2c10d65f9cd277308f", "ctime": 1702126819.666848, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 25166327, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1702126819.6178493, "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": "3232668315", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:45 Saturday 09 December 2023 13:00:22 +0000 (0:00:00.206) 0:00:24.680 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:51 Saturday 09 December 2023 13:00:22 +0000 (0:00:00.019) 0:00:24.700 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:63 Saturday 09 December 2023 13:00:22 +0000 (0:00:00.027) 0:00:24.727 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:69 Saturday 09 December 2023 13:00:22 +0000 (0:00:00.038) 0:00:24.766 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126819.5728505, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "371c1370c7a888bc060cf4798cf09911904f1331", "ctime": 1702126819.6678479, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 8388839, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1702126819.6178493, "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": "1793254525", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:74 Saturday 09 December 2023 13:00:22 +0000 (0:00:00.206) 0:00:24.972 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:80 Saturday 09 December 2023 13:00:22 +0000 (0:00:00.019) 0:00:24.991 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:92 Saturday 09 December 2023 13:00:22 +0000 (0:00:00.022) 0:00:25.013 ***** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "A6:9C:EF:D3:DC:77:63:C4:2F:77:BA:4A:33:38:DA:76:CF:3A:97:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0D:C7:54:92:9D:91:F3:7A:EF:2D:37:FD:29:A2:14:53:A6:6F:A9:EF:1F:5D:33:19:07:33:5F:21:33:60:9A:17:C3:02:23:74:CC:EF:C7:56:4C:6E:BA:13:81:D7:2F:AB:2B:E6:A4:65:30:B7:1F:FA:13:B5:F1:7B:56:AB:FF:47:19:0A:F9:4E:0A:9B:0F:3C:A2:65:B9:8E:4D:DA:BB:93:F2:91:10:E2:DA:9B:A0:89:10:2F:57:B2:C4:DB:BA:D7:69:C3:8E:18:99:17:4C:3C:AC:E9:FD:D5:97:47:7A:8E:20:92:0C:BF:7A:2C:36:8C:73:CE:49:B7:71:99:21:B8:25:E4:60:04:3C:4D:DF:FF:D6:D8:5D:D5:8F:78:AA:8F:CC:37:0D:56:04:7D:96:3F:48:62:5E:F6:74:04:37:BE:A5:60:61:26:B4:96:F4:FC:64:D3:D3:F4:30:5A:5D:5A:5C:83:0B:88:8A:97:2B:B8:DE:DC:5B:1E:C7:61:69:EF:C5:97:07:9E:25:7E:8F:09:B4:CD:56:3E:77:E5:D1:84:43:49:0E:39:E9:6C:33:BA:D8:02:78:5B:AE:EB:5F:72:28:2D:CF:C3:AA:27:4D:C0:A7:EB:B9:76:5D:1F:99:AC:7F:B1:3C:F3:C3:9D:67:AD:EA:D4:83:8E:0D:DD:F8:71" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130019Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:98 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.264) 0:00:25.277 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "A6:9C:EF:D3:DC:77:63:C4:2F:77:BA:4A:33:38:DA:76:CF:3A:97:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0D:C7:54:92:9D:91:F3:7A:EF:2D:37:FD:29:A2:14:53:A6:6F:A9:EF:1F:5D:33:19:07:33:5F:21:33:60:9A:17:C3:02:23:74:CC:EF:C7:56:4C:6E:BA:13:81:D7:2F:AB:2B:E6:A4:65:30:B7:1F:FA:13:B5:F1:7B:56:AB:FF:47:19:0A:F9:4E:0A:9B:0F:3C:A2:65:B9:8E:4D:DA:BB:93:F2:91:10:E2:DA:9B:A0:89:10:2F:57:B2:C4:DB:BA:D7:69:C3:8E:18:99:17:4C:3C:AC:E9:FD:D5:97:47:7A:8E:20:92:0C:BF:7A:2C:36:8C:73:CE:49:B7:71:99:21:B8:25:E4:60:04:3C:4D:DF:FF:D6:D8:5D:D5:8F:78:AA:8F:CC:37:0D:56:04:7D:96:3F:48:62:5E:F6:74:04:37:BE:A5:60:61:26:B4:96:F4:FC:64:D3:D3:F4:30:5A:5D:5A:5C:83:0B:88:8A:97:2B:B8:DE:DC:5B:1E:C7:61:69:EF:C5:97:07:9E:25:7E:8F:09:B4:CD:56:3E:77:E5:D1:84:43:49:0E:39:E9:6C:33:BA:D8:02:78:5B:AE:EB:5F:72:28:2D:CF:C3:AA:27:4D:C0:A7:EB:B9:76:5D:1F:99:AC:7F:B1:3C:F3:C3:9D:67:AD:EA:D4:83:8E:0D:DD:F8:71" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130019Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:102 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.020) 0:00:25.298 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:111 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.026) 0:00:25.325 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:120 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.021) 0:00:25.347 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:127 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.032) 0:00:25.379 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:138 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.030) 0:00:25.410 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:151 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.025) 0:00:25.436 ***** 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.060550", "end": "2023-12-09 13:00:23.475567", "rc": 0, "start": "2023-12-09 13:00:23.415017" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:160 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.256) 0:00:25.692 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:2 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.023) 0:00:25.716 ***** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:9 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.010) 0:00:25.727 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:14 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.019) 0:00:25.747 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:18 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.016) 0:00:25.764 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 Saturday 09 December 2023 13:00:23 +0000 (0:00:00.024) 0:00:25.788 ***** 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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:40 Saturday 09 December 2023 13:00:24 +0000 (0:00:01.211) 0:00:27.000 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126820.2258325, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cecf508620a70f71ab264848d499ba1a5c7ce9c5", "ctime": 1702126820.2228327, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25166328, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1702126820.2228327, "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": "1713317972", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:45 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.201) 0:00:27.201 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:51 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.019) 0:00:27.220 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:63 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.021) 0:00:27.242 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:69 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.025) 0:00:27.267 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1702126820.1778338, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c89231d1426e35809db88e155b924c09230653c8", "ctime": 1702126820.2228327, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8388948, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1702126820.2228327, "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": "375270240", "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-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:74 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.201) 0:00:27.469 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:80 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.019) 0:00:27.489 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:92 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.021) 0:00:27.510 ***** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "C4:35:1C:6A:CA:F7:1D:2F:B6:92:CA:B6:BE:9A:DD:16:99:CD:4E:25" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "88:2F:2E:8E:80:53:4B:0B:51:F2:5D:B8:90:91:57:7A:65:20:19:39:EC:B2:F7:85:7C:DB:06:DD:DD:5E:4A:A2:05:8C:D9:82:67:68:B6:38:6C:3D:A3:C5:C4:C8:06:B9:F0:1E:1B:C0:B7:58:D0:11:33:46:B7:C7:C6:81:C2:0A:D1:15:34:E1:06:F0:94:E1:97:48:2B:96:CF:DD:61:30:50:5E:9B:29:80:DA:B0:BC:E8:36:E2:39:E2:DA:3F:F7:33:53:40:48:14:91:AE:25:FB:49:33:9E:CE:ED:8D:27:F9:9B:33:57:50:17:47:48:72:A9:27:B8:39:97:A4:3E:D6:D4:3C:A0:EB:2A:1E:E5:8A:76:12:A1:FA:8C:51:5B:83:4A:42:D1:44:CD:7A:15:15:FF:C4:B9:12:2C:40:45:BC:2C:00:30:1D:42:FF:2F:28:AC:3D:D3:12:79:60:B2:49:6A:C0:76:84:AD:7A:81:64:EC:99:F9:6A:65:4D:6F:07:25:15:B2:9B:A8:DD:64:28:47:19:1E:68:EE:D1:A8:37:27:C0:F1:55:6C:D5:35:1C:3C:AA:75:9B:F5:56:A9:98:D8:E0:21:F3:7E:95:C6:FF:E9:04:EC:EB:CE:19:6F:D5:90:02:EA:97:A6:80:26:BA:03:AA:14:B3:FA:32:47" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130020Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:98 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.266) 0:00:27.776 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "64:1B:0F:12:5D:AD:5F:45:29:89:1D:96:8E:04:49:74:C0:51:7B:15" }, "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": "C4:35:1C:6A:CA:F7:1D:2F:B6:92:CA:B6:BE:9A:DD:16:99:CD:4E:25" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "88:2F:2E:8E:80:53:4B:0B:51:F2:5D:B8:90:91:57:7A:65:20:19:39:EC:B2:F7:85:7C:DB:06:DD:DD:5E:4A:A2:05:8C:D9:82:67:68:B6:38:6C:3D:A3:C5:C4:C8:06:B9:F0:1E:1B:C0:B7:58:D0:11:33:46:B7:C7:C6:81:C2:0A:D1:15:34:E1:06:F0:94:E1:97:48:2B:96:CF:DD:61:30:50:5E:9B:29:80:DA:B0:BC:E8:36:E2:39:E2:DA:3F:F7:33:53:40:48:14:91:AE:25:FB:49:33:9E:CE:ED:8D:27:F9:9B:33:57:50:17:47:48:72:A9:27:B8:39:97:A4:3E:D6:D4:3C:A0:EB:2A:1E:E5:8A:76:12:A1:FA:8C:51:5B:83:4A:42:D1:44:CD:7A:15:15:FF:C4:B9:12:2C:40:45:BC:2C:00:30:1D:42:FF:2F:28:AC:3D:D3:12:79:60:B2:49:6A:C0:76:84:AD:7A:81:64:EC:99:F9:6A:65:4D:6F:07:25:15:B2:9B:A8:DD:64:28:47:19:1E:68:EE:D1:A8:37:27:C0:F1:55:6C:D5:35:1C:3C:AA:75:9B:F5:56:A9:98:D8:E0:21:F3:7E:95:C6:FF:E9:04:EC:EB:CE:19:6F:D5:90:02:EA:97:A6:80:26:BA:03:AA:14:B3:FA:32:47" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20241209130007Z", "not_valid_before": "20231209130020Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:102 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.020) 0:00:27.797 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:111 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.020) 0:00:27.817 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:120 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.020) 0:00:27.838 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:127 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.024) 0:00:27.862 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:138 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.023) 0:00:27.886 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:151 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.023) 0:00:27.910 ***** 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.060952", "end": "2023-12-09 13:00:25.948459", "rc": 0, "start": "2023-12-09 13:00:25.887507" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:160 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.253) 0:00:28.163 ***** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=99 changed=9 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 Saturday 09 December 2023 13:00:25 +0000 (0:00:00.018) 0:00:28.182 ***** =============================================================================== linux-system-roles.certificate : Ensure provider packages are installed --- 3.73s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 2.70s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure certificate requests ------------ 1.72s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Ensure python3 is installed --------------------------------------------- 1.23s /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.22s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.22s /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider packages are installed --- 1.22s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 1.22s /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 1.21s /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate requests ------------ 1.15s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure provider service is running ----- 0.70s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.64s /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.57s /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.49s /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:14 -------------------- Parse certificate ------------------------------------------------------- 0.43s /WORKDIR/git-weekly-cit1urbdte/tests/tasks/assert_certificate_parameters.yml:92 Ensure user exists ------------------------------------------------------ 0.41s /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:5 --------------------- linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.38s /WORKDIR/git-weekly-cit1urbdte/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Ensure group "somegroup" exists ----------------------------------------- 0.37s /WORKDIR/git-weekly-cit1urbdte/tests/tests_fs_attrs.yml:9 --------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---