# 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-cioaooly9n/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:2 Saturday 10 August 2024 12:51:54 +0000 (0:00:00.011) 0:00:00.011 ******* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:5 Saturday 10 August 2024 12:51:55 +0000 (0:00:00.702) 0:00:00.714 ******* 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-cioaooly9n/tests/tests_fs_attrs.yml:9 Saturday 10 August 2024 12:51:55 +0000 (0:00:00.375) 0:00:01.089 ******* 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-cioaooly9n/tests/tests_fs_attrs.yml:14 Saturday 10 August 2024 12:51:56 +0000 (0:00:00.292) 0:00:01.382 ******* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 10 August 2024 12:51:56 +0000 (0:00:00.481) 0:00:01.863 ******* included: /WORKDIR/git-weekly-cioaooly9n/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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 12:51:56 +0000 (0:00:00.010) 0:00:01.874 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 10 August 2024 12:51:56 +0000 (0:00:00.018) 0:00:01.892 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 10 August 2024 12:51:56 +0000 (0:00:00.229) 0:00:02.122 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 10 August 2024 12:51:56 +0000 (0:00:00.019) 0:00:02.142 ******* 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-cioaooly9n/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-cioaooly9n/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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 10 August 2024 12:51:56 +0000 (0:00:00.033) 0:00:02.175 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64", "Installed: python3-pyasn1-0.4.8-6.el9.noarch" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 10 August 2024 12:52:01 +0000 (0:00:04.304) 0:00:06.480 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 10 August 2024 12:52:04 +0000 (0:00:03.007) 0:00:09.487 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 10 August 2024 12:52:04 +0000 (0:00:00.276) 0:00:09.764 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 10 August 2024 12:52:04 +0000 (0:00:00.202) 0:00:09.966 ******* 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": "sysinit.target dbus-broker.service systemd-journald.socket basic.target dbus.socket network.target system.slice syslog.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": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 10 August 2024 12:52:05 +0000 (0:00:00.718) 0:00:10.685 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 10 August 2024 12:52:06 +0000 (0:00:01.384) 0:00:12.069 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 10 August 2024 12:52:06 +0000 (0:00:00.034) 0:00:12.103 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 10 August 2024 12:52:06 +0000 (0:00:00.019) 0:00:12.123 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 10 August 2024 12:52:06 +0000 (0:00:00.019) 0:00:12.142 ******* 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-cioaooly9n/tests/tests_fs_attrs.yml:32 Saturday 10 August 2024 12:52:06 +0000 (0:00:00.021) 0:00:12.164 ******* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:61 Saturday 10 August 2024 12:52:07 +0000 (0:00:00.546) 0:00:12.711 ******* included: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:52:07 +0000 (0:00:00.033) 0:00:12.744 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:52:07 +0000 (0:00:00.007) 0:00:12.751 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:52:07 +0000 (0:00:00.016) 0:00:12.768 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:52:07 +0000 (0:00:00.015) 0:00:12.784 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 Saturday 10 August 2024 12:52:07 +0000 (0:00:00.015) 0:00:12.800 ******* 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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:40 Saturday 10 August 2024 12:52:08 +0000 (0:00:01.045) 0:00:13.846 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294326.131941, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "726b8200bbbbde29fc54a33af5fa1d6db3164dfb", "ctime": 1723294326.1709404, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2560062, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294326.1299412, "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": "764852467", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:45 Saturday 10 August 2024 12:52:08 +0000 (0:00:00.199) 0:00:14.045 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:51 Saturday 10 August 2024 12:52:08 +0000 (0:00:00.018) 0:00:14.064 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:63 Saturday 10 August 2024 12:52:08 +0000 (0:00:00.021) 0:00:14.085 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:69 Saturday 10 August 2024 12:52:08 +0000 (0:00:00.019) 0:00:14.104 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294326.0719426, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0805fac12443667e322f24e6dc8cc0c4e4733547", "ctime": 1723294326.1709404, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 210208, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294326.1299412, "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": "2295546173", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:74 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.210) 0:00:14.314 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:80 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.025) 0:00:14.340 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.028) 0:00:14.369 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "EB:14:5E:16:64:75:19:A8:2E:79:4A:86:08:AE:44:8C:BC:25:8E:0C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0A:59:BB:D0:8F:10:63:4E:21:77:E4:D8:05:01:51:11:9C:55:16:CA:4B:EE:5E:C5:77:B0:5F:06:4A:AE:89:6F:FE:06:2F:A4:F7:1E:1B:6D:53:49:2E:F1:BB:BD:93:FB:9D:58:CE:3B:0E:C2:D7:1E:50:EA:F1:34:01:D1:95:8D:FC:D1:5A:FB:A0:6E:AD:35:8E:05:BF:17:34:EF:3B:13:65:86:0A:ED:8C:6E:0F:D1:3C:E4:3E:C7:24:88:B4:58:D8:88:83:06:49:F7:A0:AC:69:6D:C5:B3:04:04:92:1E:CD:BD:C5:60:94:02:4C:E9:43:D7:71:88:CE:60:F4:84:3D:4A:85:63:82:19:F7:E7:01:F8:4E:25:F7:BE:2C:C5:50:2A:60:16:D3:E8:4A:DE:85:9C:F1:AA:6C:86:8F:C9:83:E2:F8:A9:60:7D:8B:7C:F1:35:D4:35:87:EF:36:6E:63:16:1E:41:CD:8A:05:98:EA:F8:EA:12:3E:BC:86:6D:74:A7:95:DE:96:3C:51:11:9C:C7:B2:7D:C4:9C:D9:E1:63:96:B7:EB:10:B0:D6:80:DE:AB:B9:EB:3C:F3:3D:00:79:21:05:4D:60:E3:61:8E:72:93:40:73:40:51:A8:DF:11:DD:AE:5C:1D:23:AA:43:E1:3B:5D:54:71:95:D8:D8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125206Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:98 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.360) 0:00:14.729 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "EB:14:5E:16:64:75:19:A8:2E:79:4A:86:08:AE:44:8C:BC:25:8E:0C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0A:59:BB:D0:8F:10:63:4E:21:77:E4:D8:05:01:51:11:9C:55:16:CA:4B:EE:5E:C5:77:B0:5F:06:4A:AE:89:6F:FE:06:2F:A4:F7:1E:1B:6D:53:49:2E:F1:BB:BD:93:FB:9D:58:CE:3B:0E:C2:D7:1E:50:EA:F1:34:01:D1:95:8D:FC:D1:5A:FB:A0:6E:AD:35:8E:05:BF:17:34:EF:3B:13:65:86:0A:ED:8C:6E:0F:D1:3C:E4:3E:C7:24:88:B4:58:D8:88:83:06:49:F7:A0:AC:69:6D:C5:B3:04:04:92:1E:CD:BD:C5:60:94:02:4C:E9:43:D7:71:88:CE:60:F4:84:3D:4A:85:63:82:19:F7:E7:01:F8:4E:25:F7:BE:2C:C5:50:2A:60:16:D3:E8:4A:DE:85:9C:F1:AA:6C:86:8F:C9:83:E2:F8:A9:60:7D:8B:7C:F1:35:D4:35:87:EF:36:6E:63:16:1E:41:CD:8A:05:98:EA:F8:EA:12:3E:BC:86:6D:74:A7:95:DE:96:3C:51:11:9C:C7:B2:7D:C4:9C:D9:E1:63:96:B7:EB:10:B0:D6:80:DE:AB:B9:EB:3C:F3:3D:00:79:21:05:4D:60:E3:61:8E:72:93:40:73:40:51:A8:DF:11:DD:AE:5C:1D:23:AA:43:E1:3B:5D:54:71:95:D8:D8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125206Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:102 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.024) 0:00:14.754 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:111 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.035) 0:00:14.789 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:120 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.021) 0:00:14.811 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:127 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.019) 0:00:14.830 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:138 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.028) 0:00:14.859 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:151 Saturday 10 August 2024 12:52:09 +0000 (0:00:00.023) 0:00:14.882 ******* 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.047964", "end": "2024-08-10 12:52:09.983716", "rc": 0, "start": "2024-08-10 12:52:09.935752" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:160 Saturday 10 August 2024 12:52:10 +0000 (0:00:00.303) 0:00:15.185 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:52:10 +0000 (0:00:00.020) 0:00:15.206 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:52:10 +0000 (0:00:00.008) 0:00:15.214 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:52:10 +0000 (0:00:00.017) 0:00:15.231 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:52:10 +0000 (0:00:00.017) 0:00:15.249 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 Saturday 10 August 2024 12:52:10 +0000 (0:00:00.016) 0:00:15.266 ******* 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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:40 Saturday 10 August 2024 12:52:11 +0000 (0:00:01.056) 0:00:16.322 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294326.726928, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9b36c8266317994e67595891233098a32e3817de", "ctime": 1723294326.855925, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 2632139, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294326.723928, "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": "3466247693", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:45 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.203) 0:00:16.525 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:51 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.018) 0:00:16.543 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:63 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.020) 0:00:16.564 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:69 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.019) 0:00:16.583 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294326.6719291, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "300d5aff7f540a32219c224409717e627ac12d17", "ctime": 1723294326.856925, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 210213, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723294326.723928, "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": "4287207474", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:74 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.201) 0:00:16.784 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:80 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.020) 0:00:16.804 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.021) 0:00:16.826 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "A4:82:4B:68:4F:0D:53:9F:3E:F7:57:E3:53:ED:6A:5B:34:C4:C6:90" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4E:01:A4:55:AC:97:02:98:8B:3F:B0:B8:90:B9:99:77:5E:BD:21:B2:E9:92:2A:15:4C:21:D4:9E:1A:D2:24:ED:62:EA:16:46:F1:ED:65:E5:B0:8E:DD:2F:27:CB:3D:FB:57:3B:63:D7:4C:B7:C3:75:68:F0:6A:FE:86:B2:70:89:48:A8:DE:AB:0B:3B:97:7B:67:C1:27:87:2A:4B:47:85:7E:73:D4:A2:09:60:E7:56:92:C5:5D:0E:BD:B0:89:C1:B3:B8:59:FA:6E:E4:85:38:54:67:B9:19:C9:E0:00:EF:D4:CB:5D:37:6F:96:8A:0E:21:37:89:B7:12:13:DB:DB:50:E8:D7:2C:C4:C4:83:FC:FD:75:C4:A7:16:35:05:67:4E:27:B9:56:F5:00:22:FB:BE:87:C0:A0:5F:43:6C:BA:7A:A2:8B:CE:41:67:AF:D5:D6:E1:E5:8D:CE:F3:53:78:CC:55:30:90:FA:4F:53:34:4B:5A:D7:1D:6B:44:59:B9:7B:31:17:9C:A6:B4:46:1C:23:E1:84:A4:9F:2D:5C:85:1E:89:A6:32:BA:59:B8:E3:38:FE:1D:1D:12:24:B2:5B:92:AA:73:B3:CF:DC:B8:6A:71:1C:43:74:A3:2D:FD:DF:FE:41:B4:FC:97:9B:BB:0F:AF:43:99:3B:76:47:69:FF" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125206Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:98 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.244) 0:00:17.071 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "A4:82:4B:68:4F:0D:53:9F:3E:F7:57:E3:53:ED:6A:5B:34:C4:C6:90" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4E:01:A4:55:AC:97:02:98:8B:3F:B0:B8:90:B9:99:77:5E:BD:21:B2:E9:92:2A:15:4C:21:D4:9E:1A:D2:24:ED:62:EA:16:46:F1:ED:65:E5:B0:8E:DD:2F:27:CB:3D:FB:57:3B:63:D7:4C:B7:C3:75:68:F0:6A:FE:86:B2:70:89:48:A8:DE:AB:0B:3B:97:7B:67:C1:27:87:2A:4B:47:85:7E:73:D4:A2:09:60:E7:56:92:C5:5D:0E:BD:B0:89:C1:B3:B8:59:FA:6E:E4:85:38:54:67:B9:19:C9:E0:00:EF:D4:CB:5D:37:6F:96:8A:0E:21:37:89:B7:12:13:DB:DB:50:E8:D7:2C:C4:C4:83:FC:FD:75:C4:A7:16:35:05:67:4E:27:B9:56:F5:00:22:FB:BE:87:C0:A0:5F:43:6C:BA:7A:A2:8B:CE:41:67:AF:D5:D6:E1:E5:8D:CE:F3:53:78:CC:55:30:90:FA:4F:53:34:4B:5A:D7:1D:6B:44:59:B9:7B:31:17:9C:A6:B4:46:1C:23:E1:84:A4:9F:2D:5C:85:1E:89:A6:32:BA:59:B8:E3:38:FE:1D:1D:12:24:B2:5B:92:AA:73:B3:CF:DC:B8:6A:71:1C:43:74:A3:2D:FD:DF:FE:41:B4:FC:97:9B:BB:0F:AF:43:99:3B:76:47:69:FF" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125206Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:102 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.018) 0:00:17.089 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:111 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.020) 0:00:17.109 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:120 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.032) 0:00:17.142 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:127 Saturday 10 August 2024 12:52:11 +0000 (0:00:00.019) 0:00:17.162 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:138 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.022) 0:00:17.184 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:151 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.021) 0:00:17.206 ******* 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.048602", "end": "2024-08-10 12:52:12.239251", "rc": 0, "start": "2024-08-10 12:52:12.190649" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:160 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.234) 0:00:17.441 ******* 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-cioaooly9n/tests/tests_fs_attrs.yml:67 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.043) 0:00:17.484 ******* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.490) 0:00:17.974 ******* included: /WORKDIR/git-weekly-cioaooly9n/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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.010) 0:00:17.985 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.021) 0:00:18.007 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.018) 0:00:18.026 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.018) 0:00:18.044 ******* 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-cioaooly9n/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-cioaooly9n/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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 10 August 2024 12:52:12 +0000 (0:00:00.033) 0:00:18.077 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 10 August 2024 12:52:13 +0000 (0:00:00.980) 0:00:19.058 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 10 August 2024 12:52:15 +0000 (0:00:01.226) 0:00:20.285 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 10 August 2024 12:52:15 +0000 (0:00:00.202) 0:00:20.488 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 10 August 2024 12:52:15 +0000 (0:00:00.206) 0:00:20.694 ******* 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-10 12:52:05 UTC", "ActiveEnterTimestampMonotonic": "485982680", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.socket dbus-broker.service sysinit.target network.target system.slice syslog.target systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-10 12:52:05 UTC", "AssertTimestampMonotonic": "485968887", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "963919000", "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-10 12:52:05 UTC", "ConditionTimestampMonotonic": "485968883", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4561", "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": "8999", "ExecMainStartTimestamp": "Sat 2024-08-10 12:52:05 UTC", "ExecMainStartTimestampMonotonic": "485973126", "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-10 12:52:05 UTC] ; stop_time=[n/a] ; pid=8999 ; 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-10 12:52:05 UTC] ; stop_time=[n/a] ; pid=8999 ; 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-10 12:52:05 UTC", "InactiveExitTimestampMonotonic": "485973860", "InvocationID": "8bcb141f0f89430d9ff7df50b06b9e00", "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": "8999", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4321280", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-08-10 12:52:05 UTC", "StateChangeTimestampMonotonic": "485982680", "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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 10 August 2024 12:52:15 +0000 (0:00:00.336) 0:00:21.030 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 10 August 2024 12:52:17 +0000 (0:00:01.457) 0:00:22.488 ******* 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-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.032) 0:00:22.520 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.017) 0:00:22.538 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.017) 0:00:22.555 ******* 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-cioaooly9n/tests/tests_fs_attrs.yml:85 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.019) 0:00:22.575 ******* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:112 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.499) 0:00:23.075 ******* included: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.032) 0:00:23.107 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.008) 0:00:23.115 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.017) 0:00:23.133 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.017) 0:00:23.150 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 Saturday 10 August 2024 12:52:17 +0000 (0:00:00.017) 0:00:23.167 ******* 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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:40 Saturday 10 August 2024 12:52:19 +0000 (0:00:01.040) 0:00:24.207 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294336.271716, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "99608f0a4dbde39fdc5bd6362960faad3e4f4336", "ctime": 1723294336.4047132, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 2632140, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723294336.2687163, "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": "2019106498", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:45 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.200) 0:00:24.407 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:51 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.019) 0:00:24.427 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:63 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.021) 0:00:24.448 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:69 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.019) 0:00:24.467 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294336.2177174, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7a6560cf967e2bcc973910acbb014b74b95745fe", "ctime": 1723294336.4047132, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 210224, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723294336.2687163, "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": "1402005091", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:74 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.198) 0:00:24.666 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:80 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.019) 0:00:24.686 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.021) 0:00:24.707 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "7C:B7:B3:91:A9:2E:0F:67:9E:E7:FD:37:79:3E:5A:6A:3F:C1:B5:22" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "84:B3:3E:BA:D3:AF:D8:5A:C1:15:FA:0A:57:8B:D4:50:63:BF:07:4A:C6:3A:0E:FC:1F:0A:BF:5E:DE:98:3E:2A:AB:CF:B8:8F:AD:FC:43:86:86:EC:91:21:D8:70:8D:30:36:87:84:FA:9B:72:39:EF:2D:5E:7A:7A:FB:65:48:74:9A:3E:3F:33:CD:A9:F7:83:3B:48:4F:92:BF:D9:B1:4F:7D:23:54:1A:43:38:AF:59:C6:B9:31:F6:BB:AE:78:60:79:DD:58:1E:A5:31:4C:26:51:EF:E9:C6:EC:5E:08:F3:16:BB:ED:F3:39:84:F9:24:7E:52:33:24:37:7C:77:A6:ED:C7:F0:5A:CC:39:8D:FF:BE:44:77:F2:99:C1:4D:47:02:E0:DA:E4:B0:35:C5:4E:8D:31:D2:91:8E:34:FB:BC:63:EC:3E:4D:A2:30:46:95:02:A0:19:F3:C4:57:B4:FB:6D:16:68:B7:11:BB:8F:15:22:C4:29:64:44:21:F5:58:AE:EB:D1:B9:55:D3:9A:95:CA:3B:12:E8:CA:8F:85:2D:16:8E:0E:FF:BB:1A:C0:6A:41:B5:34:CC:81:D7:17:36:C1:5B:51:2C:DF:A0:CE:5F:ED:9F:66:55:B1:87:7D:85:A1:BB:4D:63:F9:41:E1:8A:71:E3:38:84:52:A6:10:F2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125216Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:98 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.240) 0:00:24.947 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "7C:B7:B3:91:A9:2E:0F:67:9E:E7:FD:37:79:3E:5A:6A:3F:C1:B5:22" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "84:B3:3E:BA:D3:AF:D8:5A:C1:15:FA:0A:57:8B:D4:50:63:BF:07:4A:C6:3A:0E:FC:1F:0A:BF:5E:DE:98:3E:2A:AB:CF:B8:8F:AD:FC:43:86:86:EC:91:21:D8:70:8D:30:36:87:84:FA:9B:72:39:EF:2D:5E:7A:7A:FB:65:48:74:9A:3E:3F:33:CD:A9:F7:83:3B:48:4F:92:BF:D9:B1:4F:7D:23:54:1A:43:38:AF:59:C6:B9:31:F6:BB:AE:78:60:79:DD:58:1E:A5:31:4C:26:51:EF:E9:C6:EC:5E:08:F3:16:BB:ED:F3:39:84:F9:24:7E:52:33:24:37:7C:77:A6:ED:C7:F0:5A:CC:39:8D:FF:BE:44:77:F2:99:C1:4D:47:02:E0:DA:E4:B0:35:C5:4E:8D:31:D2:91:8E:34:FB:BC:63:EC:3E:4D:A2:30:46:95:02:A0:19:F3:C4:57:B4:FB:6D:16:68:B7:11:BB:8F:15:22:C4:29:64:44:21:F5:58:AE:EB:D1:B9:55:D3:9A:95:CA:3B:12:E8:CA:8F:85:2D:16:8E:0E:FF:BB:1A:C0:6A:41:B5:34:CC:81:D7:17:36:C1:5B:51:2C:DF:A0:CE:5F:ED:9F:66:55:B1:87:7D:85:A1:BB:4D:63:F9:41:E1:8A:71:E3:38:84:52:A6:10:F2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125216Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:102 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.018) 0:00:24.966 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:111 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.020) 0:00:24.986 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:120 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.020) 0:00:25.006 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:127 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.018) 0:00:25.024 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:138 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.021) 0:00:25.046 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:151 Saturday 10 August 2024 12:52:19 +0000 (0:00:00.021) 0:00:25.067 ******* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.051586", "end": "2024-08-10 12:52:20.105766", "rc": 0, "start": "2024-08-10 12:52:20.054180" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:160 Saturday 10 August 2024 12:52:20 +0000 (0:00:00.239) 0:00:25.307 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 12:52:20 +0000 (0:00:00.019) 0:00:25.326 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 12:52:20 +0000 (0:00:00.007) 0:00:25.333 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 12:52:20 +0000 (0:00:00.017) 0:00:25.350 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 12:52:20 +0000 (0:00:00.017) 0:00:25.367 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 Saturday 10 August 2024 12:52:20 +0000 (0:00:00.017) 0:00:25.385 ******* 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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:40 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.981) 0:00:26.366 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294337.1866958, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fe807e20fd583ea756a827d6e6eedad8d5c5ba49", "ctime": 1723294337.183696, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2632141, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723294337.183696, "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": "2495863556", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:45 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.198) 0:00:26.565 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:51 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.019) 0:00:26.584 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:63 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.021) 0:00:26.606 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:69 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.019) 0:00:26.626 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1723294337.1316972, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "262da9a4fa4174f19d5737a3df80e603ee82e072", "ctime": 1723294337.183696, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 358117, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723294337.183696, "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": "853833302", "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-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:74 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.200) 0:00:26.827 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:80 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.020) 0:00:26.847 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.022) 0:00:26.870 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "AD:AC:89:14:11:A1:90:5F:7C:E5:DF:7B:3F:5A:FD:7C:FB:AC:FE:F2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0F:56:E1:E2:37:39:F7:1E:FA:F2:AB:10:9B:72:A2:2D:BD:98:AB:8F:71:7B:31:82:2F:FA:6C:D8:75:90:FD:83:EF:87:EB:2A:F5:EE:7E:EF:19:47:F7:F8:B9:4E:B4:A9:95:5A:22:E8:42:D9:22:0B:74:9E:D2:03:6F:64:13:7E:C4:7E:58:63:4A:98:99:8A:7C:CC:C4:28:E5:20:59:21:1C:C6:E8:32:F1:68:8F:57:F4:2F:E3:A8:9A:FA:14:F8:FE:17:48:CF:61:2A:33:84:5A:58:D1:BB:5C:F5:60:97:5B:37:0C:2B:AC:54:C6:26:BC:9A:E9:5D:BE:4A:AF:21:14:4C:86:7A:B4:24:99:A0:53:48:FB:DA:B4:4B:D5:45:13:A5:72:53:F4:0D:89:AA:86:08:15:63:9E:B1:58:9E:5E:7A:3B:33:21:DC:A4:EF:D0:CB:5E:47:0A:B4:1F:AE:B0:D2:6D:A0:0A:7D:72:34:D9:8D:E8:CF:4C:D3:B8:4A:60:4C:CE:F3:5F:15:72:D6:24:84:C3:08:A4:7C:A9:63:D9:94:32:C2:78:0A:53:73:59:7D:70:FD:CF:70:BB:F8:21:9A:F1:38:18:39:A6:2F:71:98:99:61:D3:84:8E:EF:B2:FE:49:AE:0F:51:03:6B:FE:AB:5D:E0:8D:6C:0E:62" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125217Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:98 Saturday 10 August 2024 12:52:21 +0000 (0:00:00.279) 0:00:27.149 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "07:26:D3:54:EC:77:47:4E:68:8F:54:A5:DE:53:1E:A6:D8:84:09:55" }, "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": "AD:AC:89:14:11:A1:90:5F:7C:E5:DF:7B:3F:5A:FD:7C:FB:AC:FE:F2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0F:56:E1:E2:37:39:F7:1E:FA:F2:AB:10:9B:72:A2:2D:BD:98:AB:8F:71:7B:31:82:2F:FA:6C:D8:75:90:FD:83:EF:87:EB:2A:F5:EE:7E:EF:19:47:F7:F8:B9:4E:B4:A9:95:5A:22:E8:42:D9:22:0B:74:9E:D2:03:6F:64:13:7E:C4:7E:58:63:4A:98:99:8A:7C:CC:C4:28:E5:20:59:21:1C:C6:E8:32:F1:68:8F:57:F4:2F:E3:A8:9A:FA:14:F8:FE:17:48:CF:61:2A:33:84:5A:58:D1:BB:5C:F5:60:97:5B:37:0C:2B:AC:54:C6:26:BC:9A:E9:5D:BE:4A:AF:21:14:4C:86:7A:B4:24:99:A0:53:48:FB:DA:B4:4B:D5:45:13:A5:72:53:F4:0D:89:AA:86:08:15:63:9E:B1:58:9E:5E:7A:3B:33:21:DC:A4:EF:D0:CB:5E:47:0A:B4:1F:AE:B0:D2:6D:A0:0A:7D:72:34:D9:8D:E8:CF:4C:D3:B8:4A:60:4C:CE:F3:5F:15:72:D6:24:84:C3:08:A4:7C:A9:63:D9:94:32:C2:78:0A:53:73:59:7D:70:FD:CF:70:BB:F8:21:9A:F1:38:18:39:A6:2F:71:98:99:61:D3:84:8E:EF:B2:FE:49:AE:0F:51:03:6B:FE:AB:5D:E0:8D:6C:0E:62" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810125205Z", "not_valid_before": "20240810125217Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:102 Saturday 10 August 2024 12:52:22 +0000 (0:00:00.033) 0:00:27.182 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:111 Saturday 10 August 2024 12:52:22 +0000 (0:00:00.032) 0:00:27.215 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:120 Saturday 10 August 2024 12:52:22 +0000 (0:00:00.027) 0:00:27.242 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:127 Saturday 10 August 2024 12:52:22 +0000 (0:00:00.031) 0:00:27.274 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:138 Saturday 10 August 2024 12:52:22 +0000 (0:00:00.037) 0:00:27.311 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:151 Saturday 10 August 2024 12:52:22 +0000 (0:00:00.042) 0:00:27.353 ******* 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.051544", "end": "2024-08-10 12:52:22.398916", "rc": 0, "start": "2024-08-10 12:52:22.347372" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:160 Saturday 10 August 2024 12:52:22 +0000 (0:00:00.246) 0:00:27.600 ******* 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 10 August 2024 12:52:22 +0000 (0:00:00.032) 0:00:27.633 ******* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 4.30s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 3.01s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.46s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.38s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure provider packages are installed --- 1.23s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 1.06s /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 1.05s /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 1.04s /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.98s /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.98s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider service is running ----- 0.72s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.70s /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.55s /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.49s /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:14 -------------------- Ensure user exists ------------------------------------------------------ 0.38s /WORKDIR/git-weekly-cioaooly9n/tests/tests_fs_attrs.yml:5 --------------------- Parse certificate ------------------------------------------------------- 0.36s /WORKDIR/git-weekly-cioaooly9n/tests/tasks/assert_certificate_parameters.yml:92 linux-system-roles.certificate : Ensure provider service is running ----- 0.34s /WORKDIR/git-weekly-cioaooly9n/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.30s /WORKDIR/git-weekly-cioaooly9n/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. ---^---^---^---^---^---