ansible-playbook [core 2.16.13] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-oX3 executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_subject_complex.yml ******************************************** 2 plays in /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:2 Monday 11 November 2024 20:09:23 -0500 (0:00:00.010) 0:00:00.010 ******* ok: [managed-node1] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 11 November 2024 20:09:25 -0500 (0:00:01.137) 0:00:01.147 ******* included: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 11 November 2024 20:09:25 -0500 (0:00:00.038) 0:00:01.186 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 11 November 2024 20:09:25 -0500 (0:00:00.035) 0:00:01.222 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 11 November 2024 20:09:25 -0500 (0:00:00.447) 0:00:01.670 ******* ok: [managed-node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 11 November 2024 20:09:25 -0500 (0:00:00.033) 0:00:01.703 ******* skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 11 November 2024 20:09:25 -0500 (0:00:00.051) 0:00:01.755 ******* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 11 November 2024 20:09:28 -0500 (0:00:03.166) 0:00:04.921 ******* ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 11 November 2024 20:09:31 -0500 (0:00:02.916) 0:00:07.838 ******* ok: [managed-node1] => (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": 41, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 11 November 2024 20:09:32 -0500 (0:00:00.501) 0:00:08.339 ******* ok: [managed-node1] => (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": 41, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 11 November 2024 20:09:32 -0500 (0:00:00.377) 0:00:08.716 ******* ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2024-11-11 20:08:42 EST", "ActiveEnterTimestampMonotonic": "403924501", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target system.slice dbus.socket sysinit.target syslog.target dbus.service basic.target systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-11-11 20:08:42 EST", "AssertTimestampMonotonic": "403912432", "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": "Mon 2024-11-11 20:08:42 EST", "ConditionTimestampMonotonic": "403912430", "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": "15391", "ExecMainStartTimestamp": "Mon 2024-11-11 20:08:42 EST", "ExecMainStartTimestampMonotonic": "403913279", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Mon 2024-11-11 20:08:42 EST] ; stop_time=[n/a] ; pid=15391 ; 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": "Mon 2024-11-11 20:08:42 EST", "InactiveExitTimestampMonotonic": "403913325", "InvocationID": "884d414b1bd74a8d975320f038cc75a8", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "15391", "MemoryAccounting": "yes", "MemoryCurrent": "4091904", "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": "Mon 2024-11-11 20:08:42 EST", "StateChangeTimestampMonotonic": "403924501", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Mon 2024-11-11 20:08:42 EST", "WatchdogTimestampMonotonic": "403924499", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 11 November 2024 20:09:33 -0500 (0:00:00.742) 0:00:09.458 ******* changed: [managed-node1] => (item={'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 11 November 2024 20:09:34 -0500 (0:00:01.072) 0:00:10.531 ******* skipping: [managed-node1] => (item=['cert', {'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=['key', {'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=['ca', {'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 11 November 2024 20:09:34 -0500 (0:00:00.054) 0:00:10.585 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 11 November 2024 20:09:34 -0500 (0:00:00.051) 0:00:10.637 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 11 November 2024 20:09:34 -0500 (0:00:00.053) 0:00:10.691 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:16 Monday 11 November 2024 20:09:34 -0500 (0:00:00.069) 0:00:10.760 ******* ok: [managed-node1] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:42 Monday 11 November 2024 20:09:35 -0500 (0:00:00.783) 0:00:11.544 ******* included: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 => (item={'path': '/etc/pki/tls/certs/mycert_subject_complex.crt', 'key_path': '/etc/pki/tls/private/mycert_subject_complex.key', 'subject': [{'name': 'emailAddress', 'oid': '1.2.840.113549.1.9.1', 'value': 'admin@example.com'}, {'name': 'commonName', 'oid': '2.5.4.3', 'value': '# \\\\Every"thing+that,ne;edsing\\0 '}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 11 November 2024 20:09:35 -0500 (0:00:00.037) 0:00:11.581 ******* ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 11 November 2024 20:09:35 -0500 (0:00:00.018) 0:00:11.600 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 11 November 2024 20:09:35 -0500 (0:00:00.021) 0:00:11.622 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 11 November 2024 20:09:35 -0500 (0:00:00.020) 0:00:11.642 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 11 November 2024 20:09:35 -0500 (0:00:00.015) 0:00:11.658 ******* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 11 November 2024 20:09:38 -0500 (0:00:02.909) 0:00:14.567 ******* ok: [managed-node1] => { "changed": false, "stat": { "atime": 1731373774.3198087, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "033848a20ca6be775621195cfc5b9b1b4a78939b", "ctime": 1731373774.3168087, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6986936, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1731373774.3168087, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject_complex.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1375, "uid": 0, "version": "830697047", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 11 November 2024 20:09:38 -0500 (0:00:00.345) 0:00:14.913 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 11 November 2024 20:09:38 -0500 (0:00:00.019) 0:00:14.932 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 11 November 2024 20:09:38 -0500 (0:00:00.044) 0:00:14.977 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 11 November 2024 20:09:39 -0500 (0:00:00.040) 0:00:15.017 ******* ok: [managed-node1] => { "changed": false, "stat": { "atime": 1731373774.2718086, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "391a54ae031ca222cf80b5caee2c40e136681145", "ctime": 1731373774.3168087, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6986935, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1731373774.3168087, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject_complex.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1098133242", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 11 November 2024 20:09:39 -0500 (0:00:00.345) 0:00:15.362 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 11 November 2024 20:09:39 -0500 (0:00:00.018) 0:00:15.381 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 11 November 2024 20:09:39 -0500 (0:00:00.044) 0:00:15.426 ******* ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "65:13:19:0F:91:5B:04:42:A9:E8:92:5C:05:7B:DD:BC:71:99:B0:1F" }, "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": "A3:0C:6C:5A:86:FF:A8:06:CD:98:7E:9A:FE:DB:58:02:C1:AF:00:3B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6C:63:B7:13:36:B4:77:32:CE:E8:A6:D8:7D:86:7C:D1:50:8A:B0:D2:57:96:D7:F2:AF:EE:91:2C:20:63:09:75:D7:25:B1:35:1F:54:A5:FA:E1:95:A6:73:26:97:B7:59:E0:5D:15:B5:83:7D:D0:04:87:33:58:AA:E7:AA:6D:9E:AF:14:17:A9:09:19:C8:D9:B1:F6:4E:CB:98:CD:6D:E9:1B:F8:75:93:E5:D7:5A:84:67:AC:EC:F7:91:D0:16:3E:0A:45:BA:BD:68:25:EB:62:84:50:F2:57:64:2A:25:2B:64:15:7F:AC:B4:19:48:8F:E8:F3:08:49:90:BD:6A:CD:F4:B8:F2:BE:5A:ED:B4:5A:93:EF:3A:8A:E4:CE:C0:C1:AA:12:B3:07:7A:80:7A:9A:20:E6:2A:51:6B:52:04:4E:C3:FD:24:11:89:F9:86:3B:6D:91:DC:B1:89:20:9F:6B:D6:46:84:72:2C:27:55:B8:5E:08:AD:28:A5:93:AC:A8:C0:B3:CA:00:71:72:1E:39:BD:A1:05:25:94:95:56:40:2F:58:4D:43:F5:E4:3F:42:A2:46:04:F1:37:62:E6:C1:9C:5D:7D:6F:0E:AD:63:21:9A:F5:78:89:1B:A0:EF:61:42:5C:31:99:16:A5:97:8E:05:77:9F:DE:D5:4B:87:C1" }, "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "validity": { "not_valid_after": "20251112010843Z", "not_valid_before": "20241112010934Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 11 November 2024 20:09:39 -0500 (0:00:00.504) 0:00:15.930 ******* ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "65:13:19:0F:91:5B:04:42:A9:E8:92:5C:05:7B:DD:BC:71:99:B0:1F" }, "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": "A3:0C:6C:5A:86:FF:A8:06:CD:98:7E:9A:FE:DB:58:02:C1:AF:00:3B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6C:63:B7:13:36:B4:77:32:CE:E8:A6:D8:7D:86:7C:D1:50:8A:B0:D2:57:96:D7:F2:AF:EE:91:2C:20:63:09:75:D7:25:B1:35:1F:54:A5:FA:E1:95:A6:73:26:97:B7:59:E0:5D:15:B5:83:7D:D0:04:87:33:58:AA:E7:AA:6D:9E:AF:14:17:A9:09:19:C8:D9:B1:F6:4E:CB:98:CD:6D:E9:1B:F8:75:93:E5:D7:5A:84:67:AC:EC:F7:91:D0:16:3E:0A:45:BA:BD:68:25:EB:62:84:50:F2:57:64:2A:25:2B:64:15:7F:AC:B4:19:48:8F:E8:F3:08:49:90:BD:6A:CD:F4:B8:F2:BE:5A:ED:B4:5A:93:EF:3A:8A:E4:CE:C0:C1:AA:12:B3:07:7A:80:7A:9A:20:E6:2A:51:6B:52:04:4E:C3:FD:24:11:89:F9:86:3B:6D:91:DC:B1:89:20:9F:6B:D6:46:84:72:2C:27:55:B8:5E:08:AD:28:A5:93:AC:A8:C0:B3:CA:00:71:72:1E:39:BD:A1:05:25:94:95:56:40:2F:58:4D:43:F5:E4:3F:42:A2:46:04:F1:37:62:E6:C1:9C:5D:7D:6F:0E:AD:63:21:9A:F5:78:89:1B:A0:EF:61:42:5C:31:99:16:A5:97:8E:05:77:9F:DE:D5:4B:87:C1" }, "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "validity": { "not_valid_after": "20251112010843Z", "not_valid_before": "20241112010934Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 11 November 2024 20:09:39 -0500 (0:00:00.023) 0:00:15.953 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 11 November 2024 20:09:39 -0500 (0:00:00.040) 0:00:15.994 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 11 November 2024 20:09:40 -0500 (0:00:00.021) 0:00:16.015 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 11 November 2024 20:09:40 -0500 (0:00:00.038) 0:00:16.054 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 11 November 2024 20:09:40 -0500 (0:00:00.043) 0:00:16.097 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 11 November 2024 20:09:40 -0500 (0:00:00.043) 0:00:16.140 ******* ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject_complex.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.053862", "end": "2024-11-11 20:09:40.573006", "rc": 0, "start": "2024-11-11 20:09:40.519144" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 11 November 2024 20:09:40 -0500 (0:00:00.489) 0:00:16.630 ******* ok: [managed-node1] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node1 : ok=30 changed=1 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Monday 11 November 2024 20:09:40 -0500 (0:00:00.037) 0:00:16.668 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.17s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.92s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.91s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Gathering Facts --------------------------------------------------------- 1.14s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.07s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.78s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:16 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.74s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Parse certificate ------------------------------------------------------- 0.50s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.50s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Retrieve auto-renew flag ------------------------------------------------ 0.49s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.45s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.38s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.35s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.35s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Remove files -------------------- 0.07s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.05s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 fedora.linux_system_roles.certificate : Stop tracking certificates ------ 0.05s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 fedora.linux_system_roles.certificate : Create return data -------------- 0.05s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.05s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Verify key file owner and group ----------------------------------------- 0.04s /tmp/collections-oX3/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76