# 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-cizvjcomp1/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:2 Saturday 27 July 2024 13:00:36 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:5 Saturday 27 July 2024 13:00:37 +0000 (0:00:00.649) 0:00:00.662 ********* 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-cizvjcomp1/tests/tests_fs_attrs.yml:9 Saturday 27 July 2024 13:00:37 +0000 (0:00:00.347) 0:00:01.009 ********* 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-cizvjcomp1/tests/tests_fs_attrs.yml:14 Saturday 27 July 2024 13:00:38 +0000 (0:00:00.271) 0:00:01.281 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 27 July 2024 13:00:38 +0000 (0:00:00.462) 0:00:01.744 ********* included: /WORKDIR/git-weekly-cizvjcomp1/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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 13:00:38 +0000 (0:00:00.010) 0:00:01.754 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 27 July 2024 13:00:38 +0000 (0:00:00.016) 0:00:01.771 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 27 July 2024 13:00:38 +0000 (0:00:00.221) 0:00:01.993 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 27 July 2024 13:00:38 +0000 (0:00:00.020) 0:00:02.013 ********* 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" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 27 July 2024 13:00:38 +0000 (0:00:00.029) 0:00:02.043 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 27 July 2024 13:00:42 +0000 (0:00:03.670) 0:00:05.713 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-2.el8.x86_64", "Installed: xmlrpc-c-client-1.51.0-9.el8.x86_64", "Installed: xmlrpc-c-1.51.0-9.el8.x86_64" ] } lsrpackages: certmonger TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 27 July 2024 13:00:46 +0000 (0:00:04.114) 0:00:09.828 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 27 July 2024 13:00:47 +0000 (0:00:00.309) 0:00:10.138 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 27 July 2024 13:00:47 +0000 (0:00:00.248) 0:00:10.386 ********* 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": "systemd-journald.socket dbus.service network.target sysinit.target basic.target dbus.socket syslog.target system.slice", "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": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "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 system.slice sysinit.target", "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": "22405", "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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 27 July 2024 13:00:48 +0000 (0:00:00.790) 0:00:11.177 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 27 July 2024 13:00:49 +0000 (0:00:01.689) 0:00:12.867 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 27 July 2024 13:00:49 +0000 (0:00:00.031) 0:00:12.898 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 27 July 2024 13:00:49 +0000 (0:00:00.017) 0:00:12.915 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 27 July 2024 13:00:49 +0000 (0:00:00.018) 0:00:12.933 ********* 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-cizvjcomp1/tests/tests_fs_attrs.yml:32 Saturday 27 July 2024 13:00:49 +0000 (0:00:00.020) 0:00:12.954 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:61 Saturday 27 July 2024 13:00:50 +0000 (0:00:00.589) 0:00:13.543 ********* included: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:00:50 +0000 (0:00:00.031) 0:00:13.575 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:00:50 +0000 (0:00:00.008) 0:00:13.584 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:00:50 +0000 (0:00:00.016) 0:00:13.601 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:00:50 +0000 (0:00:00.015) 0:00:13.617 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 13:00:50 +0000 (0:00:00.016) 0:00:13.634 ********* 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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 13:00:52 +0000 (0:00:02.374) 0:00:16.008 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085248.9338777, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8c3b12d87176df7ff74cf45f7317a78685e9a1fa", "ctime": 1722085249.102878, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894939, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722085248.9298778, "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": "3920731917", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.186) 0:00:16.195 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.019) 0:00:16.214 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.021) 0:00:16.236 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.019) 0:00:16.255 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085248.8588777, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "003c2bba42371ae25f8c01dc1df574073fa84fa9", "ctime": 1722085249.103878, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894912, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722085248.9298778, "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": "1174128942", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.190) 0:00:16.446 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.019) 0:00:16.465 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.021) 0:00:16.486 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "11:DF:0C:B9:54:E2:F5:5C:9E:7D:AF:7D:76:2F:AE:22:F1:9F:15:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "76:02:00:55:8D:18:5D:AF:31:40:FC:BB:CC:00:43:CF:D9:27:E9:6C:FB:6E:BC:D7:61:F0:9F:07:FD:4A:35:5E:43:F0:8A:E2:7D:88:98:98:1F:75:61:58:BB:05:52:19:F8:7E:A0:E7:5B:BC:59:EB:B1:24:2A:65:C6:B3:00:DC:04:2D:18:60:5C:7A:F2:2E:15:71:19:7F:46:0C:0F:BD:27:91:65:56:FF:4D:D7:5A:76:72:7D:5E:C5:8F:41:C1:48:C3:0C:F8:9D:2B:FC:5F:0E:3D:0E:D9:EA:19:5D:34:D8:C2:FE:F6:5C:AA:DD:CD:41:EB:EB:E9:98:B4:D5:F8:8A:A8:CA:4B:0A:4D:04:38:63:64:99:9A:AA:0C:09:F8:A0:97:FB:FC:2F:AD:9C:CA:AB:77:CF:41:A0:F3:10:0A:86:DE:DA:0E:6C:AB:D5:2C:79:B1:F5:03:8E:7B:80:93:EC:A9:5B:7E:26:FA:2B:1C:38:61:34:94:30:2B:03:DE:30:3C:30:0A:01:CD:68:57:99:91:38:6C:28:D7:94:50:07:2A:69:58:08:71:CE:F9:69:BE:AC:9B:DC:A9:89:90:8B:20:0A:96:43:DD:6E:8C:14:F0:F0:4F:51:70:0E:22:73:5F:74:1F:81:B0:54:96:AC:BE:7C:02:DF:34:B1:B2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130048Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.412) 0:00:16.899 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "11:DF:0C:B9:54:E2:F5:5C:9E:7D:AF:7D:76:2F:AE:22:F1:9F:15:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "76:02:00:55:8D:18:5D:AF:31:40:FC:BB:CC:00:43:CF:D9:27:E9:6C:FB:6E:BC:D7:61:F0:9F:07:FD:4A:35:5E:43:F0:8A:E2:7D:88:98:98:1F:75:61:58:BB:05:52:19:F8:7E:A0:E7:5B:BC:59:EB:B1:24:2A:65:C6:B3:00:DC:04:2D:18:60:5C:7A:F2:2E:15:71:19:7F:46:0C:0F:BD:27:91:65:56:FF:4D:D7:5A:76:72:7D:5E:C5:8F:41:C1:48:C3:0C:F8:9D:2B:FC:5F:0E:3D:0E:D9:EA:19:5D:34:D8:C2:FE:F6:5C:AA:DD:CD:41:EB:EB:E9:98:B4:D5:F8:8A:A8:CA:4B:0A:4D:04:38:63:64:99:9A:AA:0C:09:F8:A0:97:FB:FC:2F:AD:9C:CA:AB:77:CF:41:A0:F3:10:0A:86:DE:DA:0E:6C:AB:D5:2C:79:B1:F5:03:8E:7B:80:93:EC:A9:5B:7E:26:FA:2B:1C:38:61:34:94:30:2B:03:DE:30:3C:30:0A:01:CD:68:57:99:91:38:6C:28:D7:94:50:07:2A:69:58:08:71:CE:F9:69:BE:AC:9B:DC:A9:89:90:8B:20:0A:96:43:DD:6E:8C:14:F0:F0:4F:51:70:0E:22:73:5F:74:1F:81:B0:54:96:AC:BE:7C:02:DF:34:B1:B2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130048Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.019) 0:00:16.919 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.020) 0:00:16.939 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.019) 0:00:16.958 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.020) 0:00:16.979 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.024) 0:00:17.003 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 13:00:53 +0000 (0:00:00.022) 0:00:17.026 ********* 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.047347", "end": "2024-07-27 13:00:54.253195", "rc": 0, "start": "2024-07-27 13:00:54.205848" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 13:00:54 +0000 (0:00:00.289) 0:00:17.315 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:00:54 +0000 (0:00:00.020) 0:00:17.336 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:00:54 +0000 (0:00:00.008) 0:00:17.344 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:00:54 +0000 (0:00:00.016) 0:00:17.361 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:00:54 +0000 (0:00:00.017) 0:00:17.379 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 13:00:54 +0000 (0:00:00.017) 0:00:17.396 ********* 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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 13:00:56 +0000 (0:00:02.332) 0:00:19.728 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085249.637879, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "468ec44899d4a4fbc820afd6d567b3ed103799a4", "ctime": 1722085249.7868793, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894943, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722085249.633879, "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": "1555201643", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 13:00:56 +0000 (0:00:00.187) 0:00:19.915 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 13:00:56 +0000 (0:00:00.019) 0:00:19.934 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 13:00:56 +0000 (0:00:00.021) 0:00:19.956 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 13:00:56 +0000 (0:00:00.019) 0:00:19.975 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085249.5598788, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1d9b21e77759c8dcea5f136e5980ad2ce193759c", "ctime": 1722085249.7868793, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894941, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722085249.633879, "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": "2184658907", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.188) 0:00:20.164 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.019) 0:00:20.183 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.021) 0:00:20.204 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "84:CC:C6:32:0C:58:F1:48:FC:E4:25:DE:AA:48:2F:04:9F:43:2C:3D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "17:00:8B:50:BA:18:98:DB:F0:28:15:BF:AD:31:42:46:75:FF:36:5D:EB:BC:18:05:5F:B5:C0:DC:82:79:72:BB:B2:A9:F7:C7:93:21:02:5B:EB:65:4B:F3:25:1A:CB:FC:B5:D5:49:51:6A:A3:5A:71:B9:A1:74:E4:CC:CE:A7:79:DC:31:CF:C8:E0:72:3E:6E:34:14:D9:66:FD:F7:69:77:53:CC:5D:BE:2D:29:76:D6:D7:DD:88:1F:40:92:A1:20:36:78:E3:77:81:33:03:E8:25:77:2B:9D:F3:11:C1:49:B0:5B:31:22:95:8B:DC:85:54:BA:A3:4C:0A:19:26:B4:B4:A3:0D:48:AC:C3:E9:A7:2C:8A:93:94:EB:8D:BA:CA:33:EB:D9:09:DC:A8:58:98:D0:10:64:ED:B0:64:A4:07:D3:7E:77:23:62:DC:FA:90:A1:7B:B7:62:86:F1:59:01:12:A7:27:79:57:14:C7:AD:C7:91:CD:39:02:23:AC:B2:BA:09:AB:7C:A6:BB:F0:82:50:65:97:1D:0A:A6:43:B2:17:61:87:7E:E9:78:41:E2:AD:C2:73:52:B7:20:AA:36:82:CF:75:B3:8A:CD:B8:30:43:4E:D9:88:D6:E5:A9:01:48:F1:87:9D:2F:84:79:8F:42:26:C6:A4:82:32:6A:50" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130049Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.240) 0:00:20.445 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "84:CC:C6:32:0C:58:F1:48:FC:E4:25:DE:AA:48:2F:04:9F:43:2C:3D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "17:00:8B:50:BA:18:98:DB:F0:28:15:BF:AD:31:42:46:75:FF:36:5D:EB:BC:18:05:5F:B5:C0:DC:82:79:72:BB:B2:A9:F7:C7:93:21:02:5B:EB:65:4B:F3:25:1A:CB:FC:B5:D5:49:51:6A:A3:5A:71:B9:A1:74:E4:CC:CE:A7:79:DC:31:CF:C8:E0:72:3E:6E:34:14:D9:66:FD:F7:69:77:53:CC:5D:BE:2D:29:76:D6:D7:DD:88:1F:40:92:A1:20:36:78:E3:77:81:33:03:E8:25:77:2B:9D:F3:11:C1:49:B0:5B:31:22:95:8B:DC:85:54:BA:A3:4C:0A:19:26:B4:B4:A3:0D:48:AC:C3:E9:A7:2C:8A:93:94:EB:8D:BA:CA:33:EB:D9:09:DC:A8:58:98:D0:10:64:ED:B0:64:A4:07:D3:7E:77:23:62:DC:FA:90:A1:7B:B7:62:86:F1:59:01:12:A7:27:79:57:14:C7:AD:C7:91:CD:39:02:23:AC:B2:BA:09:AB:7C:A6:BB:F0:82:50:65:97:1D:0A:A6:43:B2:17:61:87:7E:E9:78:41:E2:AD:C2:73:52:B7:20:AA:36:82:CF:75:B3:8A:CD:B8:30:43:4E:D9:88:D6:E5:A9:01:48:F1:87:9D:2F:84:79:8F:42:26:C6:A4:82:32:6A:50" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130049Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.019) 0:00:20.465 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.020) 0:00:20.485 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.019) 0:00:20.505 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.018) 0:00:20.523 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.022) 0:00:20.545 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.021) 0:00:20.566 ********* 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.046942", "end": "2024-07-27 13:00:57.730578", "rc": 0, "start": "2024-07-27 13:00:57.683636" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.227) 0:00:20.793 ********* 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-cizvjcomp1/tests/tests_fs_attrs.yml:67 Saturday 27 July 2024 13:00:57 +0000 (0:00:00.023) 0:00:20.817 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 27 July 2024 13:00:58 +0000 (0:00:00.461) 0:00:21.278 ********* included: /WORKDIR/git-weekly-cizvjcomp1/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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 13:00:58 +0000 (0:00:00.010) 0:00:21.288 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 27 July 2024 13:00:58 +0000 (0:00:00.018) 0:00:21.306 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 27 July 2024 13:00:58 +0000 (0:00:00.016) 0:00:21.323 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 27 July 2024 13:00:58 +0000 (0:00:00.016) 0:00:21.340 ********* 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" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 27 July 2024 13:00:58 +0000 (0:00:00.058) 0:00:21.398 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 27 July 2024 13:01:00 +0000 (0:00:02.349) 0:00:23.747 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 27 July 2024 13:01:03 +0000 (0:00:02.373) 0:00:26.121 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 27 July 2024 13:01:03 +0000 (0:00:00.196) 0:00:26.318 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 27 July 2024 13:01:03 +0000 (0:00:00.196) 0:00:26.514 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-07-27 13:00:48 UTC", "ActiveEnterTimestampMonotonic": "776100987", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target sysinit.target systemd-journald.socket dbus.socket dbus.service syslog.target system.slice basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-27 13:00:48 UTC", "AssertTimestampMonotonic": "776086300", "Before": "shutdown.target multi-user.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 2024-07-27 13:00:48 UTC", "ConditionTimestampMonotonic": "776086299", "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": "10795", "ExecMainStartTimestamp": "Sat 2024-07-27 13:00:48 UTC", "ExecMainStartTimestampMonotonic": "776087274", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-07-27 13:00:48 UTC] ; stop_time=[n/a] ; pid=10795 ; 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 2024-07-27 13:00:48 UTC", "InactiveExitTimestampMonotonic": "776087428", "InvocationID": "60b47628af1b43fdb78a447219c61300", "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": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10795", "MemoryAccounting": "yes", "MemoryCurrent": "3567616", "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": "system.slice dbus.socket sysinit.target", "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 2024-07-27 13:00:48 UTC", "StateChangeTimestampMonotonic": "776100987", "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": "22405", "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 2024-07-27 13:00:48 UTC", "WatchdogTimestampMonotonic": "776100985", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 27 July 2024 13:01:03 +0000 (0:00:00.318) 0:00:26.833 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 27 July 2024 13:01:05 +0000 (0:00:01.512) 0:00:28.346 ********* 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-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.031) 0:00:28.377 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.016) 0:00:28.394 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.017) 0:00:28.412 ********* 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-cizvjcomp1/tests/tests_fs_attrs.yml:85 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.021) 0:00:28.434 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:112 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.438) 0:00:28.872 ********* included: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.030) 0:00:28.902 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.007) 0:00:28.909 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.016) 0:00:28.926 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.017) 0:00:28.943 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 13:01:05 +0000 (0:00:00.017) 0:00:28.960 ********* 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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 13:01:08 +0000 (0:00:02.341) 0:00:31.302 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085264.1749046, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2eb28f30a94b5584a4017e9509ed12cf0ba02008", "ctime": 1722085264.2159047, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894949, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722085264.1719046, "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": "1702036875", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.186) 0:00:31.488 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.019) 0:00:31.507 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.021) 0:00:31.529 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.019) 0:00:31.548 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085264.1289046, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "97d71b8289c5219cd9d17191620b5657b3315d34", "ctime": 1722085264.2169046, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894945, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722085264.1719046, "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": "260045485", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.188) 0:00:31.737 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.019) 0:00:31.756 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.022) 0:00:31.779 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "9B:77:DB:8C:10:50:CE:51:4F:89:CE:AB:7D:7A:6E:5C:07:EB:8A:F0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7C:EA:41:41:DD:63:31:65:B9:04:15:1B:35:06:8D:56:4F:11:46:93:98:F3:EF:B2:C8:E6:E2:F3:5F:B0:A9:22:FE:55:3E:27:D9:B5:52:C8:C4:FC:4B:4B:56:EC:01:05:6C:92:69:27:F9:99:77:78:F4:64:07:89:E4:17:40:2F:20:0F:F6:05:56:77:10:14:63:29:AD:3F:E9:DA:AB:0E:0D:DB:6D:43:56:8E:ED:4B:EB:7C:2D:A3:F0:24:CD:A0:96:BB:D2:C4:FE:96:17:F9:B5:9E:3D:AD:C0:DC:57:23:6E:F3:F8:A1:C6:6E:31:7A:32:D6:53:DC:29:A6:9C:54:F3:41:2B:2E:A0:5A:87:B5:A4:98:1E:4F:58:B8:DA:E7:3E:B9:33:D5:58:0A:F3:42:AE:73:5E:D9:8C:5B:12:C1:E5:78:6A:D7:57:BE:DE:0A:5E:9A:A5:08:A4:49:83:90:B0:B4:64:7C:46:2F:68:AF:2B:76:FB:C3:DC:A0:90:C4:D6:9B:52:59:2F:F5:50:D1:A9:0A:89:C7:58:3C:62:8D:00:1C:74:B7:19:B3:9A:25:EC:E5:FA:FC:94:6A:1B:F6:2C:32:55:DB:76:2D:8D:BD:01:21:90:1A:83:7F:89:ED:59:26:BF:B4:19:5C:DC:3C:20:54:DC:3B:CC:A0:D2:F2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130104Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 13:01:08 +0000 (0:00:00.245) 0:00:32.024 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "9B:77:DB:8C:10:50:CE:51:4F:89:CE:AB:7D:7A:6E:5C:07:EB:8A:F0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7C:EA:41:41:DD:63:31:65:B9:04:15:1B:35:06:8D:56:4F:11:46:93:98:F3:EF:B2:C8:E6:E2:F3:5F:B0:A9:22:FE:55:3E:27:D9:B5:52:C8:C4:FC:4B:4B:56:EC:01:05:6C:92:69:27:F9:99:77:78:F4:64:07:89:E4:17:40:2F:20:0F:F6:05:56:77:10:14:63:29:AD:3F:E9:DA:AB:0E:0D:DB:6D:43:56:8E:ED:4B:EB:7C:2D:A3:F0:24:CD:A0:96:BB:D2:C4:FE:96:17:F9:B5:9E:3D:AD:C0:DC:57:23:6E:F3:F8:A1:C6:6E:31:7A:32:D6:53:DC:29:A6:9C:54:F3:41:2B:2E:A0:5A:87:B5:A4:98:1E:4F:58:B8:DA:E7:3E:B9:33:D5:58:0A:F3:42:AE:73:5E:D9:8C:5B:12:C1:E5:78:6A:D7:57:BE:DE:0A:5E:9A:A5:08:A4:49:83:90:B0:B4:64:7C:46:2F:68:AF:2B:76:FB:C3:DC:A0:90:C4:D6:9B:52:59:2F:F5:50:D1:A9:0A:89:C7:58:3C:62:8D:00:1C:74:B7:19:B3:9A:25:EC:E5:FA:FC:94:6A:1B:F6:2C:32:55:DB:76:2D:8D:BD:01:21:90:1A:83:7F:89:ED:59:26:BF:B4:19:5C:DC:3C:20:54:DC:3B:CC:A0:D2:F2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130104Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.019) 0:00:32.043 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.020) 0:00:32.064 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.019) 0:00:32.083 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.019) 0:00:32.102 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.022) 0:00:32.124 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.021) 0:00:32.146 ********* 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.048759", "end": "2024-07-27 13:01:09.311746", "rc": 0, "start": "2024-07-27 13:01:09.262987" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.227) 0:00:32.374 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.020) 0:00:32.394 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.006) 0:00:32.401 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.017) 0:00:32.418 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.017) 0:00:32.435 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Saturday 27 July 2024 13:01:09 +0000 (0:00:00.018) 0:00:32.454 ********* 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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:40 Saturday 27 July 2024 13:01:11 +0000 (0:00:02.340) 0:00:34.795 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085265.1749065, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5187d926ce9d12568f7a49da6b1334abd8214216", "ctime": 1722085265.1719065, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894954, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722085265.1719065, "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": "323783441", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:45 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.188) 0:00:34.983 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:51 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.019) 0:00:35.002 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:63 Saturday 27 July 2024 13:01:11 +0000 (0:00:00.021) 0:00:35.024 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:69 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.020) 0:00:35.045 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722085265.1289062, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "48a844bb855097c50c8ba948787ad85ca1dc1867", "ctime": 1722085265.1719065, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894951, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722085265.1719065, "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": "2450956417", "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-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.192) 0:00:35.237 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:80 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.020) 0:00:35.257 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.021) 0:00:35.279 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "6E:68:0C:17:37:60:8E:48:88:BB:17:36:FB:05:39:9A:5B:4E:D7:FC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "93:92:CA:17:69:22:37:E7:5B:29:00:3A:4C:74:73:CB:02:D7:FE:12:90:2B:04:DC:31:96:BE:50:DE:37:3F:99:05:3C:03:C5:D0:35:0E:8F:C5:E9:22:91:B5:B0:A0:AA:C5:69:28:48:64:B6:12:BB:A8:C2:E8:19:7C:11:8E:55:1D:9F:B0:65:78:6B:24:25:66:F1:53:AF:BA:C8:EA:D1:A6:E5:38:9D:C9:C4:A5:FD:D0:2A:9B:79:44:58:51:63:48:3F:F5:7D:48:15:62:32:02:BD:87:C7:EB:57:D1:D0:8D:4F:88:D3:DE:E1:34:B9:4A:33:79:FE:73:57:58:A8:2A:60:34:0F:6C:AD:22:AC:7B:6B:37:3F:D0:0D:3E:0B:0C:C6:5D:B4:16:7A:D9:5D:E2:2D:65:06:DE:7C:4E:05:D1:22:EC:8D:8C:B9:AB:F0:A0:D2:15:FF:47:66:6F:55:8F:80:7C:11:65:38:63:CA:B6:4F:6C:83:6F:A2:ED:77:9E:78:E5:0F:02:DD:BB:90:EB:B8:B9:9E:D5:31:0B:DB:62:89:32:31:10:78:05:13:1D:45:D0:A0:52:91:4F:FB:B1:32:32:AF:6B:89:09:CE:D3:86:1C:42:DE:C1:50:5C:6B:3D:7C:A4:9A:B1:66:D7:AD:98:3C:36:53:04:A5:31" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130105Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:98 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.241) 0:00:35.520 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:15:2A:F2:F2:4C:FF:D5:C7:1B:24:CD:6A:2A:6A:87:5D:BF:77:C8" }, "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": "6E:68:0C:17:37:60:8E:48:88:BB:17:36:FB:05:39:9A:5B:4E:D7:FC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "93:92:CA:17:69:22:37:E7:5B:29:00:3A:4C:74:73:CB:02:D7:FE:12:90:2B:04:DC:31:96:BE:50:DE:37:3F:99:05:3C:03:C5:D0:35:0E:8F:C5:E9:22:91:B5:B0:A0:AA:C5:69:28:48:64:B6:12:BB:A8:C2:E8:19:7C:11:8E:55:1D:9F:B0:65:78:6B:24:25:66:F1:53:AF:BA:C8:EA:D1:A6:E5:38:9D:C9:C4:A5:FD:D0:2A:9B:79:44:58:51:63:48:3F:F5:7D:48:15:62:32:02:BD:87:C7:EB:57:D1:D0:8D:4F:88:D3:DE:E1:34:B9:4A:33:79:FE:73:57:58:A8:2A:60:34:0F:6C:AD:22:AC:7B:6B:37:3F:D0:0D:3E:0B:0C:C6:5D:B4:16:7A:D9:5D:E2:2D:65:06:DE:7C:4E:05:D1:22:EC:8D:8C:B9:AB:F0:A0:D2:15:FF:47:66:6F:55:8F:80:7C:11:65:38:63:CA:B6:4F:6C:83:6F:A2:ED:77:9E:78:E5:0F:02:DD:BB:90:EB:B8:B9:9E:D5:31:0B:DB:62:89:32:31:10:78:05:13:1D:45:D0:A0:52:91:4F:FB:B1:32:32:AF:6B:89:09:CE:D3:86:1C:42:DE:C1:50:5C:6B:3D:7C:A4:9A:B1:66:D7:AD:98:3C:36:53:04:A5:31" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727130048Z", "not_valid_before": "20240727130105Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:102 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.019) 0:00:35.539 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:111 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.020) 0:00:35.560 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:120 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.020) 0:00:35.580 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:127 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.019) 0:00:35.600 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:138 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.022) 0:00:35.622 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:151 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.021) 0:00:35.644 ********* 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.047198", "end": "2024-07-27 13:01:12.807098", "rc": 0, "start": "2024-07-27 13:01:12.759900" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:160 Saturday 27 July 2024 13:01:12 +0000 (0:00:00.227) 0:00:35.871 ********* 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 27 July 2024 13:01:12 +0000 (0:00:00.018) 0:00:35.890 ********* =============================================================================== linux-system-roles.certificate : Ensure provider packages are installed --- 4.11s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 3.67s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.37s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider packages are installed --- 2.37s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 2.35s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.34s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.34s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 2.33s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate requests ------------ 1.69s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.51s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure provider service is running ----- 0.79s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.65s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.59s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.46s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.46s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.44s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:85 -------------------- Parse certificate ------------------------------------------------------- 0.41s /WORKDIR/git-weekly-cizvjcomp1/tests/tasks/assert_certificate_parameters.yml:92 Ensure user exists ------------------------------------------------------ 0.35s /WORKDIR/git-weekly-cizvjcomp1/tests/tests_fs_attrs.yml:5 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.32s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.31s /WORKDIR/git-weekly-cizvjcomp1/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---