# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.15.0] 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.15/lib/python3.9/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-civwdy0ad2/.collection executable location = /opt/ansible-2.15/bin/ansible-playbook python version = 3.9.16 (main, Jan 17 2023, 18:53:15) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/opt/ansible-2.15/bin/python3.9) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:2 Saturday 26 August 2023 16:24:25 +0000 (0:00:00.018) 0:00:00.018 ******* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:5 Saturday 26 August 2023 16:24:26 +0000 (0:00:00.832) 0:00:00.850 ******* 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-civwdy0ad2/tests/tests_fs_attrs.yml:9 Saturday 26 August 2023 16:24:26 +0000 (0:00:00.455) 0:00:01.306 ******* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:14 Saturday 26 August 2023 16:24:27 +0000 (0:00:00.390) 0:00:01.696 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 26 August 2023 16:24:27 +0000 (0:00:00.621) 0:00:02.318 ******* included: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 26 August 2023 16:24:27 +0000 (0:00:00.023) 0:00:02.342 ******* skipping: [sut] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Saturday 26 August 2023 16:24:28 +0000 (0:00:00.053) 0:00:02.395 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_9.3.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_9.3.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 26 August 2023 16:24:28 +0000 (0:00:00.036) 0:00:02.432 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-cryptography-36.0.1-4.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Saturday 26 August 2023 16:24:30 +0000 (0:00:02.674) 0:00:05.106 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: nspr-4.35.0-3.el9_2.x86_64", "Installed: nss-3.90.0-3.el9_2.x86_64", "Installed: nss-softokn-3.90.0-3.el9_2.x86_64", "Installed: nss-softokn-freebl-3.90.0-3.el9_2.x86_64", "Installed: certmonger-0.79.17-1.el9.x86_64", "Installed: nss-sysinit-3.90.0-3.el9_2.x86_64", "Installed: nss-util-3.90.0-3.el9_2.x86_64" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Saturday 26 August 2023 16:24:34 +0000 (0:00:03.534) 0:00:08.640 ******* 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 [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Saturday 26 August 2023 16:24:34 +0000 (0:00:00.343) 0:00:08.983 ******* 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 [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Saturday 26 August 2023 16:24:34 +0000 (0:00:00.231) 0:00:09.215 ******* 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": "network.target systemd-journald.socket dbus.socket dbus-broker.service syslog.target sysinit.target basic.target system.slice", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "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": "13929", "LimitNPROCSoft": "13929", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13929", "LimitSIGPENDINGSoft": "13929", "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", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22286", "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 [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Saturday 26 August 2023 16:24:35 +0000 (0:00:00.869) 0:00:10.085 ******* 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 [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:150 Saturday 26 August 2023 16:24:37 +0000 (0:00:02.128) 0:00:12.213 ******* 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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:158 Saturday 26 August 2023 16:24:37 +0000 (0:00:00.094) 0:00:12.308 ******* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Saturday 26 August 2023 16:24:37 +0000 (0:00:00.035) 0:00:12.343 ******* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:179 Saturday 26 August 2023 16:24:38 +0000 (0:00:00.039) 0:00:12.383 ******* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:32 Saturday 26 August 2023 16:24:38 +0000 (0:00:00.123) 0:00:12.507 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:61 Saturday 26 August 2023 16:24:38 +0000 (0:00:00.635) 0:00:13.142 ******* included: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 26 August 2023 16:24:38 +0000 (0:00:00.041) 0:00:13.183 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:6 Saturday 26 August 2023 16:24:38 +0000 (0:00:00.015) 0:00:13.198 ******* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Saturday 26 August 2023 16:24:38 +0000 (0:00:00.014) 0:00:13.212 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 Saturday 26 August 2023 16:24:39 +0000 (0:00:00.759) 0:00:13.972 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067076.7997825, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d9835ada1f7fff51031f7783f88f9d5a3ded45e8", "ctime": 1693067076.948783, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 17075454, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1693067076.7967825, "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": "3898651984", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:29 Saturday 26 August 2023 16:24:39 +0000 (0:00:00.304) 0:00:14.276 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:35 Saturday 26 August 2023 16:24:39 +0000 (0:00:00.017) 0:00:14.293 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:45 Saturday 26 August 2023 16:24:39 +0000 (0:00:00.056) 0:00:14.349 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.052) 0:00:14.402 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067076.7407825, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "641b95d4ae8648b2c5a6bab6203e8a019d8eab4d", "ctime": 1693067076.9497828, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 278544, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1693067076.7967825, "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": "3972133183", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:56 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.208) 0:00:14.610 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:62 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.017) 0:00:14.628 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.052) 0:00:14.680 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "38:89:0E:21:C0:B6:1F:BB:10:91:13:2C:01:B7:DB:23:F2:F4:53:70" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "90:8F:C9:EA:4C:9D:90:39:09:7C:61:C3:F4:55:7F:1D:4C:F8:03:0F:E9:28:8E:D7:31:3D:0F:8A:09:E7:08:8C:65:73:0A:42:61:57:47:2C:18:33:04:11:E3:4A:BD:E4:F6:74:AF:0F:75:84:A7:AD:0C:44:4B:34:6E:85:EB:FD:7D:95:46:1C:7A:E9:9F:B0:E2:2C:3D:1A:F7:E3:8F:86:3F:57:DD:D1:AF:C5:8A:34:12:D0:8B:45:4F:7E:F9:18:E6:6E:00:F0:10:4C:45:E0:16:26:B5:5B:15:D4:FF:17:CC:18:DA:50:FD:AB:FD:A7:39:C4:90:F2:8E:B4:5D:45:E0:45:34:6E:A1:02:CE:14:F6:31:9D:4B:D4:75:F4:CB:2C:FF:1C:E5:A1:0B:8B:14:8B:3A:5E:C4:8A:A5:63:F4:2E:D9:59:B9:3E:20:E9:62:8F:71:9F:DE:01:52:01:CB:FD:AD:AD:00:0A:EA:31:23:18:0A:56:AC:41:7B:DC:32:E6:8B:FF:2B:E5:00:6A:44:80:D3:F6:90:AA:DB:B9:5E:AC:3D:4F:78:71:64:56:93:14:4E:50:D0:3C:DE:22:8C:74:9D:59:95:61:A6:F8:E4:01:EE:83:CF:AE:AD:0A:43:96:97:00:42:34:DB:F6:AD:C5:31:7A:76:DD:3D:74:F7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162436Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:78 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.382) 0:00:15.062 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "38:89:0E:21:C0:B6:1F:BB:10:91:13:2C:01:B7:DB:23:F2:F4:53:70" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "90:8F:C9:EA:4C:9D:90:39:09:7C:61:C3:F4:55:7F:1D:4C:F8:03:0F:E9:28:8E:D7:31:3D:0F:8A:09:E7:08:8C:65:73:0A:42:61:57:47:2C:18:33:04:11:E3:4A:BD:E4:F6:74:AF:0F:75:84:A7:AD:0C:44:4B:34:6E:85:EB:FD:7D:95:46:1C:7A:E9:9F:B0:E2:2C:3D:1A:F7:E3:8F:86:3F:57:DD:D1:AF:C5:8A:34:12:D0:8B:45:4F:7E:F9:18:E6:6E:00:F0:10:4C:45:E0:16:26:B5:5B:15:D4:FF:17:CC:18:DA:50:FD:AB:FD:A7:39:C4:90:F2:8E:B4:5D:45:E0:45:34:6E:A1:02:CE:14:F6:31:9D:4B:D4:75:F4:CB:2C:FF:1C:E5:A1:0B:8B:14:8B:3A:5E:C4:8A:A5:63:F4:2E:D9:59:B9:3E:20:E9:62:8F:71:9F:DE:01:52:01:CB:FD:AD:AD:00:0A:EA:31:23:18:0A:56:AC:41:7B:DC:32:E6:8B:FF:2B:E5:00:6A:44:80:D3:F6:90:AA:DB:B9:5E:AC:3D:4F:78:71:64:56:93:14:4E:50:D0:3C:DE:22:8C:74:9D:59:95:61:A6:F8:E4:01:EE:83:CF:AE:AD:0A:43:96:97:00:42:34:DB:F6:AD:C5:31:7A:76:DD:3D:74:F7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162436Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:82 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.016) 0:00:15.079 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:90 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.049) 0:00:15.129 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:98 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.017) 0:00:15.147 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:105 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.038) 0:00:15.186 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:116 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.061) 0:00:15.247 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Saturday 26 August 2023 16:24:40 +0000 (0:00:00.045) 0:00:15.293 ******* 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.044325", "end": "2023-08-26 16:24:41.252341", "rc": 0, "start": "2023-08-26 16:24:41.208016" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:138 Saturday 26 August 2023 16:24:41 +0000 (0:00:00.346) 0:00:15.639 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 26 August 2023 16:24:41 +0000 (0:00:00.052) 0:00:15.692 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:6 Saturday 26 August 2023 16:24:41 +0000 (0:00:00.014) 0:00:15.706 ******* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Saturday 26 August 2023 16:24:41 +0000 (0:00:00.014) 0:00:15.721 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.757) 0:00:16.479 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067077.7257843, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7fc86944964be83b8ebdb59d0655a3b0375e8bdd", "ctime": 1693067077.8137846, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 17075201, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1693067077.7227843, "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": "684840236", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:29 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.198) 0:00:16.677 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:35 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.017) 0:00:16.695 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:45 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.052) 0:00:16.747 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.042) 0:00:16.790 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067077.6697843, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "502da4a58239881df88b1ded990ef3122f78db85", "ctime": 1693067077.8147845, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 278545, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1693067077.7227843, "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": "1095145793", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:56 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.204) 0:00:16.995 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:62 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.033) 0:00:17.028 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.060) 0:00:17.089 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "15:54:F8:E9:F5:D1:89:9B:EE:BB:96:64:9B:50:8E:F4:99:57:6E:19" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "E1:92:5E:97:85:4B:F2:80:98:17:1D:98:FC:07:F3:D5:9D:A6:6D:57:E3:9D:00:79:75:C8:AB:17:59:F7:8F:BE:85:23:42:4C:BC:A1:8A:C8:B4:FA:56:BF:A3:73:80:38:A1:C4:E2:44:56:52:7B:9F:28:DA:10:6C:19:D7:56:20:31:33:82:61:2B:18:12:79:E6:CC:D5:07:BA:43:ED:0B:D4:F7:96:02:B9:45:18:75:6F:70:61:D5:5F:50:A3:F2:9E:73:AC:1F:B3:28:22:EE:3E:B5:B2:D5:93:67:CA:F6:4C:15:C3:E7:03:99:F4:64:4E:24:3C:36:2D:66:F0:7A:E3:3C:E3:13:A6:9C:CE:2E:52:92:0A:92:5F:5B:05:17:CC:9A:EF:12:3D:62:6B:4D:9A:9E:F7:6E:8A:BE:CD:A5:90:B8:96:59:13:9E:57:4D:54:D7:7C:C7:F1:3E:C5:05:AB:18:0D:FE:03:8E:5A:0E:88:3B:F1:9F:C6:1B:94:A6:59:3F:24:14:7D:8F:41:94:2F:54:ED:1A:40:EA:C0:00:DD:40:BD:86:CE:1C:9F:FD:0B:D9:5B:FB:44:66:7C:DA:28:7C:50:97:5C:A4:18:6F:2D:44:0D:EB:78:89:A7:D7:FE:F6:A3:B3:00:EA:DC:F8:33:82:B5:E1:0B:EC:69:19" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162437Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:78 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.237) 0:00:17.326 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "15:54:F8:E9:F5:D1:89:9B:EE:BB:96:64:9B:50:8E:F4:99:57:6E:19" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "E1:92:5E:97:85:4B:F2:80:98:17:1D:98:FC:07:F3:D5:9D:A6:6D:57:E3:9D:00:79:75:C8:AB:17:59:F7:8F:BE:85:23:42:4C:BC:A1:8A:C8:B4:FA:56:BF:A3:73:80:38:A1:C4:E2:44:56:52:7B:9F:28:DA:10:6C:19:D7:56:20:31:33:82:61:2B:18:12:79:E6:CC:D5:07:BA:43:ED:0B:D4:F7:96:02:B9:45:18:75:6F:70:61:D5:5F:50:A3:F2:9E:73:AC:1F:B3:28:22:EE:3E:B5:B2:D5:93:67:CA:F6:4C:15:C3:E7:03:99:F4:64:4E:24:3C:36:2D:66:F0:7A:E3:3C:E3:13:A6:9C:CE:2E:52:92:0A:92:5F:5B:05:17:CC:9A:EF:12:3D:62:6B:4D:9A:9E:F7:6E:8A:BE:CD:A5:90:B8:96:59:13:9E:57:4D:54:D7:7C:C7:F1:3E:C5:05:AB:18:0D:FE:03:8E:5A:0E:88:3B:F1:9F:C6:1B:94:A6:59:3F:24:14:7D:8F:41:94:2F:54:ED:1A:40:EA:C0:00:DD:40:BD:86:CE:1C:9F:FD:0B:D9:5B:FB:44:66:7C:DA:28:7C:50:97:5C:A4:18:6F:2D:44:0D:EB:78:89:A7:D7:FE:F6:A3:B3:00:EA:DC:F8:33:82:B5:E1:0B:EC:69:19" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162437Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:82 Saturday 26 August 2023 16:24:42 +0000 (0:00:00.016) 0:00:17.343 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:90 Saturday 26 August 2023 16:24:43 +0000 (0:00:00.048) 0:00:17.392 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:98 Saturday 26 August 2023 16:24:43 +0000 (0:00:00.017) 0:00:17.409 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:105 Saturday 26 August 2023 16:24:43 +0000 (0:00:00.041) 0:00:17.451 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:116 Saturday 26 August 2023 16:24:43 +0000 (0:00:00.070) 0:00:17.522 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Saturday 26 August 2023 16:24:43 +0000 (0:00:00.041) 0:00:17.563 ******* 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.044543", "end": "2023-08-26 16:24:43.413041", "rc": 0, "start": "2023-08-26 16:24:43.368498" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:138 Saturday 26 August 2023 16:24:43 +0000 (0:00:00.236) 0:00:17.799 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:67 Saturday 26 August 2023 16:24:43 +0000 (0:00:00.070) 0:00:17.869 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 26 August 2023 16:24:44 +0000 (0:00:00.625) 0:00:18.495 ******* included: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 26 August 2023 16:24:44 +0000 (0:00:00.018) 0:00:18.514 ******* skipping: [sut] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Saturday 26 August 2023 16:24:44 +0000 (0:00:00.052) 0:00:18.566 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_9.3.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat_9.3.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 26 August 2023 16:24:44 +0000 (0:00:00.037) 0:00:18.604 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Saturday 26 August 2023 16:24:44 +0000 (0:00:00.758) 0:00:19.362 ******* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Saturday 26 August 2023 16:24:45 +0000 (0:00:00.792) 0:00:20.155 ******* 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 [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Saturday 26 August 2023 16:24:46 +0000 (0:00:00.231) 0:00:20.387 ******* 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 [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Saturday 26 August 2023 16:24:46 +0000 (0:00:00.232) 0:00:20.620 ******* 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 2023-08-26 16:24:35 UTC", "ActiveEnterTimestampMonotonic": "333479800", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service system.slice systemd-journald.socket syslog.target basic.target sysinit.target dbus.socket network.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2023-08-26 16:24:35 UTC", "AssertTimestampMonotonic": "333470219", "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": "1582989000", "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 2023-08-26 16:24:35 UTC", "ConditionTimestampMonotonic": "333470215", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4185", "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": "6309", "ExecMainStartTimestamp": "Sat 2023-08-26 16:24:35 UTC", "ExecMainStartTimestampMonotonic": "333471295", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2023-08-26 16:24:35 UTC] ; stop_time=[n/a] ; pid=6309 ; 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 2023-08-26 16:24:35 UTC] ; stop_time=[n/a] ; pid=6309 ; 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 2023-08-26 16:24:35 UTC", "InactiveExitTimestampMonotonic": "333471670", "InvocationID": "459279caa2fa43a784f569bfaa8ccf8e", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13929", "LimitNPROCSoft": "13929", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13929", "LimitSIGPENDINGSoft": "13929", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6309", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "2473984", "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", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2023-08-26 16:24:35 UTC", "StateChangeTimestampMonotonic": "333479800", "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": "22286", "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 [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Saturday 26 August 2023 16:24:46 +0000 (0:00:00.376) 0:00:20.997 ******* 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 [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:150 Saturday 26 August 2023 16:24:48 +0000 (0:00:01.928) 0:00:22.925 ******* 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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(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, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:158 Saturday 26 August 2023 16:24:48 +0000 (0:00:00.076) 0:00:23.001 ******* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Saturday 26 August 2023 16:24:48 +0000 (0:00:00.028) 0:00:23.029 ******* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:179 Saturday 26 August 2023 16:24:48 +0000 (0:00:00.039) 0:00:23.069 ******* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:85 Saturday 26 August 2023 16:24:48 +0000 (0:00:00.108) 0:00:23.178 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:112 Saturday 26 August 2023 16:24:49 +0000 (0:00:00.628) 0:00:23.806 ******* included: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs_mode.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0620'}) included: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid_mode.crt', 'key_path': '/etc/pki/tls/private/certid_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'mode': '0600'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 26 August 2023 16:24:49 +0000 (0:00:00.034) 0:00:23.841 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:6 Saturday 26 August 2023 16:24:49 +0000 (0:00:00.012) 0:00:23.853 ******* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Saturday 26 August 2023 16:24:49 +0000 (0:00:00.013) 0:00:23.866 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.751) 0:00:24.618 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067087.384804, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "665ac8558620e4e04a8b364a002b4517450d766c", "ctime": 1693067087.4678042, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 17075125, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1693067087.381804, "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": "4218090827", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:29 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.202) 0:00:24.820 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:35 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.017) 0:00:24.838 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:45 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.060) 0:00:24.899 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.045) 0:00:24.944 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067087.3288038, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "873320ce107c70289974c70d25aca38307e4e797", "ctime": 1693067087.4678042, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 278584, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1693067087.381804, "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": "1474144792", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:56 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.204) 0:00:25.149 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:62 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.018) 0:00:25.167 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 Saturday 26 August 2023 16:24:50 +0000 (0:00:00.062) 0:00:25.230 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "BF:AB:4F:52:EF:FB:02:4F:A8:6D:57:EE:90:9C:8A:DA:0E:D8:9C:EB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "51:9A:9B:16:0E:43:4B:E6:49:64:B2:8D:0F:35:16:B3:9C:E6:41:61:69:76:CB:0D:BD:86:07:07:AC:98:54:D4:CE:85:EF:B9:49:E6:D6:AA:67:1B:1A:6B:94:BF:50:54:B3:6E:96:50:94:B5:56:8D:9C:F4:91:F3:38:4D:BC:64:D1:85:95:2D:87:5B:36:8E:A1:01:73:ED:D2:AA:8D:A5:65:1A:50:84:36:44:85:E2:1C:86:B2:47:26:72:33:A8:53:93:CE:EE:85:9E:29:C1:71:47:EC:D8:55:CA:C6:61:3A:04:9A:0D:BF:70:2B:CE:57:7E:EE:A8:5B:33:F4:9A:ED:BA:75:05:E5:CE:D5:36:C1:9D:55:21:C7:A4:58:4B:B2:AD:41:51:65:33:D8:70:2B:D5:AA:B6:5C:08:36:70:49:CB:44:95:72:E5:15:79:C2:88:31:17:20:BD:91:C2:EC:D4:50:F0:19:8C:9A:F4:7D:1A:B3:26:BC:FF:22:34:A9:7B:BA:51:7D:3F:F6:75:6D:2C:32:24:B9:D7:DF:B8:77:08:42:09:30:B2:F3:09:A1:4C:55:3E:E2:74:87:4F:93:D7:6F:4F:87:03:3B:09:97:F6:22:0C:67:80:61:96:8E:8C:3E:98:A8:C9:16:92:26:CB:CB:7B:7B:CD:E2:E6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162447Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:78 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.247) 0:00:25.477 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "BF:AB:4F:52:EF:FB:02:4F:A8:6D:57:EE:90:9C:8A:DA:0E:D8:9C:EB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "51:9A:9B:16:0E:43:4B:E6:49:64:B2:8D:0F:35:16:B3:9C:E6:41:61:69:76:CB:0D:BD:86:07:07:AC:98:54:D4:CE:85:EF:B9:49:E6:D6:AA:67:1B:1A:6B:94:BF:50:54:B3:6E:96:50:94:B5:56:8D:9C:F4:91:F3:38:4D:BC:64:D1:85:95:2D:87:5B:36:8E:A1:01:73:ED:D2:AA:8D:A5:65:1A:50:84:36:44:85:E2:1C:86:B2:47:26:72:33:A8:53:93:CE:EE:85:9E:29:C1:71:47:EC:D8:55:CA:C6:61:3A:04:9A:0D:BF:70:2B:CE:57:7E:EE:A8:5B:33:F4:9A:ED:BA:75:05:E5:CE:D5:36:C1:9D:55:21:C7:A4:58:4B:B2:AD:41:51:65:33:D8:70:2B:D5:AA:B6:5C:08:36:70:49:CB:44:95:72:E5:15:79:C2:88:31:17:20:BD:91:C2:EC:D4:50:F0:19:8C:9A:F4:7D:1A:B3:26:BC:FF:22:34:A9:7B:BA:51:7D:3F:F6:75:6D:2C:32:24:B9:D7:DF:B8:77:08:42:09:30:B2:F3:09:A1:4C:55:3E:E2:74:87:4F:93:D7:6F:4F:87:03:3B:09:97:F6:22:0C:67:80:61:96:8E:8C:3E:98:A8:C9:16:92:26:CB:CB:7B:7B:CD:E2:E6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162447Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:82 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.020) 0:00:25.497 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:90 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.053) 0:00:25.551 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:98 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.020) 0:00:25.572 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:105 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.039) 0:00:25.612 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:116 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.070) 0:00:25.683 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.045) 0:00:25.728 ******* 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.047645", "end": "2023-08-26 16:24:51.583717", "rc": 0, "start": "2023-08-26 16:24:51.536072" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:138 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.243) 0:00:25.971 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.050) 0:00:26.021 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:6 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.016) 0:00:26.038 ******* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Saturday 26 August 2023 16:24:51 +0000 (0:00:00.016) 0:00:26.055 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:24 Saturday 26 August 2023 16:24:52 +0000 (0:00:00.755) 0:00:26.811 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067088.374806, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "be2dd075e561114bd94934d3216f756f7654c076", "ctime": 1693067088.3728058, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17075126, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1693067088.3728058, "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": "3410429854", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:29 Saturday 26 August 2023 16:24:52 +0000 (0:00:00.201) 0:00:27.012 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:35 Saturday 26 August 2023 16:24:52 +0000 (0:00:00.017) 0:00:27.030 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:45 Saturday 26 August 2023 16:24:52 +0000 (0:00:00.061) 0:00:27.092 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:51 Saturday 26 August 2023 16:24:52 +0000 (0:00:00.041) 0:00:27.133 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1693067088.3188057, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e57d77cc492ebab0a812a8decb94edb2ef0bccc4", "ctime": 1693067088.3728058, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 278585, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1693067088.3728058, "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": "3004788581", "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-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:56 Saturday 26 August 2023 16:24:52 +0000 (0:00:00.203) 0:00:27.337 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:62 Saturday 26 August 2023 16:24:52 +0000 (0:00:00.021) 0:00:27.359 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.066) 0:00:27.425 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "1B:AD:C1:E5:AB:7E:EB:E6:F5:6D:D4:0B:5D:86:41:25:DE:97:AF:80" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "45:5E:60:01:A9:9D:38:3A:BB:AD:53:99:03:68:4C:67:16:BB:0B:59:3C:80:DC:55:A1:91:4D:10:ED:CE:6E:5F:FF:32:DB:30:D1:90:35:21:45:72:94:65:25:DD:7A:DE:A6:DA:52:65:15:C0:6C:21:35:1D:B2:99:60:DB:40:C8:1B:52:09:2D:B5:9C:24:46:78:94:B0:CD:DB:ED:73:69:57:D7:19:C2:1F:9D:45:85:45:A7:D7:C6:9D:83:F4:AA:2B:10:FC:74:B0:86:A9:F9:42:20:AD:B7:32:0F:C3:8F:37:B9:BD:57:77:42:8A:CF:76:45:42:9C:19:37:1B:60:8D:A5:15:64:51:81:26:97:11:F4:A3:DB:FA:FE:29:5B:5B:4B:AA:D7:A6:F2:6F:30:AA:F9:CC:55:1A:51:EC:11:F9:4D:D8:72:94:7B:81:91:D2:F8:89:E3:A3:6E:2D:93:E0:6D:EA:38:4D:A5:E5:7A:4E:09:D1:05:64:7D:81:63:1B:CC:84:20:07:97:9A:CA:13:F7:00:BC:D7:AD:6A:AA:CA:20:DA:9B:82:84:49:B2:03:92:F0:A3:A7:C1:D9:D1:87:28:AA:4F:86:82:8D:02:87:B7:C2:C8:F0:B4:24:6A:0D:5A:44:D8:AA:F4:EB:82:6F:6C:B4:73:06:0B:87:F6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162448Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:78 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.242) 0:00:27.668 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:D9:C4:E4:9E:CD:F4:B8:47:5C:DF:F0:D6:67:81:30:EE:8B:92:86" }, "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": "1B:AD:C1:E5:AB:7E:EB:E6:F5:6D:D4:0B:5D:86:41:25:DE:97:AF:80" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "45:5E:60:01:A9:9D:38:3A:BB:AD:53:99:03:68:4C:67:16:BB:0B:59:3C:80:DC:55:A1:91:4D:10:ED:CE:6E:5F:FF:32:DB:30:D1:90:35:21:45:72:94:65:25:DD:7A:DE:A6:DA:52:65:15:C0:6C:21:35:1D:B2:99:60:DB:40:C8:1B:52:09:2D:B5:9C:24:46:78:94:B0:CD:DB:ED:73:69:57:D7:19:C2:1F:9D:45:85:45:A7:D7:C6:9D:83:F4:AA:2B:10:FC:74:B0:86:A9:F9:42:20:AD:B7:32:0F:C3:8F:37:B9:BD:57:77:42:8A:CF:76:45:42:9C:19:37:1B:60:8D:A5:15:64:51:81:26:97:11:F4:A3:DB:FA:FE:29:5B:5B:4B:AA:D7:A6:F2:6F:30:AA:F9:CC:55:1A:51:EC:11:F9:4D:D8:72:94:7B:81:91:D2:F8:89:E3:A3:6E:2D:93:E0:6D:EA:38:4D:A5:E5:7A:4E:09:D1:05:64:7D:81:63:1B:CC:84:20:07:97:9A:CA:13:F7:00:BC:D7:AD:6A:AA:CA:20:DA:9B:82:84:49:B2:03:92:F0:A3:A7:C1:D9:D1:87:28:AA:4F:86:82:8D:02:87:B7:C2:C8:F0:B4:24:6A:0D:5A:44:D8:AA:F4:EB:82:6F:6C:B4:73:06:0B:87:F6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20240826162436Z", "not_valid_before": "20230826162448Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:82 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.019) 0:00:27.688 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:90 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.056) 0:00:27.744 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:98 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.019) 0:00:27.763 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:105 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.041) 0:00:27.805 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:116 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.074) 0:00:27.879 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:129 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.044) 0:00:27.924 ******* 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.047684", "end": "2023-08-26 16:24:53.777686", "rc": 0, "start": "2023-08-26 16:24:53.730002" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:138 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.239) 0:00:28.164 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=97 changed=9 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 Saturday 26 August 2023 16:24:53 +0000 (0:00:00.064) 0:00:28.228 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.53s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.67s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.13s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.93s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.87s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.83s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.79s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Ensure python3 is installed --------------------------------------------- 0.76s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.76s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 0.76s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Ensure python3 is installed --------------------------------------------- 0.76s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Ensure python3 is installed --------------------------------------------- 0.75s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:15 Gathering Facts --------------------------------------------------------- 0.64s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.63s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.63s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.62s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:14 -------------------- Ensure user exists ------------------------------------------------------ 0.46s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:5 --------------------- Ensure group "somegroup" exists ----------------------------------------- 0.39s /WORKDIR/git-weekly-civwdy0ad2/tests/tests_fs_attrs.yml:9 --------------------- Parse certificate ------------------------------------------------------- 0.38s /WORKDIR/git-weekly-civwdy0ad2/tests/tasks/assert_certificate_parameters.yml:72 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.38s /WORKDIR/git-weekly-civwdy0ad2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---