ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_subject.yml **************************************************** 2 plays in /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 Tuesday 24 September 2024 12:51:59 -0400 (0:00:00.020) 0:00:00.020 ***** ok: [managed-node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Tuesday 24 September 2024 12:51:59 -0400 (0:00:00.862) 0:00:00.883 ***** included: /tmp/collections-y8P/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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Tuesday 24 September 2024 12:51:59 -0400 (0:00:00.018) 0:00:00.901 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Tuesday 24 September 2024 12:52:00 -0400 (0:00:00.034) 0:00:00.936 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Tuesday 24 September 2024 12:52:00 -0400 (0:00:00.431) 0:00:01.367 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Tuesday 24 September 2024 12:52:00 -0400 (0:00:00.036) 0:00:01.404 ***** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Tuesday 24 September 2024 12:52:00 -0400 (0:00:00.051) 0:00:01.456 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Tuesday 24 September 2024 12:52:03 -0400 (0:00:02.914) 0:00:04.370 ***** ok: [managed-node1] => (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/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Tuesday 24 September 2024 12:52:06 -0400 (0:00:02.789) 0:00:07.160 ***** 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": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Tuesday 24 September 2024 12:52:06 -0400 (0:00:00.564) 0:00:07.724 ***** 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": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Tuesday 24 September 2024 12:52:07 -0400 (0:00:00.729) 0:00:08.453 ***** ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-09-24 12:50:36 EDT", "ActiveEnterTimestampMonotonic": "318772812", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target syslog.target basic.target dbus.socket dbus.service system.slice systemd-journald.socket sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-09-24 12:50:36 EDT", "AssertTimestampMonotonic": "318761486", "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": "Tue 2024-09-24 12:50:36 EDT", "ConditionTimestampMonotonic": "318761485", "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": "9410", "ExecMainStartTimestamp": "Tue 2024-09-24 12:50:36 EDT", "ExecMainStartTimestampMonotonic": "318762433", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Tue 2024-09-24 12:50:36 EDT] ; stop_time=[n/a] ; pid=9410 ; 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": "Tue 2024-09-24 12:50:36 EDT", "InactiveExitTimestampMonotonic": "318762467", "InvocationID": "99253b5ae75040d99074fcfa34e23424", "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": "9410", "MemoryAccounting": "yes", "MemoryCurrent": "3940352", "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": "dbus.socket sysinit.target system.slice", "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": "Tue 2024-09-24 12:50:36 EDT", "StateChangeTimestampMonotonic": "318772812", "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": "Tue 2024-09-24 12:50:36 EDT", "WatchdogTimestampMonotonic": "318772808", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Tuesday 24 September 2024 12:52:08 -0400 (0:00:00.768) 0:00:09.222 ***** changed: [managed-node1] => (item={'name': 'mycert_subject', 'dns': 'www.example.com', 'common_name': 'Some other common name', 'country': 'US', 'state': 'NC', 'locality': 'Raleigh', 'organization': 'Red Hat', 'organizational_unit': 'Linux', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Tuesday 24 September 2024 12:52:09 -0400 (0:00:00.910) 0:00:10.132 ***** skipping: [managed-node1] => (item=['cert', {'name': 'mycert_subject', 'dns': 'www.example.com', 'common_name': 'Some other common name', 'country': 'US', 'state': 'NC', 'locality': 'Raleigh', 'organization': 'Red Hat', 'organizational_unit': 'Linux', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=['key', {'name': 'mycert_subject', 'dns': 'www.example.com', 'common_name': 'Some other common name', 'country': 'US', 'state': 'NC', 'locality': 'Raleigh', 'organization': 'Red Hat', 'organizational_unit': 'Linux', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=['ca', {'name': 'mycert_subject', 'dns': 'www.example.com', 'common_name': 'Some other common name', 'country': 'US', 'state': 'NC', 'locality': 'Raleigh', 'organization': 'Red Hat', 'organizational_unit': 'Linux', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Tuesday 24 September 2024 12:52:09 -0400 (0:00:00.072) 0:00:10.205 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Tuesday 24 September 2024 12:52:09 -0400 (0:00:00.057) 0:00:10.262 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Tuesday 24 September 2024 12:52:09 -0400 (0:00:00.043) 0:00:10.306 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 Tuesday 24 September 2024 12:52:09 -0400 (0:00:00.045) 0:00:10.351 ***** ok: [managed-node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 Tuesday 24 September 2024 12:52:10 -0400 (0:00:00.600) 0:00:10.952 ***** included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 24 September 2024 12:52:10 -0400 (0:00:00.081) 0:00:11.033 ***** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 24 September 2024 12:52:10 -0400 (0:00:00.014) 0:00:11.047 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 24 September 2024 12:52:10 -0400 (0:00:00.040) 0:00:11.087 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 24 September 2024 12:52:10 -0400 (0:00:00.039) 0:00:11.127 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 24 September 2024 12:52:10 -0400 (0:00:00.042) 0:00:11.170 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 24 September 2024 12:52:13 -0400 (0:00:02.804) 0:00:13.974 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1727196729.0404236, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9b28e89c3d0c8cc833eed25d564b7f7b0f7e1fd8", "ctime": 1727196729.0374236, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718650, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727196729.0374236, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1411, "uid": 0, "version": "1110528459", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 24 September 2024 12:52:13 -0400 (0:00:00.374) 0:00:14.348 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 24 September 2024 12:52:13 -0400 (0:00:00.046) 0:00:14.394 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 24 September 2024 12:52:13 -0400 (0:00:00.056) 0:00:14.451 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 24 September 2024 12:52:13 -0400 (0:00:00.045) 0:00:14.496 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1727196728.9964232, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f7a6b703c05768794b2afe7fffd4a90946eca382", "ctime": 1727196729.0374236, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718649, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727196729.0374236, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "88355819", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 24 September 2024 12:52:13 -0400 (0:00:00.360) 0:00:14.856 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 24 September 2024 12:52:13 -0400 (0:00:00.059) 0:00:14.915 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.068) 0:00:14.983 ***** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DE:B7:F6:D3:EE:DF:2D:69:E6:F4:4D:A4:5D:27:BB:84:9D:58:7B:7F" }, "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": "AB:E1:EF:F9:A0:D1:EB:84:48:EC:03:5A:50:E3:F6:E1:6E:70:CD:2A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B4:8F:02:5A:98:A6:D4:C3:0A:EF:B1:B4:F0:CA:94:8B:02:C3:D8:77:27:A9:AB:82:95:E0:A2:D1:42:52:4B:B4:AA:F9:5C:60:8A:35:B5:17:7E:53:96:9A:29:CB:57:44:C3:CE:1D:F7:B9:81:8A:80:28:3C:77:49:1E:9E:B1:C5:44:66:56:A8:BB:BA:CE:7F:AD:37:81:81:1A:58:55:C0:89:90:2D:46:C1:5D:41:FF:08:E1:50:50:02:10:A2:B0:D4:29:D2:92:95:53:73:36:9C:B4:01:48:10:17:B5:85:8C:58:0B:9E:DC:AC:99:78:A6:88:7C:AB:3A:C3:60:87:70:77:6C:1F:6D:0B:8D:C6:74:BC:40:A5:63:3B:EE:24:39:13:8B:58:22:D6:1A:AC:3E:9E:46:20:B4:33:F8:DF:F2:ED:52:96:21:ED:24:9B:D6:FD:41:D4:39:5B:97:D5:5D:7D:4B:D5:91:8F:1B:6D:AD:4B:11:5A:05:0F:15:30:D9:1B:9D:EC:25:59:0C:06:F0:2B:B9:FC:9B:F5:13:A0:FC:EC:FF:F2:5A:3B:C1:81:A7:C1:D3:D3:44:F9:EB:B3:02:AC:C0:B6:2C:F5:05:F9:85:EB:66:67:B3:4F:8D:45:B2:42:73:CA:28:3A:4A:9A:85:97:1B:0B:27:B7:A3:C8" }, "subject": [ { "name": "countryName", "oid": "2.5.4.6", "value": "US" }, { "name": "stateOrProvinceName", "oid": "2.5.4.8", "value": "NC" }, { "name": "localityName", "oid": "2.5.4.7", "value": "Raleigh" }, { "name": "organizationName", "oid": "2.5.4.10", "value": "Red Hat" }, { "name": "organizationalUnitName", "oid": "2.5.4.11", "value": "Linux" }, { "name": "commonName", "oid": "2.5.4.3", "value": "Some other common name" } ], "validity": { "not_valid_after": "20250924165036Z", "not_valid_before": "20240924165209Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.533) 0:00:15.517 ***** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DE:B7:F6:D3:EE:DF:2D:69:E6:F4:4D:A4:5D:27:BB:84:9D:58:7B:7F" }, "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": "AB:E1:EF:F9:A0:D1:EB:84:48:EC:03:5A:50:E3:F6:E1:6E:70:CD:2A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B4:8F:02:5A:98:A6:D4:C3:0A:EF:B1:B4:F0:CA:94:8B:02:C3:D8:77:27:A9:AB:82:95:E0:A2:D1:42:52:4B:B4:AA:F9:5C:60:8A:35:B5:17:7E:53:96:9A:29:CB:57:44:C3:CE:1D:F7:B9:81:8A:80:28:3C:77:49:1E:9E:B1:C5:44:66:56:A8:BB:BA:CE:7F:AD:37:81:81:1A:58:55:C0:89:90:2D:46:C1:5D:41:FF:08:E1:50:50:02:10:A2:B0:D4:29:D2:92:95:53:73:36:9C:B4:01:48:10:17:B5:85:8C:58:0B:9E:DC:AC:99:78:A6:88:7C:AB:3A:C3:60:87:70:77:6C:1F:6D:0B:8D:C6:74:BC:40:A5:63:3B:EE:24:39:13:8B:58:22:D6:1A:AC:3E:9E:46:20:B4:33:F8:DF:F2:ED:52:96:21:ED:24:9B:D6:FD:41:D4:39:5B:97:D5:5D:7D:4B:D5:91:8F:1B:6D:AD:4B:11:5A:05:0F:15:30:D9:1B:9D:EC:25:59:0C:06:F0:2B:B9:FC:9B:F5:13:A0:FC:EC:FF:F2:5A:3B:C1:81:A7:C1:D3:D3:44:F9:EB:B3:02:AC:C0:B6:2C:F5:05:F9:85:EB:66:67:B3:4F:8D:45:B2:42:73:CA:28:3A:4A:9A:85:97:1B:0B:27:B7:A3:C8" }, "subject": [ { "name": "countryName", "oid": "2.5.4.6", "value": "US" }, { "name": "stateOrProvinceName", "oid": "2.5.4.8", "value": "NC" }, { "name": "localityName", "oid": "2.5.4.7", "value": "Raleigh" }, { "name": "organizationName", "oid": "2.5.4.10", "value": "Red Hat" }, { "name": "organizationalUnitName", "oid": "2.5.4.11", "value": "Linux" }, { "name": "commonName", "oid": "2.5.4.3", "value": "Some other common name" } ], "validity": { "not_valid_after": "20250924165036Z", "not_valid_before": "20240924165209Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.047) 0:00:15.564 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.045) 0:00:15.610 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.052) 0:00:15.663 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.053) 0:00:15.716 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.057) 0:00:15.774 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 24 September 2024 12:52:14 -0400 (0:00:00.050) 0:00:15.824 ***** ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.051662", "end": "2024-09-24 12:52:15.350102", "rc": 0, "start": "2024-09-24 12:52:15.298440" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 24 September 2024 12:52:15 -0400 (0:00:00.489) 0:00:16.314 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node1 : ok=30 changed=1 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Tuesday 24 September 2024 12:52:15 -0400 (0:00:00.034) 0:00:16.349 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.91s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.80s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.79s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 0.91s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.86s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.77s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.73s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Gathering Facts --------------------------------------------------------- 0.60s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.56s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.53s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.49s /tmp/collections-y8P/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.43s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve certificate file stats ----------------------------------------- 0.37s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.36s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Verify each certificate ------------------------------------------------- 0.08s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.07s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Verify key file owner and group ----------------------------------------- 0.07s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Verify if key file exists ----------------------------------------------- 0.06s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 fedora.linux_system_roles.certificate : Create return data -------------- 0.06s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Verify certificate Key Usage -------------------------------------------- 0.06s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119