ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpt8vnebz7 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 06 July 2022 22:41:06 +0000 (0:00:00.017) 0:00:00.017 ******** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 06 July 2022 22:41:07 +0000 (0:00:01.316) 0:00:01.334 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.32s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_fs_attrs.yml *************************************************** 3 plays in /tmp/tmplpebei7w/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:2 Wednesday 06 July 2022 22:41:07 +0000 (0:00:00.038) 0:00:01.372 ******** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:5 Wednesday 06 July 2022 22:41:08 +0000 (0:00:01.052) 0:00:02.424 ******** changed: [/cache/rhel-8.qcow2] => { "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: /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:9 Wednesday 06 July 2022 22:41:09 +0000 (0:00:00.861) 0:00:03.286 ******** changed: [/cache/rhel-8.qcow2] => { "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: /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:13 Wednesday 06 July 2022 22:41:10 +0000 (0:00:00.775) 0:00:04.061 ******** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 22:41:11 +0000 (0:00:00.796) 0:00:04.858 ******** included: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 22:41:11 +0000 (0:00:00.024) 0:00:04.882 ******** ok: [/cache/rhel-8.qcow2] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 22:41:11 +0000 (0:00:00.520) 0:00:05.403 ******** skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat_8.6.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.6.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 22:41:11 +0000 (0:00:00.041) 0:00:05.444 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 22:41:13 +0000 (0:00:01.481) 0:00:06.926 ******** ok: [/cache/rhel-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 22:41:14 +0000 (0:00:01.316) 0:00:08.242 ******** ok: [/cache/rhel-8.qcow2] => (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: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 22:41:15 +0000 (0:00:00.549) 0:00:08.792 ******** ok: [/cache/rhel-8.qcow2] => (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: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 22:41:15 +0000 (0:00:00.408) 0:00:09.200 ******** ok: [/cache/rhel-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 18:36:04 EDT", "ActiveEnterTimestampMonotonic": "228945850", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus.service dbus.socket syslog.target network.target system.slice systemd-journald.socket basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 18:36:04 EDT", "AssertTimestampMonotonic": "228933431", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 18:36:04 EDT", "ConditionTimestampMonotonic": "228933431", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "23911", "ExecMainStartTimestamp": "Wed 2022-07-06 18:36:04 EDT", "ExecMainStartTimestampMonotonic": "228934830", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 18:36:04 EDT", "InactiveExitTimestampMonotonic": "228934872", "InvocationID": "73d85d6be97a474c9524444a92253530", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14648", "LimitNPROCSoft": "14648", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14648", "LimitSIGPENDINGSoft": "14648", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "23911", "MemoryAccounting": "yes", "MemoryCurrent": "3792896", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-07-06 18:36:04 EDT", "StateChangeTimestampMonotonic": "228945850", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "23436", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-07-06 18:36:04 EDT", "WatchdogTimestampMonotonic": "228945849", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 22:41:16 +0000 (0:00:00.790) 0:00:09.990 ******** changed: [/cache/rhel-8.qcow2] => (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: [/cache/rhel-8.qcow2] => (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. META: role_complete for /cache/rhel-8.qcow2 META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:31 Wednesday 06 July 2022 22:41:18 +0000 (0:00:01.773) 0:00:11.764 ******** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:60 Wednesday 06 July 2022 22:41:18 +0000 (0:00:00.797) 0:00:12.561 ******** included: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml for /cache/rhel-8.qcow2 => (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: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml for /cache/rhel-8.qcow2 => (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: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 22:41:18 +0000 (0:00:00.070) 0:00:12.631 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 22:41:18 +0000 (0:00:00.028) 0:00:12.660 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 22:41:20 +0000 (0:00:01.358) 0:00:14.018 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 22:41:21 +0000 (0:00:01.138) 0:00:15.157 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.6/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.6/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 22:41:22 +0000 (0:00:00.873) 0:00:16.030 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657147276.5999799, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "df65bc7f58f01b97cb11dec45401d79c32e784f1", "ctime": 1657147276.6419797, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 14469, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657147276.5969799, "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": "1851642266", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 22:41:22 +0000 (0:00:00.506) 0:00:16.537 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 22:41:22 +0000 (0:00:00.031) 0:00:16.569 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 22:41:22 +0000 (0:00:00.048) 0:00:16.617 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 22:41:22 +0000 (0:00:00.044) 0:00:16.661 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657147276.54998, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "48fd341207ef3dcf90b9a5fbb43e661407aa1dec", "ctime": 1657147276.6429799, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 8399976, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657147276.5969799, "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": "2113883347", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 22:41:23 +0000 (0:00:00.373) 0:00:17.035 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 22:41:23 +0000 (0:00:00.032) 0:00:17.067 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 22:41:23 +0000 (0:00:00.045) 0:00:17.113 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_fs_attrs.crt" ], "delta": "0:00:00.222619", "end": "2022-07-06 18:41:23.527846", "rc": 0, "start": "2022-07-06 18:41:23.305227" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "53:8D:28:D1:D5:70:E6:4F:B5:14:65:48:F8:DB:DF:D3:75:2C:4B:3F", "critical": false }, "authorityKeyIdentifier": { "value": "59:31:B7:F8:0D:08:12:16:0A:D4:E8:FA:0B:BD:91:65:C9:DC:60:5A", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3F:C3:A5:01:1D:49:E7:6B:60:C4:4B:B4:6A:BF:32:7F:62:25:CE:9A:0A:27:45:FB:3D:5E:6E:2E:DB:DD:A1:8D:BA:B3:DE:1C:64:E9:C0:58:B3:85:F8:49:83:AD:E7:A2:C1:DF:36:A6:E2:82:C9:02:72:5D:8F:02:5B:A8:FF:22:AD:85:70:32:42:D0:69:FA:B4:39:D6:DB:2D:00:E9:0A:F8:B9:7F:21:7A:12:2D:53:BA:20:9C:EB:D1:9C:3B:7B:D3:37:5B:96:20:17:4B:27:53:DE:25:A0:00:62:9B:C0:5F:05:78:C2:B5:F0:78:7F:D5:37:33:90:CF:37:79:CA:C0:A8:EC:53:DC:28:3B:88:31:38:4A:4E:99:00:14:79:7A:C9:5A:B6:B7:5D:40:47:FE:2A:8B:71:44:BE:5E:FA:60:E8:BC:BF:77:ED:19:C6:87:B8:87:5C:A5:88:46:75:AE:D1:AB:E5:D6:B3:08:BE:BB:0E:27:E5:14:4A:5D:7E:2C:34:68:09:33:05:88:85:E0:6A:92:7F:3C:5E:09:56:64:74:90:43:D3:4F:96:BD:09:79:F1:28:AF:19:B0:FA:75:E7:51:E0:DC:98:C7:11:69:EA:44:A6:12:CF:44:6B:7F:BA:2F:B9:F4:8A:78:C8:5C:46:04:27:C5:A1:08:F0" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 22:36:04", "not_valid_before": "2022-07-06 22:41:16" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.703) 0:00:17.817 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "59:31:B7:F8:0D:08:12:16:0A:D4:E8:FA:0B:BD:91:65:C9:DC:60:5A" }, "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": "53:8D:28:D1:D5:70:E6:4F:B5:14:65:48:F8:DB:DF:D3:75:2C:4B:3F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3F:C3:A5:01:1D:49:E7:6B:60:C4:4B:B4:6A:BF:32:7F:62:25:CE:9A:0A:27:45:FB:3D:5E:6E:2E:DB:DD:A1:8D:BA:B3:DE:1C:64:E9:C0:58:B3:85:F8:49:83:AD:E7:A2:C1:DF:36:A6:E2:82:C9:02:72:5D:8F:02:5B:A8:FF:22:AD:85:70:32:42:D0:69:FA:B4:39:D6:DB:2D:00:E9:0A:F8:B9:7F:21:7A:12:2D:53:BA:20:9C:EB:D1:9C:3B:7B:D3:37:5B:96:20:17:4B:27:53:DE:25:A0:00:62:9B:C0:5F:05:78:C2:B5:F0:78:7F:D5:37:33:90:CF:37:79:CA:C0:A8:EC:53:DC:28:3B:88:31:38:4A:4E:99:00:14:79:7A:C9:5A:B6:B7:5D:40:47:FE:2A:8B:71:44:BE:5E:FA:60:E8:BC:BF:77:ED:19:C6:87:B8:87:5C:A5:88:46:75:AE:D1:AB:E5:D6:B3:08:BE:BB:0E:27:E5:14:4A:5D:7E:2C:34:68:09:33:05:88:85:E0:6A:92:7F:3C:5E:09:56:64:74:90:43:D3:4F:96:BD:09:79:F1:28:AF:19:B0:FA:75:E7:51:E0:DC:98:C7:11:69:EA:44:A6:12:CF:44:6B:7F:BA:2F:B9:F4:8A:78:C8:5C:46:04:27:C5:A1:08:F0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 22:36:04", "not_valid_before": "2022-07-06 22:41:16" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.044) 0:00:17.861 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.046) 0:00:17.908 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.030) 0:00:17.938 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.040) 0:00:17.979 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.042) 0:00:18.021 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.042) 0:00:18.063 ******** ok: [/cache/rhel-8.qcow2] => { "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.073216", "end": "2022-07-06 18:41:24.210871", "rc": 0, "start": "2022-07-06 18:41:24.137655" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.447) 0:00:18.511 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.046) 0:00:18.557 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 22:41:24 +0000 (0:00:00.027) 0:00:18.585 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 22:41:26 +0000 (0:00:01.449) 0:00:20.034 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 22:41:27 +0000 (0:00:00.995) 0:00:21.030 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.6/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.6/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 22:41:28 +0000 (0:00:00.877) 0:00:21.907 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657147277.29698, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "886e29e6554bdf52413ab5633e313bb6afebc191", "ctime": 1657147277.4399798, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 14471, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657147277.29398, "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": "3942476973", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 22:41:28 +0000 (0:00:00.378) 0:00:22.286 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 22:41:28 +0000 (0:00:00.029) 0:00:22.316 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 22:41:28 +0000 (0:00:00.048) 0:00:22.364 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 22:41:28 +0000 (0:00:00.065) 0:00:22.429 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657147277.2489798, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "135d2c078dbfcdf3f5b34a4f33f96db9780a8d5e", "ctime": 1657147277.4399798, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 8399977, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657147277.29398, "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": "1177108643", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 22:41:29 +0000 (0:00:00.386) 0:00:22.816 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 22:41:29 +0000 (0:00:00.033) 0:00:22.850 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 22:41:29 +0000 (0:00:00.046) 0:00:22.896 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/certid.crt" ], "delta": "0:00:00.234571", "end": "2022-07-06 18:41:29.213823", "rc": 0, "start": "2022-07-06 18:41:28.979252" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "74:98:95:DF:BB:18:66:16:2B:AF:B2:B0:9F:1C:A4:DD:90:B3:1B:0E", "critical": false }, "authorityKeyIdentifier": { "value": "59:31:B7:F8:0D:08:12:16:0A:D4:E8:FA:0B:BD:91:65:C9:DC:60:5A", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6F:65:62:3F:1F:74:41:CB:EA:0A:F1:5D:92:F8:FB:98:D4:97:F7:61:9D:3C:C7:C7:77:47:3D:84:8F:83:4C:1A:26:83:BE:93:7A:86:0B:E2:0E:18:59:C6:F9:47:BE:C1:E4:BB:BD:8E:C1:14:79:D8:4B:12:2F:4E:66:BB:2A:5C:B2:79:72:CC:10:C8:05:A5:EA:D6:8F:E8:E0:4A:83:AA:69:12:CA:B3:25:7F:18:D7:29:29:B8:B6:9F:FE:46:D4:7D:DB:2A:66:78:96:38:85:29:6B:4E:B6:FD:4C:6B:80:BF:96:4C:5E:E5:A3:53:A3:00:93:5F:F4:40:E5:0C:41:3B:27:5B:8A:45:1D:DB:21:94:4A:77:4B:21:EE:57:4A:45:D0:DD:03:B5:24:0B:F3:E6:FE:F5:C4:CE:51:81:6B:95:AB:AD:BC:BF:A0:87:FA:9E:FF:78:E1:B6:2F:0C:40:25:C4:72:36:DF:71:22:6A:5F:E1:20:A1:05:D3:90:22:F4:D6:F6:FE:4C:EF:99:C9:E4:8C:4F:E9:D9:F8:D1:5B:65:95:A3:41:08:72:84:4B:B1:DA:95:E4:AB:7D:23:63:7D:9A:5F:F4:6F:8C:50:28:F3:3F:F2:A3:CB:7D:EA:0E:38:09:AD:74:E6:A5:3B:BB:07:4D:D8:BF:5A:D2:D9:BD" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 22:36:04", "not_valid_before": "2022-07-06 22:41:17" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 22:41:29 +0000 (0:00:00.608) 0:00:23.504 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "59:31:B7:F8:0D:08:12:16:0A:D4:E8:FA:0B:BD:91:65:C9:DC:60:5A" }, "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": "74:98:95:DF:BB:18:66:16:2B:AF:B2:B0:9F:1C:A4:DD:90:B3:1B:0E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6F:65:62:3F:1F:74:41:CB:EA:0A:F1:5D:92:F8:FB:98:D4:97:F7:61:9D:3C:C7:C7:77:47:3D:84:8F:83:4C:1A:26:83:BE:93:7A:86:0B:E2:0E:18:59:C6:F9:47:BE:C1:E4:BB:BD:8E:C1:14:79:D8:4B:12:2F:4E:66:BB:2A:5C:B2:79:72:CC:10:C8:05:A5:EA:D6:8F:E8:E0:4A:83:AA:69:12:CA:B3:25:7F:18:D7:29:29:B8:B6:9F:FE:46:D4:7D:DB:2A:66:78:96:38:85:29:6B:4E:B6:FD:4C:6B:80:BF:96:4C:5E:E5:A3:53:A3:00:93:5F:F4:40:E5:0C:41:3B:27:5B:8A:45:1D:DB:21:94:4A:77:4B:21:EE:57:4A:45:D0:DD:03:B5:24:0B:F3:E6:FE:F5:C4:CE:51:81:6B:95:AB:AD:BC:BF:A0:87:FA:9E:FF:78:E1:B6:2F:0C:40:25:C4:72:36:DF:71:22:6A:5F:E1:20:A1:05:D3:90:22:F4:D6:F6:FE:4C:EF:99:C9:E4:8C:4F:E9:D9:F8:D1:5B:65:95:A3:41:08:72:84:4B:B1:DA:95:E4:AB:7D:23:63:7D:9A:5F:F4:6F:8C:50:28:F3:3F:F2:A3:CB:7D:EA:0E:38:09:AD:74:E6:A5:3B:BB:07:4D:D8:BF:5A:D2:D9:BD" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 22:36:04", "not_valid_before": "2022-07-06 22:41:17" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 22:41:29 +0000 (0:00:00.043) 0:00:23.548 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 22:41:29 +0000 (0:00:00.070) 0:00:23.618 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 22:41:29 +0000 (0:00:00.057) 0:00:23.676 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 22:41:30 +0000 (0:00:00.043) 0:00:23.720 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 22:41:30 +0000 (0:00:00.047) 0:00:23.767 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 22:41:30 +0000 (0:00:00.046) 0:00:23.814 ******** ok: [/cache/rhel-8.qcow2] => { "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.067680", "end": "2022-07-06 18:41:29.958759", "rc": 0, "start": "2022-07-06 18:41:29.891079" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 22:41:30 +0000 (0:00:00.432) 0:00:24.247 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=56 changed=3 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 22:41:30 +0000 (0:00:00.054) 0:00:24.301 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate requests ------------ 1.77s /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.48s /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- Ensure python3 is installed --------------------------------------------- 1.45s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:6 -------------- Ensure python3 is installed --------------------------------------------- 1.36s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:6 -------------- set up internal repositories -------------------------------------------- 1.32s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- linux-system-roles.certificate : Ensure provider packages are installed --- 1.32s /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Install the package, force upgrade -------------------------------------- 1.14s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:11 ------------- Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:2 ----------------------------------- Install the package, force upgrade -------------------------------------- 1.00s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:11 ------------- Install certreader ------------------------------------------------------ 0.88s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:18 ------------- Install certreader ------------------------------------------------------ 0.87s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:18 ------------- Ensure user exists ------------------------------------------------------ 0.86s /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:5 ----------------------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:31 ---------------------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:13 ---------------------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.79s /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Ensure group "somegroup" exists ----------------------------------------- 0.78s /tmp/tmplpebei7w/tests/tests_fs_attrs.yml:9 ----------------------------------- Parse certificate ------------------------------------------------------- 0.70s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:78 ------------- Parse certificate ------------------------------------------------------- 0.61s /tmp/tmplpebei7w/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.55s /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.52s /tmp/tmplpebei7w/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpt8vnebz7 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 06 July 2022 22:53:41 +0000 (0:00:00.017) 0:00:00.017 ******** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 06 July 2022 22:53:42 +0000 (0:00:01.330) 0:00:01.348 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.33s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_fs_attrs.yml *************************************************** 3 plays in /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:2 Wednesday 06 July 2022 22:53:42 +0000 (0:00:00.043) 0:00:01.392 ******** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:5 Wednesday 06 July 2022 22:53:43 +0000 (0:00:01.030) 0:00:02.422 ******** changed: [/cache/rhel-8.qcow2] => { "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: /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:9 Wednesday 06 July 2022 22:53:44 +0000 (0:00:00.851) 0:00:03.273 ******** changed: [/cache/rhel-8.qcow2] => { "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: /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:13 Wednesday 06 July 2022 22:53:45 +0000 (0:00:00.768) 0:00:04.042 ******** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 22:53:46 +0000 (0:00:00.810) 0:00:04.853 ******** included: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 22:53:46 +0000 (0:00:00.027) 0:00:04.880 ******** ok: [/cache/rhel-8.qcow2] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 22:53:46 +0000 (0:00:00.504) 0:00:05.385 ******** skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=RedHat_8.6.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.6.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 22:53:46 +0000 (0:00:00.042) 0:00:05.427 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 22:53:48 +0000 (0:00:01.447) 0:00:06.875 ******** ok: [/cache/rhel-8.qcow2] => (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: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 22:53:49 +0000 (0:00:01.296) 0:00:08.172 ******** ok: [/cache/rhel-8.qcow2] => (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: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 22:53:49 +0000 (0:00:00.538) 0:00:08.711 ******** ok: [/cache/rhel-8.qcow2] => (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: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 22:53:50 +0000 (0:00:00.403) 0:00:09.115 ******** ok: [/cache/rhel-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 18:48:34 EDT", "ActiveEnterTimestampMonotonic": "217577643", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service dbus.socket sysinit.target system.slice basic.target network.target syslog.target systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 18:48:34 EDT", "AssertTimestampMonotonic": "217565677", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 18:48:34 EDT", "ConditionTimestampMonotonic": "217565676", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "23914", "ExecMainStartTimestamp": "Wed 2022-07-06 18:48:34 EDT", "ExecMainStartTimestampMonotonic": "217566944", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 18:48:34 EDT", "InactiveExitTimestampMonotonic": "217566995", "InvocationID": "d54891b3cfa34d7ca4a9f82aac3ff004", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14648", "LimitNPROCSoft": "14648", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14648", "LimitSIGPENDINGSoft": "14648", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "23914", "MemoryAccounting": "yes", "MemoryCurrent": "3780608", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-07-06 18:48:34 EDT", "StateChangeTimestampMonotonic": "217577643", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "23436", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-07-06 18:48:34 EDT", "WatchdogTimestampMonotonic": "217577641", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 22:53:51 +0000 (0:00:00.783) 0:00:09.899 ******** changed: [/cache/rhel-8.qcow2] => (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: [/cache/rhel-8.qcow2] => (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. META: role_complete for /cache/rhel-8.qcow2 META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:31 Wednesday 06 July 2022 22:53:52 +0000 (0:00:01.835) 0:00:11.734 ******** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:60 Wednesday 06 July 2022 22:53:53 +0000 (0:00:00.810) 0:00:12.545 ******** included: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/rhel-8.qcow2 => (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: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/rhel-8.qcow2 => (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: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 22:53:53 +0000 (0:00:00.076) 0:00:12.621 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 22:53:53 +0000 (0:00:00.027) 0:00:12.649 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 22:53:55 +0000 (0:00:01.291) 0:00:13.941 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 22:53:56 +0000 (0:00:01.169) 0:00:15.110 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.6/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.6/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 22:53:57 +0000 (0:00:00.871) 0:00:15.982 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657148030.614848, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1f6c339003e3166c8b39492df8715798ff314f80", "ctime": 1657148030.6628478, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 14405, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657148030.6128478, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1273, "uid": 14, "version": "688010302", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 22:53:57 +0000 (0:00:00.511) 0:00:16.494 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 22:53:57 +0000 (0:00:00.033) 0:00:16.527 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 22:53:57 +0000 (0:00:00.048) 0:00:16.575 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 22:53:57 +0000 (0:00:00.042) 0:00:16.618 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657148030.5668478, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cac93476f12248d6700939427956996d52b27306", "ctime": 1657148030.663848, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 8400296, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657148030.6128478, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "3478161382", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 22:53:58 +0000 (0:00:00.358) 0:00:16.977 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 22:53:58 +0000 (0:00:00.030) 0:00:17.008 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 22:53:58 +0000 (0:00:00.049) 0:00:17.057 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_fs_attrs.crt" ], "delta": "0:00:00.225633", "end": "2022-07-06 18:53:57.582948", "rc": 0, "start": "2022-07-06 18:53:57.357315" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "17:01:DF:C3:57:27:86:A6:A2:B4:93:CC:F0:37:06:AC:00:42:23:B7", "critical": false }, "authorityKeyIdentifier": { "value": "FD:F7:0C:F2:B1:C6:45:2A:0C:57:81:A6:5B:4F:95:51:CE:58:82:6C", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "00:07:30:44:C5:29:59:AC:21:38:46:A3:2D:EF:0B:2A:40:45:DF:DC:04:3B:B2:43:BD:15:67:2F:CD:0D:3B:67:24:59:FF:E0:1B:7F:33:9B:3B:DB:82:0C:A5:DC:2D:57:DE:A6:1D:0F:92:50:C0:79:3F:B2:D8:9F:6C:35:0B:F7:3E:DC:4A:3A:F0:92:27:64:A8:94:BC:94:39:D6:51:FC:AC:35:DD:F4:B8:51:97:7C:02:51:61:52:89:24:02:8F:39:5D:A4:A8:69:07:5D:50:79:A3:A2:53:63:AC:FC:9C:2C:A8:FD:34:1B:00:C2:BF:C2:A9:40:BD:75:DD:A1:DF:54:B5:C5:C2:24:C3:BA:45:F1:1A:1C:90:58:9E:12:57:21:F9:DF:B7:47:50:E2:3C:EB:C5:D7:02:34:A0:F5:64:61:F0:42:3C:45:DB:51:DB:B8:5B:39:93:04:DE:A4:EE:96:FC:A3:E5:31:4A:07:51:70:DA:CF:B3:A6:1E:52:89:40:10:6F:87:C6:84:E5:1C:94:8D:77:82:4E:98:08:A6:DF:53:ED:D8:5C:F5:EB:A1:BF:5C:B4:FD:E8:A8:80:47:58:DD:AC:53:95:8B:C8:61:A5:5A:01:D9:D6:8C:4D:9F:B7:C6:76:D8:EF:79:18:6B:CA:FD:B0:D5:A8:21:21:82" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 22:48:35", "not_valid_before": "2022-07-06 22:53:50" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.714) 0:00:17.771 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:F7:0C:F2:B1:C6:45:2A:0C:57:81:A6:5B:4F:95:51:CE:58:82:6C" }, "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": "17:01:DF:C3:57:27:86:A6:A2:B4:93:CC:F0:37:06:AC:00:42:23:B7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "00:07:30:44:C5:29:59:AC:21:38:46:A3:2D:EF:0B:2A:40:45:DF:DC:04:3B:B2:43:BD:15:67:2F:CD:0D:3B:67:24:59:FF:E0:1B:7F:33:9B:3B:DB:82:0C:A5:DC:2D:57:DE:A6:1D:0F:92:50:C0:79:3F:B2:D8:9F:6C:35:0B:F7:3E:DC:4A:3A:F0:92:27:64:A8:94:BC:94:39:D6:51:FC:AC:35:DD:F4:B8:51:97:7C:02:51:61:52:89:24:02:8F:39:5D:A4:A8:69:07:5D:50:79:A3:A2:53:63:AC:FC:9C:2C:A8:FD:34:1B:00:C2:BF:C2:A9:40:BD:75:DD:A1:DF:54:B5:C5:C2:24:C3:BA:45:F1:1A:1C:90:58:9E:12:57:21:F9:DF:B7:47:50:E2:3C:EB:C5:D7:02:34:A0:F5:64:61:F0:42:3C:45:DB:51:DB:B8:5B:39:93:04:DE:A4:EE:96:FC:A3:E5:31:4A:07:51:70:DA:CF:B3:A6:1E:52:89:40:10:6F:87:C6:84:E5:1C:94:8D:77:82:4E:98:08:A6:DF:53:ED:D8:5C:F5:EB:A1:BF:5C:B4:FD:E8:A8:80:47:58:DD:AC:53:95:8B:C8:61:A5:5A:01:D9:D6:8C:4D:9F:B7:C6:76:D8:EF:79:18:6B:CA:FD:B0:D5:A8:21:21:82" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 22:48:35", "not_valid_before": "2022-07-06 22:53:50" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.043) 0:00:17.815 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.049) 0:00:17.865 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.034) 0:00:17.899 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.042) 0:00:17.942 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.046) 0:00:17.988 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.045) 0:00:18.033 ******** ok: [/cache/rhel-8.qcow2] => { "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.067374", "end": "2022-07-06 18:53:58.278444", "rc": 0, "start": "2022-07-06 18:53:58.211070" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.431) 0:00:18.465 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.046) 0:00:18.511 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 22:53:59 +0000 (0:00:00.027) 0:00:18.539 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 22:54:01 +0000 (0:00:01.303) 0:00:19.842 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 22:54:02 +0000 (0:00:01.022) 0:00:20.864 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.6/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.6/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 22:54:02 +0000 (0:00:00.883) 0:00:21.748 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657148031.3948479, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "228178052ad84bfc27d9ca5165984bcfaaa43bcc", "ctime": 1657148031.508848, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 14407, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657148031.3918478, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1273, "uid": 1040, "version": "1283110908", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 22:54:03 +0000 (0:00:00.356) 0:00:22.105 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 22:54:03 +0000 (0:00:00.030) 0:00:22.135 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 22:54:03 +0000 (0:00:00.046) 0:00:22.182 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 22:54:03 +0000 (0:00:00.044) 0:00:22.226 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1657148031.344848, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1e3479a2cc2fad2fcb1a49af5651172c9f9dfef4", "ctime": 1657148031.508848, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 8400297, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1657148031.3918478, "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": "2384818727", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 22:54:03 +0000 (0:00:00.364) 0:00:22.591 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 22:54:03 +0000 (0:00:00.033) 0:00:22.624 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 22:54:03 +0000 (0:00:00.047) 0:00:22.672 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/certid.crt" ], "delta": "0:00:00.220888", "end": "2022-07-06 18:54:03.065825", "rc": 0, "start": "2022-07-06 18:54:02.844937" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "65:F3:2C:E4:E9:AD:BE:FA:7C:90:B6:B5:FD:DB:8A:52:4C:66:9F:97", "critical": false }, "authorityKeyIdentifier": { "value": "FD:F7:0C:F2:B1:C6:45:2A:0C:57:81:A6:5B:4F:95:51:CE:58:82:6C", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "67:48:E6:AA:91:12:F7:D7:AA:A6:1E:E8:93:E9:22:95:79:D5:0E:F7:8B:09:87:BE:03:68:4D:16:25:01:99:B0:05:76:49:42:5D:DF:47:CA:7F:44:90:3E:2B:39:B1:51:87:5C:A0:F4:F7:40:47:AA:E0:1D:29:8C:00:A7:BB:09:0D:5F:8A:4E:0A:F3:03:56:D4:40:74:D9:9B:1B:FE:79:8A:B4:9E:2B:7E:F4:43:7B:E6:B9:7A:DC:9E:0E:9F:87:F0:A4:72:59:FE:C8:47:97:BB:3E:FC:5C:EA:4C:99:5C:E7:E6:63:34:0B:97:C0:F0:D2:40:E7:B0:FC:9A:D3:2B:17:12:C6:E1:A1:60:FC:90:78:43:E2:7C:E1:B8:94:C9:E0:0F:A9:F2:D7:AA:12:7F:0B:28:76:5D:24:4C:DF:0A:42:87:20:4A:EA:6D:B6:0F:96:30:2C:CB:C7:4F:B0:FC:51:2C:2F:A4:F7:13:A5:3C:86:96:67:E4:4A:3E:B1:A2:85:71:14:87:3F:7D:71:C3:6E:3D:E6:C2:03:5C:DB:48:C9:A1:60:AF:4E:1B:F5:D6:4C:C5:E3:A3:9F:D0:C4:C3:48:BC:42:16:27:3D:5C:41:3B:D0:E8:66:3A:D7:05:C1:DF:D5:2D:CB:D0:05:56:ED:FC:91:21:99:48:26:8A:9A" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 22:48:35", "not_valid_before": "2022-07-06 22:53:51" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 22:54:04 +0000 (0:00:00.584) 0:00:23.256 ******** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FD:F7:0C:F2:B1:C6:45:2A:0C:57:81:A6:5B:4F:95:51:CE:58:82:6C" }, "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": "65:F3:2C:E4:E9:AD:BE:FA:7C:90:B6:B5:FD:DB:8A:52:4C:66:9F:97" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "67:48:E6:AA:91:12:F7:D7:AA:A6:1E:E8:93:E9:22:95:79:D5:0E:F7:8B:09:87:BE:03:68:4D:16:25:01:99:B0:05:76:49:42:5D:DF:47:CA:7F:44:90:3E:2B:39:B1:51:87:5C:A0:F4:F7:40:47:AA:E0:1D:29:8C:00:A7:BB:09:0D:5F:8A:4E:0A:F3:03:56:D4:40:74:D9:9B:1B:FE:79:8A:B4:9E:2B:7E:F4:43:7B:E6:B9:7A:DC:9E:0E:9F:87:F0:A4:72:59:FE:C8:47:97:BB:3E:FC:5C:EA:4C:99:5C:E7:E6:63:34:0B:97:C0:F0:D2:40:E7:B0:FC:9A:D3:2B:17:12:C6:E1:A1:60:FC:90:78:43:E2:7C:E1:B8:94:C9:E0:0F:A9:F2:D7:AA:12:7F:0B:28:76:5D:24:4C:DF:0A:42:87:20:4A:EA:6D:B6:0F:96:30:2C:CB:C7:4F:B0:FC:51:2C:2F:A4:F7:13:A5:3C:86:96:67:E4:4A:3E:B1:A2:85:71:14:87:3F:7D:71:C3:6E:3D:E6:C2:03:5C:DB:48:C9:A1:60:AF:4E:1B:F5:D6:4C:C5:E3:A3:9F:D0:C4:C3:48:BC:42:16:27:3D:5C:41:3B:D0:E8:66:3A:D7:05:C1:DF:D5:2D:CB:D0:05:56:ED:FC:91:21:99:48:26:8A:9A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 22:48:35", "not_valid_before": "2022-07-06 22:53:51" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 22:54:04 +0000 (0:00:00.044) 0:00:23.301 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 22:54:04 +0000 (0:00:00.045) 0:00:23.346 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 22:54:04 +0000 (0:00:00.032) 0:00:23.378 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 22:54:04 +0000 (0:00:00.044) 0:00:23.422 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 22:54:04 +0000 (0:00:00.044) 0:00:23.467 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 22:54:04 +0000 (0:00:00.044) 0:00:23.512 ******** ok: [/cache/rhel-8.qcow2] => { "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.064681", "end": "2022-07-06 18:54:03.768074", "rc": 0, "start": "2022-07-06 18:54:03.703393" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 22:54:05 +0000 (0:00:00.441) 0:00:23.954 ******** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=56 changed=3 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 22:54:05 +0000 (0:00:00.053) 0:00:24.007 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.84s /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.45s /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 set up internal repositories -------------------------------------------- 1.33s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Ensure python3 is installed --------------------------------------------- 1.30s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.30s /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Ensure python3 is installed --------------------------------------------- 1.29s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- Install the package, force upgrade -------------------------------------- 1.17s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:2 ----------------------- Install the package, force upgrade -------------------------------------- 1.02s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Install certreader ------------------------------------------------------ 0.88s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:18 - Install certreader ------------------------------------------------------ 0.87s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:18 - Ensure user exists ------------------------------------------------------ 0.85s /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:5 ----------------------- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:13 ---------------------- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:31 ---------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.78s /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Ensure group "somegroup" exists ----------------------------------------- 0.77s /tmp/tmp0buh2ky5/tests/certificate/tests_fs_attrs.yml:9 ----------------------- Parse certificate ------------------------------------------------------- 0.71s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:74 - Parse certificate ------------------------------------------------------- 0.58s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.54s /tmp/tmpt8vnebz7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 0.51s /tmp/tmp0buh2ky5/tests/certificate/tasks/assert_certificate_parameters.yml:26 -