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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 27 July 2024 08:29:15 -0400 (0:00:00.025) 0:00:00.025 ********* ok: [managed_node1] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 27 July 2024 08:29:17 -0400 (0:00:01.831) 0:00:01.857 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 27 July 2024 08:29:18 -0400 (0:00:00.486) 0:00:02.344 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 27 July 2024 08:29:18 -0400 (0:00:00.398) 0:00:02.742 ********* ok: [managed_node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 July 2024 08:29:19 -0400 (0:00:00.518) 0:00:03.261 ********* included: /tmp/tmp.yPh1UKyq6j/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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 08:29:19 -0400 (0:00:00.031) 0:00:03.292 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 27 July 2024 08:29:19 -0400 (0:00:00.048) 0:00:03.341 ********* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 27 July 2024 08:29:19 -0400 (0:00:00.391) 0:00:03.732 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 27 July 2024 08:29:19 -0400 (0:00:00.050) 0:00:03.783 ********* 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/tmp.yPh1UKyq6j/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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 July 2024 08:29:19 -0400 (0:00:00.083) 0:00:03.867 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 27 July 2024 08:29:20 -0400 (0:00:01.213) 0:00:05.080 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 27 July 2024 08:29:21 -0400 (0:00:00.575) 0:00:05.655 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 27 July 2024 08:29:21 -0400 (0:00:00.470) 0:00:06.126 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 27 July 2024 08:29:22 -0400 (0:00:00.330) 0:00:06.456 ********* 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-07-27 08:29:02 EDT", "ActiveEnterTimestampMonotonic": "202233578", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target dbus.service system.slice systemd-journald.socket syslog.target basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-27 08:29:02 EDT", "AssertTimestampMonotonic": "202212242", "Before": "shutdown.target multi-user.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-07-27 08:29:02 EDT", "ConditionTimestampMonotonic": "202212240", "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": "8493", "ExecMainStartTimestamp": "Sat 2024-07-27 08:29:02 EDT", "ExecMainStartTimestampMonotonic": "202212839", "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-07-27 08:29:02 EDT] ; stop_time=[n/a] ; pid=8493 ; 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-07-27 08:29:02 EDT", "InactiveExitTimestampMonotonic": "202213337", "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": "8493", "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": "system.slice basic.target", "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-07-27 08:29:02 EDT", "WatchdogTimestampMonotonic": "202233548", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 27 July 2024 08:29:22 -0400 (0:00:00.684) 0:00:07.140 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 27 July 2024 08:29:24 -0400 (0:00:01.443) 0:00:08.584 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 27 July 2024 08:29:24 -0400 (0:00:00.083) 0:00:08.667 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 27 July 2024 08:29:24 -0400 (0:00:00.045) 0:00:08.712 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 27 July 2024 08:29:24 -0400 (0:00:00.046) 0:00:08.759 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 27 July 2024 08:29:24 -0400 (0:00:00.053) 0:00:08.812 ********* ok: [managed_node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 27 July 2024 08:29:25 -0400 (0:00:00.532) 0:00:09.345 ********* included: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 included: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 08:29:25 -0400 (0:00:00.099) 0:00:09.444 ********* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 08:29:25 -0400 (0:00:00.022) 0:00:09.466 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 08:29:25 -0400 (0:00:00.047) 0:00:09.514 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 08:29:25 -0400 (0:00:00.047) 0:00:09.561 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 08:29:25 -0400 (0:00:00.558) 0:00:10.120 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 08:29:25 -0400 (0:00:00.044) 0:00:10.165 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083363.6362357, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8bfc18c7325e8ffcac2bdfa49a0e87955d58f3f0", "ctime": 1722083363.7342358, "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": 1722083363.6322358, "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": "18446744071567421597", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 08:29:26 -0400 (0:00:00.308) 0:00:10.473 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 08:29:26 -0400 (0:00:00.051) 0:00:10.525 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 08:29:26 -0400 (0:00:00.057) 0:00:10.582 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 08:29:26 -0400 (0:00:00.052) 0:00:10.634 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083363.5922358, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5390f3b1d65f8ce866b48135e71e7a2a0b68a9b0", "ctime": 1722083363.7342358, "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": 1722083363.6322358, "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": "18446744071567421584", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 08:29:26 -0400 (0:00:00.316) 0:00:10.950 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 08:29:26 -0400 (0:00:00.053) 0:00:11.003 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 08:29:26 -0400 (0:00:00.056) 0:00:11.060 ********* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "A8:73:7B:CF:70:09:49:5D:EC:F3:47:EA:0E:80:42:1B:E3:72:B8:AB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0B:AC:EE:6E:BE:50:4F:55:C2:68:C1:AC:AD:05:5A:A0:B7:EF:E4:2E:B1:12:1C:4C:37:62:05:F5:5A:F8:73:3F:33:4A:4B:47:E2:DA:70:ED:DB:D4:5B:3F:EE:44:69:36:67:94:C3:63:35:60:0A:21:46:71:7C:0B:1C:75:FF:08:E6:12:29:17:91:90:1D:1C:4D:65:70:32:F5:8C:FC:1C:82:54:73:1A:8D:77:70:63:94:15:38:55:43:12:0D:51:E8:12:C6:FC:EE:90:58:35:93:F2:7C:87:D2:B6:83:41:D0:E9:62:56:D4:EC:8B:0B:14:13:C7:55:E1:82:8D:DD:EB:AD:5A:E7:B2:CE:21:9A:94:D3:E8:1A:01:17:D2:95:9E:C8:56:3A:C1:38:D3:EC:0F:7F:F4:44:39:6B:3F:CC:A3:E8:38:69:38:23:F5:A0:AB:6A:D6:44:17:AB:61:4F:EA:88:1D:EC:C9:76:94:C8:09:E2:60:E3:25:DA:72:16:C1:12:CE:DD:B1:C6:C9:EA:91:58:5F:C9:36:25:69:15:EC:7C:82:94:EF:96:F4:FF:49:31:EF:FD:07:89:DA:45:66:82:B0:3E:87:15:F6:5F:E7:85:04:14:75:3F:B1:EB:8F:D3:5C:EE:A8:00:F6:AD:09:A8:73:A3:0F:97:E6:AE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122923Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 08:29:27 -0400 (0:00:00.497) 0:00:11.557 ********* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "A8:73:7B:CF:70:09:49:5D:EC:F3:47:EA:0E:80:42:1B:E3:72:B8:AB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0B:AC:EE:6E:BE:50:4F:55:C2:68:C1:AC:AD:05:5A:A0:B7:EF:E4:2E:B1:12:1C:4C:37:62:05:F5:5A:F8:73:3F:33:4A:4B:47:E2:DA:70:ED:DB:D4:5B:3F:EE:44:69:36:67:94:C3:63:35:60:0A:21:46:71:7C:0B:1C:75:FF:08:E6:12:29:17:91:90:1D:1C:4D:65:70:32:F5:8C:FC:1C:82:54:73:1A:8D:77:70:63:94:15:38:55:43:12:0D:51:E8:12:C6:FC:EE:90:58:35:93:F2:7C:87:D2:B6:83:41:D0:E9:62:56:D4:EC:8B:0B:14:13:C7:55:E1:82:8D:DD:EB:AD:5A:E7:B2:CE:21:9A:94:D3:E8:1A:01:17:D2:95:9E:C8:56:3A:C1:38:D3:EC:0F:7F:F4:44:39:6B:3F:CC:A3:E8:38:69:38:23:F5:A0:AB:6A:D6:44:17:AB:61:4F:EA:88:1D:EC:C9:76:94:C8:09:E2:60:E3:25:DA:72:16:C1:12:CE:DD:B1:C6:C9:EA:91:58:5F:C9:36:25:69:15:EC:7C:82:94:EF:96:F4:FF:49:31:EF:FD:07:89:DA:45:66:82:B0:3E:87:15:F6:5F:E7:85:04:14:75:3F:B1:EB:8F:D3:5C:EE:A8:00:F6:AD:09:A8:73:A3:0F:97:E6:AE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122923Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 08:29:27 -0400 (0:00:00.051) 0:00:11.608 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 08:29:27 -0400 (0:00:00.053) 0:00:11.662 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 08:29:27 -0400 (0:00:00.051) 0:00:11.713 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 08:29:27 -0400 (0:00:00.051) 0:00:11.765 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 08:29:27 -0400 (0:00:00.058) 0:00:11.823 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 08:29:27 -0400 (0:00:00.060) 0:00:11.884 ********* 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.053033", "end": "2024-07-27 08:29:28.108590", "rc": 0, "start": "2024-07-27 08:29:28.055557" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 08:29:28 -0400 (0:00:00.497) 0:00:12.381 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 08:29:28 -0400 (0:00:00.053) 0:00:12.434 ********* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 08:29:28 -0400 (0:00:00.022) 0:00:12.457 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 08:29:28 -0400 (0:00:00.046) 0:00:12.503 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 08:29:28 -0400 (0:00:00.045) 0:00:12.549 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 08:29:28 -0400 (0:00:00.552) 0:00:13.102 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 08:29:28 -0400 (0:00:00.046) 0:00:13.148 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083364.254236, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e09c4c468c7ddbd3fdc58cd20627e7cd49e1d10a", "ctime": 1722083364.2992358, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172736, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722083364.251236, "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": "18446744071567421635", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 08:29:29 -0400 (0:00:00.316) 0:00:13.465 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 08:29:29 -0400 (0:00:00.052) 0:00:13.517 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 08:29:29 -0400 (0:00:00.057) 0:00:13.575 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 08:29:29 -0400 (0:00:00.053) 0:00:13.629 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083364.212236, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f37b09f5ccad69d0f9eb2bf19b7bf5a95e64fef9", "ctime": 1722083364.2992358, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172734, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722083364.251236, "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": "18446744071567421622", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 08:29:29 -0400 (0:00:00.314) 0:00:13.944 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 08:29:29 -0400 (0:00:00.051) 0:00:13.995 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 08:29:29 -0400 (0:00:00.057) 0:00:14.052 ********* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "5B:FB:7E:EB:8A:77:6E:76:23:1B:2C:9F:CA:0C:42:F1:94:FA:4D:49" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A8:C0:76:96:FA:89:E7:C8:74:39:47:FF:94:9A:4A:BC:DD:41:71:18:03:3E:9B:90:8B:9D:1D:D8:27:26:5B:57:43:29:F5:8B:A6:2A:6F:A7:A7:3F:2E:F4:3C:3A:9F:03:2C:70:56:22:12:2B:BA:44:C1:9F:E2:A9:D4:A9:B4:4E:CE:8F:C9:F5:E8:01:17:57:F9:9C:8C:4A:A4:F7:21:EF:6D:EB:38:50:2A:1B:C1:DA:40:6B:A0:B2:5E:2D:60:E4:2B:17:EE:2F:90:A2:70:FC:03:4B:9E:32:C8:3A:A8:9D:47:65:19:51:3D:9F:9C:B5:B2:B9:5D:D9:59:F9:92:B8:D1:9F:2D:A1:39:F4:7D:FB:0C:96:0C:FC:99:C2:F4:04:A9:D4:1F:88:6A:AA:B0:EF:1A:44:3F:37:F1:20:34:8E:95:5E:FC:94:31:54:FF:86:D9:E1:D2:79:31:19:B1:13:73:7C:FD:11:A0:2C:BC:26:AD:5A:F4:D9:A2:15:16:B6:57:06:5E:7E:F1:EB:C2:E1:13:91:AE:53:FB:4D:47:E5:C5:05:C0:DC:74:31:17:2C:5B:AF:06:BB:4C:B3:8E:35:C5:FF:14:1B:C5:4A:21:1D:A4:28:D3:1C:B6:E0:56:52:00:3B:E1:53:B4:6F:1F:1D:9D:5C:7E:A8:3E:14:AC:22" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122924Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.370) 0:00:14.423 ********* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "5B:FB:7E:EB:8A:77:6E:76:23:1B:2C:9F:CA:0C:42:F1:94:FA:4D:49" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A8:C0:76:96:FA:89:E7:C8:74:39:47:FF:94:9A:4A:BC:DD:41:71:18:03:3E:9B:90:8B:9D:1D:D8:27:26:5B:57:43:29:F5:8B:A6:2A:6F:A7:A7:3F:2E:F4:3C:3A:9F:03:2C:70:56:22:12:2B:BA:44:C1:9F:E2:A9:D4:A9:B4:4E:CE:8F:C9:F5:E8:01:17:57:F9:9C:8C:4A:A4:F7:21:EF:6D:EB:38:50:2A:1B:C1:DA:40:6B:A0:B2:5E:2D:60:E4:2B:17:EE:2F:90:A2:70:FC:03:4B:9E:32:C8:3A:A8:9D:47:65:19:51:3D:9F:9C:B5:B2:B9:5D:D9:59:F9:92:B8:D1:9F:2D:A1:39:F4:7D:FB:0C:96:0C:FC:99:C2:F4:04:A9:D4:1F:88:6A:AA:B0:EF:1A:44:3F:37:F1:20:34:8E:95:5E:FC:94:31:54:FF:86:D9:E1:D2:79:31:19:B1:13:73:7C:FD:11:A0:2C:BC:26:AD:5A:F4:D9:A2:15:16:B6:57:06:5E:7E:F1:EB:C2:E1:13:91:AE:53:FB:4D:47:E5:C5:05:C0:DC:74:31:17:2C:5B:AF:06:BB:4C:B3:8E:35:C5:FF:14:1B:C5:4A:21:1D:A4:28:D3:1C:B6:E0:56:52:00:3B:E1:53:B4:6F:1F:1D:9D:5C:7E:A8:3E:14:AC:22" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122924Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.052) 0:00:14.475 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.053) 0:00:14.528 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.053) 0:00:14.582 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.090) 0:00:14.672 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.058) 0:00:14.730 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.058) 0:00:14.788 ********* 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.045815", "end": "2024-07-27 08:29:30.868324", "rc": 0, "start": "2024-07-27 08:29:30.822509" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.354) 0:00:15.143 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 27 July 2024 08:29:30 -0400 (0:00:00.060) 0:00:15.204 ********* ok: [managed_node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 July 2024 08:29:31 -0400 (0:00:00.534) 0:00:15.739 ********* included: /tmp/tmp.yPh1UKyq6j/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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 08:29:31 -0400 (0:00:00.030) 0:00:15.769 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 27 July 2024 08:29:31 -0400 (0:00:00.049) 0:00:15.819 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 27 July 2024 08:29:31 -0400 (0:00:00.045) 0:00:15.864 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 27 July 2024 08:29:31 -0400 (0:00:00.047) 0:00:15.912 ********* 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/tmp.yPh1UKyq6j/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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 July 2024 08:29:31 -0400 (0:00:00.085) 0:00:15.998 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 27 July 2024 08:29:32 -0400 (0:00:01.026) 0:00:17.025 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 27 July 2024 08:29:33 -0400 (0:00:00.570) 0:00:17.596 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 27 July 2024 08:29:33 -0400 (0:00:00.345) 0:00:17.941 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 27 July 2024 08:29:34 -0400 (0:00:00.323) 0:00:18.265 ********* 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-07-27 08:29:02 EDT", "ActiveEnterTimestampMonotonic": "202233578", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target dbus.service system.slice systemd-journald.socket syslog.target basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-27 08:29:02 EDT", "AssertTimestampMonotonic": "202212242", "Before": "shutdown.target multi-user.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-07-27 08:29:02 EDT", "ConditionTimestampMonotonic": "202212240", "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": "8493", "ExecMainStartTimestamp": "Sat 2024-07-27 08:29:02 EDT", "ExecMainStartTimestampMonotonic": "202212839", "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-07-27 08:29:02 EDT] ; stop_time=[n/a] ; pid=8493 ; 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-07-27 08:29:02 EDT", "InactiveExitTimestampMonotonic": "202213337", "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": "8493", "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": "system.slice basic.target", "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-07-27 08:29:02 EDT", "WatchdogTimestampMonotonic": "202233548", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 27 July 2024 08:29:34 -0400 (0:00:00.398) 0:00:18.663 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 27 July 2024 08:29:35 -0400 (0:00:01.464) 0:00:20.128 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 27 July 2024 08:29:35 -0400 (0:00:00.085) 0:00:20.213 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.046) 0:00:20.259 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.047) 0:00:20.307 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.053) 0:00:20.360 ********* ok: [managed_node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.552) 0:00:20.913 ********* included: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 included: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.098) 0:00:21.011 ********* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.023) 0:00:21.035 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.045) 0:00:21.080 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 08:29:36 -0400 (0:00:00.046) 0:00:21.127 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 08:29:37 -0400 (0:00:00.549) 0:00:21.677 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 08:29:37 -0400 (0:00:00.045) 0:00:21.722 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083375.1122384, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c72b996f20bb48f15742f19f693d07f4a3936b96", "ctime": 1722083375.1372385, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172738, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722083375.1062384, "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": "18446744071567421760", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 08:29:37 -0400 (0:00:00.315) 0:00:22.038 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 08:29:37 -0400 (0:00:00.051) 0:00:22.090 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 08:29:37 -0400 (0:00:00.057) 0:00:22.148 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 08:29:37 -0400 (0:00:00.053) 0:00:22.202 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083375.0652385, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f4c38ab680b241ac9abb6b82008838d2dcb873d1", "ctime": 1722083375.1372385, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172737, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722083375.1062384, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "18446744071567421747", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.328) 0:00:22.530 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.051) 0:00:22.581 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.058) 0:00:22.639 ********* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "03:5D:35:EC:6E:54:5C:EE:95:19:7A:FB:AF:FB:A7:BF:DF:C9:12:6F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "01:00:D5:12:DE:53:84:6E:66:00:1E:29:28:76:A3:E4:D8:61:E4:DB:88:40:BF:27:CA:B3:A9:A3:D0:FF:CD:49:2A:69:F4:BE:77:00:52:9C:FB:4D:99:B7:BE:CE:59:76:DC:4A:E6:A0:E3:BD:1A:AD:49:53:52:A9:4D:88:6C:E9:36:CA:00:0B:12:64:14:73:EC:FE:E9:35:84:35:23:B3:C1:2A:D4:21:27:9D:9A:E9:52:FA:EB:73:A9:63:6A:0B:31:15:7F:48:34:15:96:32:8C:8E:74:DC:25:CA:5B:2E:52:40:65:C3:4A:51:50:F7:4F:F0:FD:9A:87:C3:C9:AB:DA:EA:30:A2:52:5E:9D:EE:12:02:16:2C:7C:A1:A6:AF:C4:BA:C5:51:88:28:4A:5A:2A:86:E1:70:2C:86:D8:C9:6A:97:86:7B:AF:A7:38:21:93:BB:21:95:D7:58:34:5D:90:B0:D3:8A:32:25:CD:6A:52:77:47:1B:83:87:57:FD:E4:6D:D1:E4:7A:CF:D3:51:9D:AE:D2:A2:3E:0D:B8:96:2F:F0:18:C3:5D:7E:67:20:49:23:54:3D:DB:86:D0:10:38:AA:6D:79:6E:B4:58:E7:60:7D:E4:83:90:E1:B8:9E:0B:E5:FF:52:C1:E9:AA:81:0C:F7:2F:6D:22:DE:1E:5C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122935Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.364) 0:00:23.004 ********* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "03:5D:35:EC:6E:54:5C:EE:95:19:7A:FB:AF:FB:A7:BF:DF:C9:12:6F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "01:00:D5:12:DE:53:84:6E:66:00:1E:29:28:76:A3:E4:D8:61:E4:DB:88:40:BF:27:CA:B3:A9:A3:D0:FF:CD:49:2A:69:F4:BE:77:00:52:9C:FB:4D:99:B7:BE:CE:59:76:DC:4A:E6:A0:E3:BD:1A:AD:49:53:52:A9:4D:88:6C:E9:36:CA:00:0B:12:64:14:73:EC:FE:E9:35:84:35:23:B3:C1:2A:D4:21:27:9D:9A:E9:52:FA:EB:73:A9:63:6A:0B:31:15:7F:48:34:15:96:32:8C:8E:74:DC:25:CA:5B:2E:52:40:65:C3:4A:51:50:F7:4F:F0:FD:9A:87:C3:C9:AB:DA:EA:30:A2:52:5E:9D:EE:12:02:16:2C:7C:A1:A6:AF:C4:BA:C5:51:88:28:4A:5A:2A:86:E1:70:2C:86:D8:C9:6A:97:86:7B:AF:A7:38:21:93:BB:21:95:D7:58:34:5D:90:B0:D3:8A:32:25:CD:6A:52:77:47:1B:83:87:57:FD:E4:6D:D1:E4:7A:CF:D3:51:9D:AE:D2:A2:3E:0D:B8:96:2F:F0:18:C3:5D:7E:67:20:49:23:54:3D:DB:86:D0:10:38:AA:6D:79:6E:B4:58:E7:60:7D:E4:83:90:E1:B8:9E:0B:E5:FF:52:C1:E9:AA:81:0C:F7:2F:6D:22:DE:1E:5C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122935Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.052) 0:00:23.056 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.053) 0:00:23.110 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.053) 0:00:23.163 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 08:29:38 -0400 (0:00:00.055) 0:00:23.219 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 08:29:39 -0400 (0:00:00.058) 0:00:23.278 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 08:29:39 -0400 (0:00:00.058) 0:00:23.336 ********* 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.047319", "end": "2024-07-27 08:29:39.416075", "rc": 0, "start": "2024-07-27 08:29:39.368756" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 08:29:39 -0400 (0:00:00.356) 0:00:23.693 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 08:29:39 -0400 (0:00:00.053) 0:00:23.746 ********* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 08:29:39 -0400 (0:00:00.022) 0:00:23.768 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 08:29:39 -0400 (0:00:00.045) 0:00:23.813 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 08:29:39 -0400 (0:00:00.045) 0:00:23.859 ********* 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/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 08:29:40 -0400 (0:00:00.555) 0:00:24.414 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 08:29:40 -0400 (0:00:00.046) 0:00:24.461 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083375.6922386, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4fe17fc55a0099c4ca79254a5a17c7129f369d39", "ctime": 1722083375.6882386, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172743, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083375.6882386, "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": "18446744071567421798", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 08:29:40 -0400 (0:00:00.330) 0:00:24.791 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 08:29:40 -0400 (0:00:00.052) 0:00:24.843 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 08:29:40 -0400 (0:00:00.058) 0:00:24.902 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 08:29:40 -0400 (0:00:00.054) 0:00:24.956 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083375.6502385, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2dd9aef72c5fc70cf6bcd4d822e08c081c5b8e8f", "ctime": 1722083375.6882386, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172739, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083375.6882386, "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": "18446744071567421785", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.313) 0:00:25.270 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.051) 0:00:25.321 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.058) 0:00:25.380 ********* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "3C:28:C6:2E:9D:51:31:B3:40:E9:85:48:05:73:10:28:B1:9F:EA:24" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6D:4A:60:67:6A:5E:5B:33:D4:AE:33:A4:25:30:54:98:50:43:1B:EC:2E:CD:DB:93:9E:5B:19:43:34:89:63:E5:FC:8A:A3:B2:5E:36:2A:A1:0E:22:06:2D:1F:99:DA:78:E7:D0:4A:6B:9A:11:82:E8:1B:A3:52:21:4E:60:D9:E4:44:82:05:80:B1:C9:52:00:79:79:A8:F7:E1:68:29:F7:FC:F6:6C:3E:C4:19:73:A6:21:AB:77:91:C4:05:EA:AA:BE:7E:DF:E1:E8:9D:FA:E2:D0:84:CB:6C:49:F2:22:25:AA:CA:BE:36:BF:3E:55:B2:B8:14:B7:B8:E4:4A:7C:AE:FE:6F:5A:5A:7B:65:1A:30:31:A2:22:A0:92:58:9A:07:0C:56:0D:FB:85:9D:BB:53:2F:2E:FE:5E:71:D7:75:06:F9:FC:29:36:A0:AC:17:9A:99:46:E9:9E:01:65:A6:A3:6C:53:22:A7:B3:75:21:14:F2:1B:52:D5:07:00:D4:CB:5C:F8:1B:99:01:7E:B2:32:51:87:D1:B9:A9:6F:1D:EF:C1:B6:F5:00:EE:3C:C6:E1:55:86:C9:4A:FF:B6:35:60:60:86:7A:9E:62:A7:1C:36:4D:13:6D:46:40:CF:94:89:6D:56:80:53:D5:15:49:6D:59:5A:ED:B9:DF:45:12:D1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122935Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.378) 0:00:25.758 ********* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "47:33:E8:84:BE:89:9D:2E:56:0A:ED:27:FE:B2:12:9B:55:C2:A3:01" }, "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": "3C:28:C6:2E:9D:51:31:B3:40:E9:85:48:05:73:10:28:B1:9F:EA:24" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6D:4A:60:67:6A:5E:5B:33:D4:AE:33:A4:25:30:54:98:50:43:1B:EC:2E:CD:DB:93:9E:5B:19:43:34:89:63:E5:FC:8A:A3:B2:5E:36:2A:A1:0E:22:06:2D:1F:99:DA:78:E7:D0:4A:6B:9A:11:82:E8:1B:A3:52:21:4E:60:D9:E4:44:82:05:80:B1:C9:52:00:79:79:A8:F7:E1:68:29:F7:FC:F6:6C:3E:C4:19:73:A6:21:AB:77:91:C4:05:EA:AA:BE:7E:DF:E1:E8:9D:FA:E2:D0:84:CB:6C:49:F2:22:25:AA:CA:BE:36:BF:3E:55:B2:B8:14:B7:B8:E4:4A:7C:AE:FE:6F:5A:5A:7B:65:1A:30:31:A2:22:A0:92:58:9A:07:0C:56:0D:FB:85:9D:BB:53:2F:2E:FE:5E:71:D7:75:06:F9:FC:29:36:A0:AC:17:9A:99:46:E9:9E:01:65:A6:A3:6C:53:22:A7:B3:75:21:14:F2:1B:52:D5:07:00:D4:CB:5C:F8:1B:99:01:7E:B2:32:51:87:D1:B9:A9:6F:1D:EF:C1:B6:F5:00:EE:3C:C6:E1:55:86:C9:4A:FF:B6:35:60:60:86:7A:9E:62:A7:1C:36:4D:13:6D:46:40:CF:94:89:6D:56:80:53:D5:15:49:6D:59:5A:ED:B9:DF:45:12:D1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122903Z", "not_valid_before": "20240727122935Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.052) 0:00:25.811 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.054) 0:00:25.865 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.053) 0:00:25.919 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.053) 0:00:25.973 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.104) 0:00:26.078 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 08:29:41 -0400 (0:00:00.059) 0:00:26.137 ********* 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.049170", "end": "2024-07-27 08:29:42.222523", "rc": 0, "start": "2024-07-27 08:29:42.173353" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 08:29:42 -0400 (0:00:00.357) 0:00:26.495 ********* 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 27 July 2024 08:29:42 -0400 (0:00:00.048) 0:00:26.543 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.83s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.46s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.44s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.21s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.03s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.68s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.58s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.57s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.56s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.56s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.55s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.55s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Ensure python3 is installed --------------------------------------------- 0.55s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.53s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.53s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.52s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Parse certificate ------------------------------------------------------- 0.50s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.50s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Ensure user exists ------------------------------------------------------ 0.49s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.47s /tmp/tmp.yPh1UKyq6j/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35