ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [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_fs_attrs.yml *************************************************** 5 plays in /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 10 August 2024 08:24:13 -0400 (0:00:00.021) 0:00:00.021 ******* ok: [managed_node1] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 10 August 2024 08:24:14 -0400 (0:00:00.760) 0:00:00.782 ******* changed: [managed_node1] => { "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/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 10 August 2024 08:24:15 -0400 (0:00:00.788) 0:00:01.571 ******* changed: [managed_node1] => { "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/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 10 August 2024 08:24:15 -0400 (0:00:00.453) 0:00:02.025 ******* ok: [managed_node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 10 August 2024 08:24:16 -0400 (0:00:00.519) 0:00:02.544 ******* included: /tmp/collections-E3f/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-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 08:24:16 -0400 (0:00:00.027) 0:00:02.572 ******* 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-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 10 August 2024 08:24:16 -0400 (0:00:00.040) 0:00:02.612 ******* 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-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 10 August 2024 08:24:16 -0400 (0:00:00.358) 0:00:02.971 ******* 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-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 10 August 2024 08:24:16 -0400 (0:00:00.044) 0:00:03.015 ******* 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" } ok: [managed_node1] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed_node1] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 10 August 2024 08:24:17 -0400 (0:00:00.071) 0:00:03.086 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "python2-pyasn1-0.1.9-7.el7.noarch providing python-pyasn1 is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python-cryptography is already installed", "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 10 August 2024 08:24:18 -0400 (0:00:01.472) 0:00:04.559 ******* ok: [managed_node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [ "certmonger-0.78.4-17.el7_9.x86_64 providing certmonger is already installed" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 10 August 2024 08:24:19 -0400 (0:00:00.517) 0:00:05.077 ******* 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 10 August 2024 08:24:19 -0400 (0:00:00.425) 0:00:05.502 ******* 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 10 August 2024 08:24:19 -0400 (0:00:00.370) 0:00:05.873 ******* ok: [managed_node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-10 08:24:00 EDT", "ActiveEnterTimestampMonotonic": "218487079", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service systemd-journald.socket system.slice basic.target network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-10 08:24:00 EDT", "AssertTimestampMonotonic": "218458307", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-10 08:24:00 EDT", "ConditionTimestampMonotonic": "218458305", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9595", "ExecMainStartTimestamp": "Sat 2024-08-10 08:24:00 EDT", "ExecMainStartTimestampMonotonic": "218458976", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-10 08:24:00 EDT] ; stop_time=[n/a] ; pid=9595 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-10 08:24:00 EDT", "InactiveExitTimestampMonotonic": "218459031", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9595", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-10 08:24:00 EDT", "WatchdogTimestampMonotonic": "218487029", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 10 August 2024 08:24:20 -0400 (0:00:00.588) 0:00:06.462 ******* changed: [managed_node1] => (item={u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}) => { "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: [managed_node1] => (item={u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 10 August 2024 08:24:21 -0400 (0:00:01.362) 0:00:07.824 ******* skipping: [managed_node1] => (item=[u'cert', {u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'cert', {u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'key', {u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'key', {u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'ca', {u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'ca', {u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 10 August 2024 08:24:21 -0400 (0:00:00.069) 0:00:07.893 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 10 August 2024 08:24:21 -0400 (0:00:00.038) 0:00:07.932 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 10 August 2024 08:24:21 -0400 (0:00:00.039) 0:00:07.972 ******* 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-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 10 August 2024 08:24:21 -0400 (0:00:00.044) 0:00:08.016 ******* ok: [managed_node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 10 August 2024 08:24:22 -0400 (0:00:00.520) 0:00:08.537 ******* included: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 included: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 08:24:22 -0400 (0:00:00.083) 0:00:08.621 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 08:24:22 -0400 (0:00:00.020) 0:00:08.642 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 08:24:22 -0400 (0:00:00.038) 0:00:08.680 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 08:24:22 -0400 (0:00:00.038) 0:00:08.719 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.514) 0:00:09.233 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.040) 0:00:09.274 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292661.0807772, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "076584c5e1f8ef83ee2099ab5d8f3c951f392699", "ctime": 1723292661.1637785, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 171877, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723292661.076777, "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": "1637474985", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.286) 0:00:09.560 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.044) 0:00:09.605 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.050) 0:00:09.655 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.047) 0:00:09.703 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292661.0377765, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4bb3a3bfccbf243d3cbaab6a7d5e1e98bda66e71", "ctime": 1723292661.1647785, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 168506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723292661.076777, "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": "1637474972", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.295) 0:00:09.998 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 08:24:23 -0400 (0:00:00.044) 0:00:10.042 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.050) 0:00:10.092 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "5E:97:74:41:2D:9F:E1:5C:F8:9D:F2:4B:01:92:98:0B:D0:F1:2A:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "10:D2:16:18:45:B4:86:96:2F:29:04:CD:F7:E2:39:E0:81:7A:44:85:7E:66:3F:62:72:9B:80:47:EA:48:03:ED:DB:85:6C:ED:F8:73:39:ED:4C:82:73:51:D0:C8:87:9E:81:57:8D:E5:6B:5B:BE:56:09:43:C3:A0:1F:12:26:57:8A:13:A2:4C:9A:CE:86:B3:32:51:64:7C:2A:6F:7B:D7:43:A6:18:8F:55:B8:82:D2:6A:55:13:96:E7:53:48:B1:E1:0B:BD:C9:EF:EB:BA:4E:F3:73:6F:C7:53:3C:BB:3D:9F:A2:B8:B4:3D:6E:E0:5B:F2:45:70:67:E8:E9:07:2F:E4:79:FC:9D:A7:54:62:64:1D:07:9A:58:F2:41:DD:5A:67:F7:7C:57:26:4A:3D:19:FC:02:1A:00:DC:98:23:67:0A:D7:AC:7B:00:B0:5D:8A:95:4C:4D:9A:BA:EB:3B:65:8E:75:73:8F:C8:87:61:C8:1C:7E:BE:70:E1:B9:FA:EF:FC:61:55:E9:69:86:D9:06:EB:5F:64:3B:86:01:90:A5:A3:A0:9D:94:C8:93:8A:A6:B6:84:5A:80:5A:B2:B2:26:FA:10:80:B4:72:28:1D:83:A2:8C:65:A7:90:48:06:A4:B6:6E:DF:18:B3:26:E6:1F:4E:1C:06:C1:56:67:46:E2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122421Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.468) 0:00:10.561 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "5E:97:74:41:2D:9F:E1:5C:F8:9D:F2:4B:01:92:98:0B:D0:F1:2A:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "10:D2:16:18:45:B4:86:96:2F:29:04:CD:F7:E2:39:E0:81:7A:44:85:7E:66:3F:62:72:9B:80:47:EA:48:03:ED:DB:85:6C:ED:F8:73:39:ED:4C:82:73:51:D0:C8:87:9E:81:57:8D:E5:6B:5B:BE:56:09:43:C3:A0:1F:12:26:57:8A:13:A2:4C:9A:CE:86:B3:32:51:64:7C:2A:6F:7B:D7:43:A6:18:8F:55:B8:82:D2:6A:55:13:96:E7:53:48:B1:E1:0B:BD:C9:EF:EB:BA:4E:F3:73:6F:C7:53:3C:BB:3D:9F:A2:B8:B4:3D:6E:E0:5B:F2:45:70:67:E8:E9:07:2F:E4:79:FC:9D:A7:54:62:64:1D:07:9A:58:F2:41:DD:5A:67:F7:7C:57:26:4A:3D:19:FC:02:1A:00:DC:98:23:67:0A:D7:AC:7B:00:B0:5D:8A:95:4C:4D:9A:BA:EB:3B:65:8E:75:73:8F:C8:87:61:C8:1C:7E:BE:70:E1:B9:FA:EF:FC:61:55:E9:69:86:D9:06:EB:5F:64:3B:86:01:90:A5:A3:A0:9D:94:C8:93:8A:A6:B6:84:5A:80:5A:B2:B2:26:FA:10:80:B4:72:28:1D:83:A2:8C:65:A7:90:48:06:A4:B6:6E:DF:18:B3:26:E6:1F:4E:1C:06:C1:56:67:46:E2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122421Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.045) 0:00:10.606 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.046) 0:00:10.653 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.044) 0:00:10.697 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.044) 0:00:10.741 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.048) 0:00:10.790 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 08:24:24 -0400 (0:00:00.048) 0:00:10.839 ******* ok: [managed_node1] => { "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.044118", "end": "2024-08-10 08:24:25.163447", "rc": 0, "start": "2024-08-10 08:24:25.119329" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 08:24:25 -0400 (0:00:00.474) 0:00:11.313 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 08:24:25 -0400 (0:00:00.045) 0:00:11.358 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 08:24:25 -0400 (0:00:00.020) 0:00:11.378 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 08:24:25 -0400 (0:00:00.038) 0:00:11.417 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 08:24:25 -0400 (0:00:00.039) 0:00:11.457 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 08:24:25 -0400 (0:00:00.515) 0:00:11.972 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 08:24:25 -0400 (0:00:00.038) 0:00:12.011 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292661.6447868, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0a9dbe8054e0c15262362a8e01f231b817d7fda5", "ctime": 1723292661.6977878, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172750, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723292661.640787, "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": "1637475023", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 08:24:26 -0400 (0:00:00.295) 0:00:12.306 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 08:24:26 -0400 (0:00:00.044) 0:00:12.350 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 08:24:26 -0400 (0:00:00.049) 0:00:12.400 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 08:24:26 -0400 (0:00:00.045) 0:00:12.446 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292661.6027863, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0316fd1fba7ecbb571c5998f7f3acc084ad5ce6e", "ctime": 1723292661.6977878, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172748, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723292661.640787, "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": "1637475010", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 08:24:26 -0400 (0:00:00.300) 0:00:12.747 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 08:24:26 -0400 (0:00:00.044) 0:00:12.791 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 08:24:26 -0400 (0:00:00.048) 0:00:12.840 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "71:95:61:0B:B9:78:91:44:F3:AD:0C:E6:6B:66:4B:57:9A:2F:28:98" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "20:79:96:90:27:D7:5E:23:CE:9E:2F:E3:2F:83:3B:52:1B:B2:65:7F:46:3A:AC:0A:04:0F:1A:30:14:BA:3A:65:07:84:89:D3:FE:F3:BB:53:07:8D:2D:44:FE:16:08:52:8D:5A:DF:63:C4:29:EB:FA:0E:E5:34:65:A9:31:D1:2A:7E:22:D7:98:A6:6C:8D:DE:35:A1:84:20:02:0A:6E:B8:6D:A6:86:2A:E0:45:B4:B3:EE:4A:34:72:69:9E:39:E3:51:8E:33:95:73:12:E5:F3:3F:60:C0:63:F4:39:0D:1F:E3:E7:63:A8:FE:89:97:7E:69:2E:95:63:5A:A6:0E:66:A2:60:90:23:60:13:94:B2:BD:CE:67:BF:C8:07:13:24:D9:24:F4:8C:2D:82:44:F8:F7:9B:6F:CE:15:88:A1:FD:C5:30:81:24:1B:A1:40:46:B8:39:E6:FD:20:65:05:A0:BB:14:9C:71:1B:2E:2B:5A:CD:89:23:ED:06:7F:58:11:AF:81:1D:A9:B1:CA:00:BA:7D:97:F0:C7:A3:A3:C3:64:D2:80:0E:42:BC:A5:16:E2:1C:B0:7A:12:0A:F6:92:2D:AC:15:D7:46:4A:7C:8E:CA:3F:60:20:44:CA:0B:D2:63:B0:FC:D5:46:94:F1:DD:C8:04:38:06:4D:EA:B7:BB:24" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122421Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.356) 0:00:13.197 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "71:95:61:0B:B9:78:91:44:F3:AD:0C:E6:6B:66:4B:57:9A:2F:28:98" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "20:79:96:90:27:D7:5E:23:CE:9E:2F:E3:2F:83:3B:52:1B:B2:65:7F:46:3A:AC:0A:04:0F:1A:30:14:BA:3A:65:07:84:89:D3:FE:F3:BB:53:07:8D:2D:44:FE:16:08:52:8D:5A:DF:63:C4:29:EB:FA:0E:E5:34:65:A9:31:D1:2A:7E:22:D7:98:A6:6C:8D:DE:35:A1:84:20:02:0A:6E:B8:6D:A6:86:2A:E0:45:B4:B3:EE:4A:34:72:69:9E:39:E3:51:8E:33:95:73:12:E5:F3:3F:60:C0:63:F4:39:0D:1F:E3:E7:63:A8:FE:89:97:7E:69:2E:95:63:5A:A6:0E:66:A2:60:90:23:60:13:94:B2:BD:CE:67:BF:C8:07:13:24:D9:24:F4:8C:2D:82:44:F8:F7:9B:6F:CE:15:88:A1:FD:C5:30:81:24:1B:A1:40:46:B8:39:E6:FD:20:65:05:A0:BB:14:9C:71:1B:2E:2B:5A:CD:89:23:ED:06:7F:58:11:AF:81:1D:A9:B1:CA:00:BA:7D:97:F0:C7:A3:A3:C3:64:D2:80:0E:42:BC:A5:16:E2:1C:B0:7A:12:0A:F6:92:2D:AC:15:D7:46:4A:7C:8E:CA:3F:60:20:44:CA:0B:D2:63:B0:FC:D5:46:94:F1:DD:C8:04:38:06:4D:EA:B7:BB:24" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122421Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.044) 0:00:13.242 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.045) 0:00:13.288 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.045) 0:00:13.333 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.044) 0:00:13.378 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.048) 0:00:13.427 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.049) 0:00:13.477 ******* ok: [managed_node1] => { "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.044456", "end": "2024-08-10 08:24:27.685459", "rc": 0, "start": "2024-08-10 08:24:27.641003" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.322) 0:00:13.799 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 10 August 2024 08:24:27 -0400 (0:00:00.051) 0:00:13.851 ******* ok: [managed_node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 10 August 2024 08:24:28 -0400 (0:00:00.542) 0:00:14.393 ******* included: /tmp/collections-E3f/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-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 10 August 2024 08:24:28 -0400 (0:00:00.027) 0:00:14.421 ******* 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-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 10 August 2024 08:24:28 -0400 (0:00:00.085) 0:00:14.507 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 10 August 2024 08:24:28 -0400 (0:00:00.105) 0:00:14.612 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 10 August 2024 08:24:28 -0400 (0:00:00.040) 0:00:14.653 ******* 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" } ok: [managed_node1] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed_node1] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 10 August 2024 08:24:28 -0400 (0:00:00.074) 0:00:14.728 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "python2-pyasn1-0.1.9-7.el7.noarch providing python-pyasn1 is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python-cryptography is already installed", "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 10 August 2024 08:24:29 -0400 (0:00:01.272) 0:00:16.001 ******* ok: [managed_node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [ "certmonger-0.78.4-17.el7_9.x86_64 providing certmonger is already installed" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 10 August 2024 08:24:30 -0400 (0:00:00.528) 0:00:16.530 ******* 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 10 August 2024 08:24:30 -0400 (0:00:00.302) 0:00:16.832 ******* 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 10 August 2024 08:24:31 -0400 (0:00:00.311) 0:00:17.144 ******* ok: [managed_node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-10 08:24:00 EDT", "ActiveEnterTimestampMonotonic": "218487079", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service systemd-journald.socket system.slice basic.target network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-10 08:24:00 EDT", "AssertTimestampMonotonic": "218458307", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-10 08:24:00 EDT", "ConditionTimestampMonotonic": "218458305", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9595", "ExecMainStartTimestamp": "Sat 2024-08-10 08:24:00 EDT", "ExecMainStartTimestampMonotonic": "218458976", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-10 08:24:00 EDT] ; stop_time=[n/a] ; pid=9595 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-10 08:24:00 EDT", "InactiveExitTimestampMonotonic": "218459031", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9595", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-10 08:24:00 EDT", "WatchdogTimestampMonotonic": "218487029", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 10 August 2024 08:24:31 -0400 (0:00:00.391) 0:00:17.536 ******* changed: [managed_node1] => (item={u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed_node1] => (item={u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 10 August 2024 08:24:32 -0400 (0:00:01.424) 0:00:18.960 ******* skipping: [managed_node1] => (item=[u'cert', {u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'cert', {u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'key', {u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'key', {u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'ca', {u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=[u'ca', {u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 10 August 2024 08:24:32 -0400 (0:00:00.070) 0:00:19.030 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.038) 0:00:19.069 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.040) 0:00:19.110 ******* 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-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.044) 0:00:19.154 ******* ok: [managed_node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.559) 0:00:19.714 ******* included: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 included: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.081) 0:00:19.796 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.020) 0:00:19.817 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.038) 0:00:19.856 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 08:24:33 -0400 (0:00:00.038) 0:00:19.894 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 08:24:34 -0400 (0:00:00.520) 0:00:20.415 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 08:24:34 -0400 (0:00:00.039) 0:00:20.455 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292671.997967, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8fb2e03d2ad7ec25262b7f4fce0789bc3c02c885", "ctime": 1723292672.1379695, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172752, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723292671.991967, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs_mode.crt", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "1637475148", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 08:24:34 -0400 (0:00:00.299) 0:00:20.754 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 08:24:34 -0400 (0:00:00.044) 0:00:20.799 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 08:24:34 -0400 (0:00:00.050) 0:00:20.849 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 08:24:34 -0400 (0:00:00.046) 0:00:20.896 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292671.9519663, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "359b9d05671bc075790f28770e5ed6503b9a4f51", "ctime": 1723292672.1379695, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172751, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723292671.991967, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "1637475135", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.295) 0:00:21.191 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.044) 0:00:21.235 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.049) 0:00:21.285 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "F3:DA:8B:BB:9C:28:B1:9F:8C:10:EF:ED:6A:CC:7D:C4:D9:F3:74:A3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "08:A5:EF:BB:F6:2C:F7:AA:FC:2F:5A:EE:D5:DD:58:0F:85:76:DB:83:94:A5:FE:6B:A4:01:47:F1:A6:8C:D9:D4:F1:9C:36:AE:08:CA:9D:1C:91:E7:67:35:E9:B2:D9:7A:19:46:B6:99:26:E9:5C:68:DF:A9:09:47:FC:47:A8:D6:9D:2A:81:C6:4C:10:CF:A8:7E:9E:0E:F1:C1:12:5C:1F:51:33:3A:95:6B:F4:26:E0:88:86:D2:D2:C6:EC:F2:82:38:C8:88:A3:3A:F7:A4:C8:24:4B:CD:27:9F:70:84:81:4E:05:1E:33:05:C6:5E:A2:77:4D:16:BD:29:38:DE:4A:3D:15:24:AF:0C:BE:2D:FD:76:42:1F:1E:59:13:3A:51:E7:47:F5:65:C5:05:4D:BA:93:34:2C:03:F4:BD:B1:DB:57:B6:82:69:AF:22:05:8B:E3:CC:26:CF:E5:5E:47:9C:8C:78:B8:0D:98:E5:F2:F0:D9:A9:6C:00:3D:7D:70:FA:5D:F4:A3:93:8C:71:E2:97:E6:B8:48:4F:1F:08:34:EA:4E:E9:E1:52:92:02:2E:87:EE:CA:CF:AD:A6:63:CE:F5:9C:E2:59:C1:65:1F:A3:95:AC:75:63:7E:E8:94:FE:4A:CE:E0:24:C4:EB:1B:83:1D:53:55:7A:76:87:53:72:1A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122431Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.360) 0:00:21.646 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "F3:DA:8B:BB:9C:28:B1:9F:8C:10:EF:ED:6A:CC:7D:C4:D9:F3:74:A3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "08:A5:EF:BB:F6:2C:F7:AA:FC:2F:5A:EE:D5:DD:58:0F:85:76:DB:83:94:A5:FE:6B:A4:01:47:F1:A6:8C:D9:D4:F1:9C:36:AE:08:CA:9D:1C:91:E7:67:35:E9:B2:D9:7A:19:46:B6:99:26:E9:5C:68:DF:A9:09:47:FC:47:A8:D6:9D:2A:81:C6:4C:10:CF:A8:7E:9E:0E:F1:C1:12:5C:1F:51:33:3A:95:6B:F4:26:E0:88:86:D2:D2:C6:EC:F2:82:38:C8:88:A3:3A:F7:A4:C8:24:4B:CD:27:9F:70:84:81:4E:05:1E:33:05:C6:5E:A2:77:4D:16:BD:29:38:DE:4A:3D:15:24:AF:0C:BE:2D:FD:76:42:1F:1E:59:13:3A:51:E7:47:F5:65:C5:05:4D:BA:93:34:2C:03:F4:BD:B1:DB:57:B6:82:69:AF:22:05:8B:E3:CC:26:CF:E5:5E:47:9C:8C:78:B8:0D:98:E5:F2:F0:D9:A9:6C:00:3D:7D:70:FA:5D:F4:A3:93:8C:71:E2:97:E6:B8:48:4F:1F:08:34:EA:4E:E9:E1:52:92:02:2E:87:EE:CA:CF:AD:A6:63:CE:F5:9C:E2:59:C1:65:1F:A3:95:AC:75:63:7E:E8:94:FE:4A:CE:E0:24:C4:EB:1B:83:1D:53:55:7A:76:87:53:72:1A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122431Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.045) 0:00:21.691 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.046) 0:00:21.738 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.045) 0:00:21.783 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.044) 0:00:21.827 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.049) 0:00:21.877 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 08:24:35 -0400 (0:00:00.051) 0:00:21.928 ******* ok: [managed_node1] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.047089", "end": "2024-08-10 08:24:36.158406", "rc": 0, "start": "2024-08-10 08:24:36.111317" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 08:24:36 -0400 (0:00:00.346) 0:00:22.275 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 10 August 2024 08:24:36 -0400 (0:00:00.046) 0:00:22.321 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 10 August 2024 08:24:36 -0400 (0:00:00.020) 0:00:22.341 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 10 August 2024 08:24:36 -0400 (0:00:00.040) 0:00:22.381 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 10 August 2024 08:24:36 -0400 (0:00:00.040) 0:00:22.422 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 10 August 2024 08:24:36 -0400 (0:00:00.531) 0:00:22.953 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 10 August 2024 08:24:36 -0400 (0:00:00.039) 0:00:22.993 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292672.684979, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "35141720b19a73e63c2f02a918b1e1088914e412", "ctime": 1723292672.680979, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172757, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723292672.680979, "nlink": 1, "path": "/etc/pki/tls/certs/certid_mode.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1637475186", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 10 August 2024 08:24:37 -0400 (0:00:00.281) 0:00:23.275 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 10 August 2024 08:24:37 -0400 (0:00:00.044) 0:00:23.320 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 10 August 2024 08:24:37 -0400 (0:00:00.048) 0:00:23.369 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 10 August 2024 08:24:37 -0400 (0:00:00.044) 0:00:23.413 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1723292672.6409783, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ace4e92fed32120ea6d84ca568f5630a63743c65", "ctime": 1723292672.680979, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172753, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723292672.680979, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1637475173", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 10 August 2024 08:24:37 -0400 (0:00:00.279) 0:00:23.692 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 10 August 2024 08:24:37 -0400 (0:00:00.044) 0:00:23.737 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 10 August 2024 08:24:37 -0400 (0:00:00.049) 0:00:23.787 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "35:8B:04:7A:1A:1A:D3:EA:4F:45:D3:93:99:CB:FD:94:36:2A:7C:A2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "79:4F:4F:BD:6D:AD:28:78:A2:29:AE:5A:D8:B8:87:33:7D:7E:99:85:F3:79:1E:DA:C0:C3:04:82:F2:7C:E7:DE:82:BA:B0:43:53:0B:15:CC:94:93:0D:FE:9D:91:8C:F4:DA:66:BC:4B:03:2B:D5:2B:4C:F3:3E:9F:30:63:41:DA:F1:C0:D0:15:DB:50:18:E8:15:B6:55:52:7B:FD:F3:3A:41:69:00:E1:67:D7:3E:6C:EA:33:87:01:9F:03:F0:24:F4:1F:7C:2B:A3:D7:04:66:55:A9:0B:19:E8:F6:49:9E:7D:FE:1D:E0:A4:0F:64:F6:D3:3E:AE:08:DF:1B:2B:8A:B8:17:EE:ED:F1:E5:DD:30:05:05:E2:A3:14:19:A6:6D:39:BD:11:8A:9A:A0:08:D2:62:5B:BD:72:CD:1E:9D:B4:A4:50:49:EA:DC:F0:B9:2C:54:2B:80:04:61:37:8A:39:1A:64:EF:0E:A9:EE:1A:D8:DB:0F:DD:AE:B2:B3:75:A9:10:FA:65:78:8B:BF:2A:06:C9:69:59:71:F2:87:3F:8B:9B:FD:13:E1:49:95:B9:7F:67:82:05:F0:91:1A:96:E5:F7:19:1D:97:5D:59:DE:4A:C6:69:3A:F0:2F:21:DC:B9:7A:58:D9:7C:D7:2E:59:BC:28:4A:B2:E1:8E:80:C1:FE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122432Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.336) 0:00:24.123 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E7:C7:19:63:F5:6D:33:62:86:DE:CC:3D:D4:45:C0:B6:C5:11:5F:74" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "35:8B:04:7A:1A:1A:D3:EA:4F:45:D3:93:99:CB:FD:94:36:2A:7C:A2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "79:4F:4F:BD:6D:AD:28:78:A2:29:AE:5A:D8:B8:87:33:7D:7E:99:85:F3:79:1E:DA:C0:C3:04:82:F2:7C:E7:DE:82:BA:B0:43:53:0B:15:CC:94:93:0D:FE:9D:91:8C:F4:DA:66:BC:4B:03:2B:D5:2B:4C:F3:3E:9F:30:63:41:DA:F1:C0:D0:15:DB:50:18:E8:15:B6:55:52:7B:FD:F3:3A:41:69:00:E1:67:D7:3E:6C:EA:33:87:01:9F:03:F0:24:F4:1F:7C:2B:A3:D7:04:66:55:A9:0B:19:E8:F6:49:9E:7D:FE:1D:E0:A4:0F:64:F6:D3:3E:AE:08:DF:1B:2B:8A:B8:17:EE:ED:F1:E5:DD:30:05:05:E2:A3:14:19:A6:6D:39:BD:11:8A:9A:A0:08:D2:62:5B:BD:72:CD:1E:9D:B4:A4:50:49:EA:DC:F0:B9:2C:54:2B:80:04:61:37:8A:39:1A:64:EF:0E:A9:EE:1A:D8:DB:0F:DD:AE:B2:B3:75:A9:10:FA:65:78:8B:BF:2A:06:C9:69:59:71:F2:87:3F:8B:9B:FD:13:E1:49:95:B9:7F:67:82:05:F0:91:1A:96:E5:F7:19:1D:97:5D:59:DE:4A:C6:69:3A:F0:2F:21:DC:B9:7A:58:D9:7C:D7:2E:59:BC:28:4A:B2:E1:8E:80:C1:FE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250810122400Z", "not_valid_before": "20240810122432Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.045) 0:00:24.168 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.044) 0:00:24.213 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.043) 0:00:24.256 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.043) 0:00:24.299 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.048) 0:00:24.348 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.048) 0:00:24.396 ******* ok: [managed_node1] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046677", "end": "2024-08-10 08:24:38.600121", "rc": 0, "start": "2024-08-10 08:24:38.553444" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.315) 0:00:24.712 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node1 : ok=101 changed=4 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 10 August 2024 08:24:38 -0400 (0:00:00.040) 0:00:24.752 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.47s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.42s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.36s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.27s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure user exists ------------------------------------------------------ 0.79s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.76s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.59s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.56s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.54s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Ensure python3 is installed --------------------------------------------- 0.53s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.53s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.52s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.52s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.52s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.52s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.52s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.51s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Retrieve auto-renew flag ------------------------------------------------ 0.47s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.47s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Ensure group "somegroup" exists ----------------------------------------- 0.45s /tmp/collections-E3f/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9