# 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-ci79ery48z/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:2 Saturday 03 August 2024 12:49:46 +0000 (0:00:00.012) 0:00:00.012 ******* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:5 Saturday 03 August 2024 12:49:47 +0000 (0:00:00.708) 0:00:00.720 ******* 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-ci79ery48z/tests/tests_fs_attrs.yml:9 Saturday 03 August 2024 12:49:47 +0000 (0:00:00.500) 0:00:01.220 ******* 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-ci79ery48z/tests/tests_fs_attrs.yml:14 Saturday 03 August 2024 12:49:47 +0000 (0:00:00.295) 0:00:01.515 ******* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 03 August 2024 12:49:48 +0000 (0:00:00.581) 0:00:02.097 ******* included: /WORKDIR/git-weekly-ci79ery48z/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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 12:49:48 +0000 (0:00:00.011) 0:00:02.108 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 03 August 2024 12:49:48 +0000 (0:00:00.017) 0:00:02.125 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 03 August 2024 12:49:48 +0000 (0:00:00.240) 0:00:02.365 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 03 August 2024 12:49:48 +0000 (0:00:00.029) 0:00:02.395 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 03 August 2024 12:49:48 +0000 (0:00:00.061) 0:00:02.456 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 03 August 2024 12:49:53 +0000 (0:00:04.379) 0:00:06.835 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-2.el9.x86_64", "Installed: python3-packaging-20.9-5.el9.noarch", "Installed: python3-pyparsing-2.4.7-9.el9.noarch" ] } lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 03 August 2024 12:49:55 +0000 (0:00:02.521) 0:00:09.357 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 03 August 2024 12:49:56 +0000 (0:00:00.272) 0:00:09.630 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 03 August 2024 12:49:56 +0000 (0:00:00.203) 0:00:09.833 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-journald.socket dbus-broker.service system.slice basic.target syslog.target network.target dbus.socket sysinit.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13964", "LimitNPROCSoft": "13964", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13964", "LimitSIGPENDINGSoft": "13964", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22342", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 03 August 2024 12:49:56 +0000 (0:00:00.718) 0:00:10.551 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 03 August 2024 12:49:58 +0000 (0:00:01.335) 0:00:11.887 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.034) 0:00:11.921 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.022) 0:00:11.944 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.019) 0:00:11.964 ******* 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-ci79ery48z/tests/tests_fs_attrs.yml:32 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.029) 0:00:11.994 ******* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:61 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.466) 0:00:12.460 ******* included: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.034) 0:00:12.495 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.010) 0:00:12.506 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.018) 0:00:12.524 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:49:58 +0000 (0:00:00.017) 0:00:12.542 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 12:49:59 +0000 (0:00:00.034) 0:00:12.576 ******* 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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 12:49:59 +0000 (0:00:00.875) 0:00:13.452 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689397.5160527, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bab21fb5eb4b4e549ba35ffff8240147ef2b2175", "ctime": 1722689397.6350548, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2561914, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689397.5130527, "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": "97028885", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.199) 0:00:13.651 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.021) 0:00:13.672 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.027) 0:00:13.699 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.020) 0:00:13.720 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689397.4570518, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e3d4922d5db2d513877230ed603cf1ed29ce7d1a", "ctime": 1722689397.6360548, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 359625, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689397.5130527, "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": "2628260531", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.195) 0:00:13.916 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.020) 0:00:13.937 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.022) 0:00:13.959 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "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": "D3:9E:44:13:71:F7:DF:B3:8E:62:C3:B4:78:86:26:B2:A2:C2:65:BD" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "83:2C:31:B6:17:DA:9C:4C:39:A0:F1:68:F5:FA:72:4C:7A:57:29:12:32:98:A7:4A:BB:C8:42:D0:DB:3C:CB:27:B7:86:7D:BC:C8:BC:85:5D:99:ED:79:82:D4:BA:A0:A3:9F:A0:FF:F5:B3:47:97:60:2B:FA:87:70:B1:D8:2E:EC:65:2A:07:6B:56:F0:D2:D7:68:94:A9:8F:09:9E:99:A5:18:D5:7D:EE:1B:E0:B7:C2:04:1D:A7:32:89:A6:5C:C9:0D:A3:AE:26:39:84:29:FF:76:61:7F:CD:B0:5A:B5:1C:0C:F9:6E:17:33:71:65:F0:EE:61:F7:D4:D9:9E:E4:A9:58:2F:90:AC:83:BF:73:5C:EE:50:9D:C5:D3:0C:13:EF:48:A2:44:67:29:2D:57:B6:6D:AF:9E:1D:5C:74:DE:1E:02:6C:BC:2E:A2:0E:DB:4D:30:A1:75:0B:A9:B9:16:89:E2:5C:12:B5:5E:49:37:C6:56:14:DF:7A:0E:3D:22:FD:5D:B9:7D:03:A1:3B:BF:B4:0D:50:E4:5D:B8:AC:95:9D:81:C9:17:9D:A5:55:76:52:88:E3:55:F9:5D:C0:99:29:37:B8:B9:C2:5C:02:06:CA:B9:2C:EB:7A:24:F4:33:3A:6A:54:0C:80:5C:27:9B:1B:B0:3D:42:9B:2D:E3:5E:A8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803124957Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.309) 0:00:14.269 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "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": "D3:9E:44:13:71:F7:DF:B3:8E:62:C3:B4:78:86:26:B2:A2:C2:65:BD" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "83:2C:31:B6:17:DA:9C:4C:39:A0:F1:68:F5:FA:72:4C:7A:57:29:12:32:98:A7:4A:BB:C8:42:D0:DB:3C:CB:27:B7:86:7D:BC:C8:BC:85:5D:99:ED:79:82:D4:BA:A0:A3:9F:A0:FF:F5:B3:47:97:60:2B:FA:87:70:B1:D8:2E:EC:65:2A:07:6B:56:F0:D2:D7:68:94:A9:8F:09:9E:99:A5:18:D5:7D:EE:1B:E0:B7:C2:04:1D:A7:32:89:A6:5C:C9:0D:A3:AE:26:39:84:29:FF:76:61:7F:CD:B0:5A:B5:1C:0C:F9:6E:17:33:71:65:F0:EE:61:F7:D4:D9:9E:E4:A9:58:2F:90:AC:83:BF:73:5C:EE:50:9D:C5:D3:0C:13:EF:48:A2:44:67:29:2D:57:B6:6D:AF:9E:1D:5C:74:DE:1E:02:6C:BC:2E:A2:0E:DB:4D:30:A1:75:0B:A9:B9:16:89:E2:5C:12:B5:5E:49:37:C6:56:14:DF:7A:0E:3D:22:FD:5D:B9:7D:03:A1:3B:BF:B4:0D:50:E4:5D:B8:AC:95:9D:81:C9:17:9D:A5:55:76:52:88:E3:55:F9:5D:C0:99:29:37:B8:B9:C2:5C:02:06:CA:B9:2C:EB:7A:24:F4:33:3A:6A:54:0C:80:5C:27:9B:1B:B0:3D:42:9B:2D:E3:5E:A8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803124957Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.020) 0:00:14.290 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.022) 0:00:14.312 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.019) 0:00:14.331 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.019) 0:00:14.351 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.021) 0:00:14.373 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 12:50:00 +0000 (0:00:00.022) 0:00:14.396 ******* 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.046980", "end": "2024-08-03 12:50:01.121398", "rc": 0, "start": "2024-08-03 12:50:01.074418" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 12:50:01 +0000 (0:00:00.300) 0:00:14.697 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:50:01 +0000 (0:00:00.021) 0:00:14.718 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:50:01 +0000 (0:00:00.008) 0:00:14.727 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:50:01 +0000 (0:00:00.017) 0:00:14.744 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:50:01 +0000 (0:00:00.017) 0:00:14.762 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 12:50:01 +0000 (0:00:00.019) 0:00:14.781 ******* 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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.899) 0:00:15.681 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689398.1850638, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c41da48031bd66d41538d13742cbaf0953960323", "ctime": 1722689398.2930655, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 2646539, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689398.1830637, "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": "1297766252", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.199) 0:00:15.880 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.019) 0:00:15.899 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.021) 0:00:15.921 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.020) 0:00:15.941 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689398.1300628, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fa4a1083a70e672cdec3156909f3a6a358f93410", "ctime": 1722689398.2930655, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 552382, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722689398.1830637, "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": "2931739080", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.215) 0:00:16.157 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.032) 0:00:16.189 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.024) 0:00:16.214 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "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": "9E:B4:FE:4C:27:36:3B:95:BE:48:FB:17:3F:57:4F:D2:EA:0A:FC:2E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "34:75:D6:EE:74:CB:6D:E4:5D:B0:35:E0:21:BD:A9:4C:EE:F1:CF:31:D9:BD:0B:15:D2:6A:84:8E:97:FF:60:FC:95:35:30:DA:82:EF:34:42:9E:30:51:13:E6:B6:01:22:A1:A7:C6:C9:FE:B4:22:CA:4E:08:68:68:65:D0:3C:D0:F2:76:5D:AD:56:41:1F:7C:35:0B:51:FF:B9:AC:C7:91:E5:AF:8E:65:EF:92:EA:33:43:9C:54:1D:3E:CF:3B:C9:17:76:F9:9D:F1:BF:F4:78:F0:C6:E1:6C:C1:22:5F:EA:92:6D:A6:0F:0C:2F:0A:65:41:32:32:A3:50:61:27:CD:64:D5:B1:36:E3:60:E1:92:25:5F:2B:18:EC:D3:33:6D:92:EE:07:85:04:A2:46:91:1C:3A:2F:1C:29:CD:0B:C8:63:14:7A:FE:38:44:B2:AF:6B:AD:1B:0D:49:B4:E7:E7:D5:A1:23:8A:2B:C3:CE:DB:A8:0A:B6:35:38:F6:B4:5B:44:A2:B7:78:CE:6A:90:5A:B9:7E:24:0A:72:71:E5:DC:2F:B2:93:CD:AA:60:3D:DB:5A:99:71:53:57:2A:19:80:AD:8B:DD:61:60:49:D7:A3:A4:CD:98:45:50:D8:BB:F6:33:5F:D2:31:83:A3:D4:A9:73:9B:17:E2:4A:95:67:2A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803124958Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.248) 0:00:16.462 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "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": "9E:B4:FE:4C:27:36:3B:95:BE:48:FB:17:3F:57:4F:D2:EA:0A:FC:2E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "34:75:D6:EE:74:CB:6D:E4:5D:B0:35:E0:21:BD:A9:4C:EE:F1:CF:31:D9:BD:0B:15:D2:6A:84:8E:97:FF:60:FC:95:35:30:DA:82:EF:34:42:9E:30:51:13:E6:B6:01:22:A1:A7:C6:C9:FE:B4:22:CA:4E:08:68:68:65:D0:3C:D0:F2:76:5D:AD:56:41:1F:7C:35:0B:51:FF:B9:AC:C7:91:E5:AF:8E:65:EF:92:EA:33:43:9C:54:1D:3E:CF:3B:C9:17:76:F9:9D:F1:BF:F4:78:F0:C6:E1:6C:C1:22:5F:EA:92:6D:A6:0F:0C:2F:0A:65:41:32:32:A3:50:61:27:CD:64:D5:B1:36:E3:60:E1:92:25:5F:2B:18:EC:D3:33:6D:92:EE:07:85:04:A2:46:91:1C:3A:2F:1C:29:CD:0B:C8:63:14:7A:FE:38:44:B2:AF:6B:AD:1B:0D:49:B4:E7:E7:D5:A1:23:8A:2B:C3:CE:DB:A8:0A:B6:35:38:F6:B4:5B:44:A2:B7:78:CE:6A:90:5A:B9:7E:24:0A:72:71:E5:DC:2F:B2:93:CD:AA:60:3D:DB:5A:99:71:53:57:2A:19:80:AD:8B:DD:61:60:49:D7:A3:A4:CD:98:45:50:D8:BB:F6:33:5F:D2:31:83:A3:D4:A9:73:9B:17:E2:4A:95:67:2A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803124958Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.021) 0:00:16.484 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.024) 0:00:16.508 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.028) 0:00:16.537 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 12:50:02 +0000 (0:00:00.021) 0:00:16.558 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.024) 0:00:16.583 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.023) 0:00:16.607 ******* 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.046952", "end": "2024-08-03 12:50:03.265298", "rc": 0, "start": "2024-08-03 12:50:03.218346" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.233) 0:00:16.840 ******* 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-ci79ery48z/tests/tests_fs_attrs.yml:67 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.027) 0:00:16.868 ******* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.476) 0:00:17.345 ******* included: /WORKDIR/git-weekly-ci79ery48z/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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.010) 0:00:17.356 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.018) 0:00:17.374 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.017) 0:00:17.392 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.016) 0:00:17.408 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 03 August 2024 12:50:03 +0000 (0:00:00.031) 0:00:17.440 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 03 August 2024 12:50:04 +0000 (0:00:00.887) 0:00:18.327 ******* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 03 August 2024 12:50:05 +0000 (0:00:00.887) 0:00:19.215 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 03 August 2024 12:50:05 +0000 (0:00:00.212) 0:00:19.427 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 03 August 2024 12:50:06 +0000 (0:00:00.201) 0:00:19.629 ******* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-08-03 12:49:56 UTC", "ActiveEnterTimestampMonotonic": "454384963", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target systemd-journald.socket sysinit.target syslog.target dbus-broker.service system.slice basic.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-03 12:49:56 UTC", "AssertTimestampMonotonic": "454364919", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "719025000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-03 12:49:56 UTC", "ConditionTimestampMonotonic": "454364915", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4265", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8933", "ExecMainStartTimestamp": "Sat 2024-08-03 12:49:56 UTC", "ExecMainStartTimestampMonotonic": "454374176", "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-08-03 12:49:56 UTC] ; stop_time=[n/a] ; pid=8933 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-08-03 12:49:56 UTC] ; stop_time=[n/a] ; pid=8933 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-03 12:49:56 UTC", "InactiveExitTimestampMonotonic": "454374539", "InvocationID": "1edb29927cd2466eb4f8b57d7aea4597", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13964", "LimitNPROCSoft": "13964", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13964", "LimitSIGPENDINGSoft": "13964", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8933", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4349952", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-08-03 12:49:56 UTC", "StateChangeTimestampMonotonic": "454384963", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22342", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 03 August 2024 12:50:06 +0000 (0:00:00.326) 0:00:19.956 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 03 August 2024 12:50:07 +0000 (0:00:01.138) 0:00:21.095 ******* 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-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 03 August 2024 12:50:07 +0000 (0:00:00.032) 0:00:21.127 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 03 August 2024 12:50:07 +0000 (0:00:00.017) 0:00:21.144 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 03 August 2024 12:50:07 +0000 (0:00:00.017) 0:00:21.161 ******* 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-ci79ery48z/tests/tests_fs_attrs.yml:85 Saturday 03 August 2024 12:50:07 +0000 (0:00:00.020) 0:00:21.182 ******* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:112 Saturday 03 August 2024 12:50:08 +0000 (0:00:00.472) 0:00:21.655 ******* included: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:50:08 +0000 (0:00:00.032) 0:00:21.687 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:50:08 +0000 (0:00:00.007) 0:00:21.694 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:50:08 +0000 (0:00:00.016) 0:00:21.711 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:50:08 +0000 (0:00:00.015) 0:00:21.727 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 12:50:08 +0000 (0:00:00.015) 0:00:21.743 ******* 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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.877) 0:00:22.620 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689406.8252056, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9333ed094c54a1509e68eb151f1bf27bea795b0d", "ctime": 1722689406.9462075, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2989106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722689406.8232055, "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": "3830987719", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.198) 0:00:22.819 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.019) 0:00:22.838 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.022) 0:00:22.860 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.019) 0:00:22.880 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689406.7722046, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "984cc7d47b5fa838e5dcb8ec602e65d89ed47cfc", "ctime": 1722689406.9462075, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 552383, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722689406.8232055, "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": "4236657790", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.196) 0:00:23.076 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.019) 0:00:23.096 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.021) 0:00:23.117 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "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": "EC:41:98:94:39:14:E3:C6:25:51:FC:BA:2A:78:30:5E:B6:3B:C9:17" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "02:99:D2:D5:5D:00:9E:10:F6:77:94:DB:36:B9:65:F4:FB:EF:4B:04:02:23:CE:80:A3:50:56:5F:52:5E:36:2B:BC:EA:6B:AD:20:4F:DC:08:C7:C8:09:A0:92:BC:7C:0A:F5:4F:29:9C:6E:B2:B8:40:AA:D6:86:E3:C4:9C:47:71:E4:DF:5F:67:CB:4F:69:EC:95:25:A9:51:BC:13:5C:3F:5D:FD:AD:DB:08:1E:38:4F:2B:20:DC:E0:B7:FF:CE:EF:AB:7D:74:C2:FF:18:6E:A0:2D:30:59:BD:73:D9:6C:89:5E:99:26:1C:41:F3:61:19:7D:CB:C3:E4:A0:08:0B:26:ED:AA:FD:43:A2:6F:5B:44:E8:93:86:77:12:FA:E4:0C:58:1D:75:F4:7F:6F:12:CF:4D:C5:84:51:36:5D:E7:D8:5A:73:5E:9E:D7:EE:8D:AF:02:20:DB:A7:BB:A5:DC:37:D4:85:BA:87:71:58:51:01:57:14:AF:FC:A8:31:E1:31:3E:FF:67:9C:05:BA:5C:3D:1B:43:74:9E:99:26:10:53:16:4C:65:0D:AD:0D:91:19:68:D1:EC:72:F8:DE:1E:3D:E8:62:D6:A8:C1:12:BA:FD:F9:0B:E8:EB:AC:20:4F:D3:D0:E7:7F:74:8E:F1:96:C1:BE:0B:41:FD:7F:4C:AD:2E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803125006Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.240) 0:00:23.357 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "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": "EC:41:98:94:39:14:E3:C6:25:51:FC:BA:2A:78:30:5E:B6:3B:C9:17" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "02:99:D2:D5:5D:00:9E:10:F6:77:94:DB:36:B9:65:F4:FB:EF:4B:04:02:23:CE:80:A3:50:56:5F:52:5E:36:2B:BC:EA:6B:AD:20:4F:DC:08:C7:C8:09:A0:92:BC:7C:0A:F5:4F:29:9C:6E:B2:B8:40:AA:D6:86:E3:C4:9C:47:71:E4:DF:5F:67:CB:4F:69:EC:95:25:A9:51:BC:13:5C:3F:5D:FD:AD:DB:08:1E:38:4F:2B:20:DC:E0:B7:FF:CE:EF:AB:7D:74:C2:FF:18:6E:A0:2D:30:59:BD:73:D9:6C:89:5E:99:26:1C:41:F3:61:19:7D:CB:C3:E4:A0:08:0B:26:ED:AA:FD:43:A2:6F:5B:44:E8:93:86:77:12:FA:E4:0C:58:1D:75:F4:7F:6F:12:CF:4D:C5:84:51:36:5D:E7:D8:5A:73:5E:9E:D7:EE:8D:AF:02:20:DB:A7:BB:A5:DC:37:D4:85:BA:87:71:58:51:01:57:14:AF:FC:A8:31:E1:31:3E:FF:67:9C:05:BA:5C:3D:1B:43:74:9E:99:26:10:53:16:4C:65:0D:AD:0D:91:19:68:D1:EC:72:F8:DE:1E:3D:E8:62:D6:A8:C1:12:BA:FD:F9:0B:E8:EB:AC:20:4F:D3:D0:E7:7F:74:8E:F1:96:C1:BE:0B:41:FD:7F:4C:AD:2E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803125006Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.019) 0:00:23.377 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.020) 0:00:23.398 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.019) 0:00:23.417 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.019) 0:00:23.437 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.022) 0:00:23.459 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 12:50:09 +0000 (0:00:00.022) 0:00:23.482 ******* 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.050433", "end": "2024-08-03 12:50:10.146149", "rc": 0, "start": "2024-08-03 12:50:10.095716" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 12:50:10 +0000 (0:00:00.239) 0:00:23.722 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 12:50:10 +0000 (0:00:00.019) 0:00:23.741 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 12:50:10 +0000 (0:00:00.007) 0:00:23.748 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 12:50:10 +0000 (0:00:00.016) 0:00:23.765 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 12:50:10 +0000 (0:00:00.017) 0:00:23.782 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 12:50:10 +0000 (0:00:00.017) 0:00:23.799 ******* 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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.885) 0:00:24.685 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689407.3842149, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0bdd01cf1fee3e0855aaf16d152f14fd3e1ee777", "ctime": 1722689407.3812146, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2989107, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722689407.3812146, "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": "1716422784", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.198) 0:00:24.884 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.020) 0:00:24.904 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.022) 0:00:24.927 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.020) 0:00:24.948 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722689407.3292139, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2784abefd81a53de7ff531c06da77e73eb19a9bc", "ctime": 1722689407.3812146, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 568646, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722689407.3812146, "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": "130814443", "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-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.197) 0:00:25.145 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.019) 0:00:25.164 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.021) 0:00:25.186 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "39:26:89:4D:98:15:DB:27:21:21:80:48:3E:98:93:02:01:DF:FA:A6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "54:32:80:DB:DC:15:E0:9B:CE:57:6C:61:D3:E2:35:00:5D:65:6F:88:73:51:2F:C8:19:5A:88:D1:53:AB:EF:A3:68:AE:67:CD:59:42:30:43:78:B4:2E:68:18:0C:8F:6C:3D:06:5F:06:7C:29:01:A3:EC:D3:77:20:C9:1E:4C:9C:52:9A:F3:6A:D2:BD:E9:83:CB:88:2A:CB:3C:CB:2A:9D:E7:18:F4:51:E2:6A:CD:36:8D:13:76:1C:F4:20:AE:89:9A:FF:B0:F4:CB:29:79:8C:62:90:3F:48:F6:A0:77:07:3D:F3:B9:84:BE:10:CE:6B:2E:58:61:A0:3D:98:63:A9:CC:24:5D:7C:C8:E7:EE:CA:61:58:F2:5F:DB:90:B1:43:91:04:CD:A0:F2:C3:1B:09:A3:91:E9:CC:1F:C7:06:6A:49:7B:C8:42:41:5D:B8:4F:1E:0A:02:2C:5B:A0:A3:3D:C4:C9:89:CD:9D:D2:DA:C8:FD:4F:B2:00:09:44:56:CD:2F:88:AB:42:2F:49:8A:97:E4:01:89:E7:5D:70:90:94:31:E3:BC:24:36:50:EF:81:68:0E:E3:63:FB:80:BE:73:57:BA:D1:DD:B9:DD:78:26:D2:96:84:8B:0A:86:43:7D:96:35:7F:A7:B7:B0:8E:D2:2F:9F:B4:69:38:54:A7:58" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803125007Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.237) 0:00:25.423 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DD:80:32:EB:3F:50:AE:B8:61:8C:06:30:B0:B1:CB:95:C5:E9:28:ED" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "39:26:89:4D:98:15:DB:27:21:21:80:48:3E:98:93:02:01:DF:FA:A6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "54:32:80:DB:DC:15:E0:9B:CE:57:6C:61:D3:E2:35:00:5D:65:6F:88:73:51:2F:C8:19:5A:88:D1:53:AB:EF:A3:68:AE:67:CD:59:42:30:43:78:B4:2E:68:18:0C:8F:6C:3D:06:5F:06:7C:29:01:A3:EC:D3:77:20:C9:1E:4C:9C:52:9A:F3:6A:D2:BD:E9:83:CB:88:2A:CB:3C:CB:2A:9D:E7:18:F4:51:E2:6A:CD:36:8D:13:76:1C:F4:20:AE:89:9A:FF:B0:F4:CB:29:79:8C:62:90:3F:48:F6:A0:77:07:3D:F3:B9:84:BE:10:CE:6B:2E:58:61:A0:3D:98:63:A9:CC:24:5D:7C:C8:E7:EE:CA:61:58:F2:5F:DB:90:B1:43:91:04:CD:A0:F2:C3:1B:09:A3:91:E9:CC:1F:C7:06:6A:49:7B:C8:42:41:5D:B8:4F:1E:0A:02:2C:5B:A0:A3:3D:C4:C9:89:CD:9D:D2:DA:C8:FD:4F:B2:00:09:44:56:CD:2F:88:AB:42:2F:49:8A:97:E4:01:89:E7:5D:70:90:94:31:E3:BC:24:36:50:EF:81:68:0E:E3:63:FB:80:BE:73:57:BA:D1:DD:B9:DD:78:26:D2:96:84:8B:0A:86:43:7D:96:35:7F:A7:B7:B0:8E:D2:2F:9F:B4:69:38:54:A7:58" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803124957Z", "not_valid_before": "20240803125007Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.021) 0:00:25.445 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.024) 0:00:25.470 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.022) 0:00:25.492 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.022) 0:00:25.514 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 12:50:11 +0000 (0:00:00.030) 0:00:25.545 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 12:50:12 +0000 (0:00:00.028) 0:00:25.573 ******* 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.050101", "end": "2024-08-03 12:50:12.236163", "rc": 0, "start": "2024-08-03 12:50:12.186062" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 12:50:12 +0000 (0:00:00.238) 0:00:25.812 ******* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 03 August 2024 12:50:12 +0000 (0:00:00.018) 0:00:25.831 ******* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 4.38s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 2.52s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.34s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.14s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider packages are installed --- 0.89s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.89s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 0.89s /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.88s /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.88s /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider service is running ----- 0.72s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.71s /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.58s /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:14 -------------------- Ensure user exists ------------------------------------------------------ 0.50s /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:5 --------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.47s /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.47s /WORKDIR/git-weekly-ci79ery48z/tests/tests_fs_attrs.yml:32 -------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.33s /WORKDIR/git-weekly-ci79ery48z/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Parse certificate ------------------------------------------------------- 0.31s /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.30s /WORKDIR/git-weekly-ci79ery48z/tests/tasks/assert_certificate_parameters.yml:151 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---