# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-citqzklm1i/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:2 Saturday 15 June 2024 13:08:12 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:5 Saturday 15 June 2024 13:08:13 +0000 (0:00:00.938) 0:00:00.949 ********* changed: [sut] => { "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: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:9 Saturday 15 June 2024 13:08:14 +0000 (0:00:00.383) 0:00:01.333 ********* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:14 Saturday 15 June 2024 13:08:14 +0000 (0:00:00.218) 0:00:01.551 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 15 June 2024 13:08:14 +0000 (0:00:00.516) 0:00:02.068 ********* included: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 15 June 2024 13:08:14 +0000 (0:00:00.011) 0:00:02.079 ********* skipping: [sut] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 15 June 2024 13:08:14 +0000 (0:00:00.017) 0:00:02.097 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 15 June 2024 13:08:14 +0000 (0:00:00.180) 0:00:02.277 ********* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 15 June 2024 13:08:15 +0000 (0:00:00.014) 0:00:02.292 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 15 June 2024 13:08:15 +0000 (0:00:00.022) 0:00:02.315 ********* changed: [sut] => { "changed": true, "changes": { "installed": [ "python-pyasn1", "python-cryptography" ] }, "rc": 0, "results": [ "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed", "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 base 502 k\n python2-pyasn1 noarch 0.1.9-7.el7 base 100 k\nInstalling for dependencies:\n python-cffi x86_64 1.6.0-5.el7 base 218 k\n python-idna noarch 2.4-1.el7 base 94 k\n python-ply noarch 3.4-11.el7 base 123 k\n python-pycparser noarch 2.14-1.el7 base 104 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 5.8 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 3.8 MB/s | 1.1 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/6 \n Installing : python-ply-3.4-11.el7.noarch 2/6 \n Installing : python-pycparser-2.14-1.el7.noarch 3/6 \n Installing : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Installing : python-idna-2.4-1.el7.noarch 5/6 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n Verifying : python-idna-2.4-1.el7.noarch 1/6 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/6 \n Verifying : python-ply-3.4-11.el7.noarch 3/6 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 5/6 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-idna.noarch 0:2.4-1.el7 \n python-ply.noarch 0:3.4-11.el7 python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 15 June 2024 13:08:21 +0000 (0:00:06.349) 0:00:08.664 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "changes": { "installed": [ "certmonger" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package certmonger.x86_64 0:0.78.4-17.el7_9 will be installed\n--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_util.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_client.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Running transaction check\n---> Package libtalloc.x86_64 0:2.1.16-1.el7 will be installed\n---> Package libtevent.x86_64 0:0.9.39-1.el7 will be installed\n---> Package xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n---> Package xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n certmonger x86_64 0.78.4-17.el7_9 updates 608 k\nInstalling for dependencies:\n libtalloc x86_64 2.1.16-1.el7 base 33 k\n libtevent x86_64 0.9.39-1.el7 base 41 k\n xmlrpc-c x86_64 1.32.5-1905.svn2451.el7 base 130 k\n xmlrpc-c-client x86_64 1.32.5-1905.svn2451.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+4 Dependent packages)\n\nTotal download size: 843 k\nInstalled size: 3.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 2.3 MB/s | 843 kB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtalloc-2.1.16-1.el7.x86_64 1/5 \n Installing : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 2/5 \n Installing : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 3/5 \n Installing : libtevent-0.9.39-1.el7.x86_64 4/5 \n Installing : certmonger-0.78.4-17.el7_9.x86_64 5/5 \n Verifying : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 1/5 \n Verifying : libtalloc-2.1.16-1.el7.x86_64 2/5 \n Verifying : certmonger-0.78.4-17.el7_9.x86_64 3/5 \n Verifying : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 4/5 \n Verifying : libtevent-0.9.39-1.el7.x86_64 5/5 \n\nInstalled:\n certmonger.x86_64 0:0.78.4-17.el7_9 \n\nDependency Installed:\n libtalloc.x86_64 0:2.1.16-1.el7 \n libtevent.x86_64 0:0.9.39-1.el7 \n xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 \n xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 \n\nComplete!\n" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 15 June 2024 13:08:24 +0000 (0:00:03.447) 0:00:12.112 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 15 June 2024 13:08:25 +0000 (0:00:00.210) 0:00:12.323 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 15 June 2024 13:08:25 +0000 (0:00:00.152) 0:00:12.475 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice network.target systemd-journald.socket basic.target syslog.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "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": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "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": "0", "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": "dead", "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": "disabled", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 15 June 2024 13:08:25 +0000 (0:00:00.488) 0:00:12.963 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 15 June 2024 13:08:27 +0000 (0:00:01.637) 0:00:14.601 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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: [sut] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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: [sut] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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: [sut] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 15 June 2024 13:08:27 +0000 (0:00:00.029) 0:00:14.630 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 15 June 2024 13:08:27 +0000 (0:00:00.016) 0:00:14.646 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 15 June 2024 13:08:27 +0000 (0:00:00.015) 0:00:14.662 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:32 Saturday 15 June 2024 13:08:27 +0000 (0:00:00.026) 0:00:14.689 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:61 Saturday 15 June 2024 13:08:27 +0000 (0:00:00.551) 0:00:15.241 ********* included: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:08:27 +0000 (0:00:00.021) 0:00:15.262 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:08:27 +0000 (0:00:00.008) 0:00:15.270 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.010) 0:00:15.281 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.010) 0:00:15.291 ********* ok: [sut] => { "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: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:28 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.356) 0:00:15.648 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:38 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.008) 0:00:15.657 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456906.4326694, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1a020d680d01e44a71c734e965ea7f91700ced39", "ctime": 1718456906.4836679, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169874, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456906.4266696, "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": "18446744072015360055", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:43 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.137) 0:00:15.794 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:49 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.010) 0:00:15.805 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:59 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.020) 0:00:15.825 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:65 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.018) 0:00:15.843 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456906.379671, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "eeb4b17a695ea920280559a1b389699010738603", "ctime": 1718456906.4836679, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169873, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456906.4266696, "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": "18446744072015360042", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:70 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.134) 0:00:15.978 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:76 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.010) 0:00:15.989 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:86 Saturday 15 June 2024 13:08:28 +0000 (0:00:00.020) 0:00:16.010 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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:C0:34:8A:04:F4:9F:EB:5A:F3:CE:D6:A2:6C:E1:70:05:27:DA:9E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "12:E6:D3:4D:1A:24:60:05:7E:F2:91:D8:DE:5E:49:E1:D0:98:65:CC:D4:01:98:E5:18:89:E1:36:AC:D4:B4:AC:24:5E:96:0F:DF:82:8B:1B:BF:EF:1D:D8:BF:4E:89:53:66:85:15:E8:0E:13:7D:6A:E8:8D:11:90:9C:0A:66:42:9F:03:B9:D9:65:AB:66:08:CF:F4:75:7E:58:DA:B3:41:07:34:98:01:73:C4:3C:41:48:79:C2:18:19:FB:21:10:F4:46:FC:08:39:57:13:ED:D4:24:0A:B3:76:FE:45:F4:B6:4C:C8:1A:E0:62:FE:AD:8B:22:53:C9:07:96:04:0D:CE:44:41:92:9D:3B:2A:9E:FA:DE:CB:CB:B9:F1:CF:B2:C0:69:60:AE:B9:3B:38:12:7C:B1:98:73:B3:8F:64:47:E1:5F:0F:18:BE:72:07:B9:4F:E4:55:CD:AF:3E:A1:FD:F5:06:8D:DD:89:6A:0B:AE:49:57:6E:C2:F7:57:ED:24:2B:62:A9:78:B3:D0:C7:3A:8F:A6:44:32:F5:EB:30:99:59:D3:1C:82:67:A3:06:BE:96:D3:93:98:B9:64:85:50:F2:F4:A2:A7:F1:5A:11:5B:03:F0:4A:6E:93:8D:0D:E1:21:7B:BB:80:A9:A4:5D:59:62:73:32:48:6C:CC:88:80" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130826Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.333) 0:00:16.343 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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:C0:34:8A:04:F4:9F:EB:5A:F3:CE:D6:A2:6C:E1:70:05:27:DA:9E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "12:E6:D3:4D:1A:24:60:05:7E:F2:91:D8:DE:5E:49:E1:D0:98:65:CC:D4:01:98:E5:18:89:E1:36:AC:D4:B4:AC:24:5E:96:0F:DF:82:8B:1B:BF:EF:1D:D8:BF:4E:89:53:66:85:15:E8:0E:13:7D:6A:E8:8D:11:90:9C:0A:66:42:9F:03:B9:D9:65:AB:66:08:CF:F4:75:7E:58:DA:B3:41:07:34:98:01:73:C4:3C:41:48:79:C2:18:19:FB:21:10:F4:46:FC:08:39:57:13:ED:D4:24:0A:B3:76:FE:45:F4:B6:4C:C8:1A:E0:62:FE:AD:8B:22:53:C9:07:96:04:0D:CE:44:41:92:9D:3B:2A:9E:FA:DE:CB:CB:B9:F1:CF:B2:C0:69:60:AE:B9:3B:38:12:7C:B1:98:73:B3:8F:64:47:E1:5F:0F:18:BE:72:07:B9:4F:E4:55:CD:AF:3E:A1:FD:F5:06:8D:DD:89:6A:0B:AE:49:57:6E:C2:F7:57:ED:24:2B:62:A9:78:B3:D0:C7:3A:8F:A6:44:32:F5:EB:30:99:59:D3:1C:82:67:A3:06:BE:96:D3:93:98:B9:64:85:50:F2:F4:A2:A7:F1:5A:11:5B:03:F0:4A:6E:93:8D:0D:E1:21:7B:BB:80:A9:A4:5D:59:62:73:32:48:6C:CC:88:80" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130826Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:96 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.011) 0:00:16.354 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:104 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.019) 0:00:16.373 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:112 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.010) 0:00:16.384 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:119 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.018) 0:00:16.403 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:130 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.020) 0:00:16.423 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:143 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.020) 0:00:16.443 ********* ok: [sut] => { "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.051239", "end": "2024-06-15 13:08:29.384195", "rc": 0, "start": "2024-06-15 13:08:29.332956" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:152 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.232) 0:00:16.676 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.019) 0:00:16.695 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.008) 0:00:16.704 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.010) 0:00:16.714 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.010) 0:00:16.725 ********* ok: [sut] => { "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: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:28 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.357) 0:00:17.082 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:38 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.008) 0:00:17.091 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456907.1876462, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4f558070bf5133eb13092d1b039405afcbae9cc1", "ctime": 1718456907.3006427, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169876, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456907.1816463, "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": "18446744072015360091", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:43 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.136) 0:00:17.227 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:49 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.010) 0:00:17.237 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:59 Saturday 15 June 2024 13:08:29 +0000 (0:00:00.021) 0:00:17.258 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:65 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.020) 0:00:17.279 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456907.136648, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2a0484e5e7786cb6a65b62ad84e98a9cdb9150a2", "ctime": 1718456907.3016427, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169875, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1718456907.1816463, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 1040, "version": "18446744072015360078", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:70 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.135) 0:00:17.414 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:76 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.011) 0:00:17.425 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:86 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.020) 0:00:17.445 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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": "45:4B:9C:5D:10:F1:A5:A1:9E:4D:B4:44:41:A2:78:42:78:1D:F6:36" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "15:48:D8:A1:28:A8:50:4B:9B:3F:F0:CE:01:99:63:22:FA:8A:B0:8A:FA:56:F9:0B:DA:97:04:76:BC:9E:EF:E2:9F:3C:57:32:90:72:3D:20:45:F3:F9:CD:65:95:5B:21:8D:1F:97:43:8A:BA:40:49:94:9F:1D:33:C5:1E:7A:2F:AA:B2:3D:48:C7:A7:CC:FD:A2:42:13:63:43:97:F4:EF:F9:31:9E:21:CC:52:0E:D1:FB:06:CB:88:D4:3C:2F:3C:08:28:DB:78:7F:12:79:83:D0:DE:E4:FA:DD:E4:A9:06:48:80:AE:C6:60:3E:48:AE:95:38:9D:2C:8E:52:F0:AE:C8:2E:A4:17:BB:03:5B:CE:C3:40:75:2D:37:88:77:79:20:AF:E3:B8:B2:26:45:9F:01:5B:D2:46:B3:AA:76:B1:91:AC:02:A0:82:6E:4E:B2:45:10:13:E3:7A:6F:A6:46:3A:FE:2F:49:31:09:4E:04:A4:13:C6:FB:A3:29:2F:13:3A:15:B0:94:9B:47:2C:6D:BB:8A:C0:2D:96:28:FC:B8:E7:AD:DB:92:2E:D5:A1:BF:20:EF:F1:5D:3A:77:F0:6C:5C:86:5A:AE:C8:CD:91:5A:95:D6:9C:10:C0:D2:7E:18:93:A9:A2:74:F0:3A:8F:3B:67:0E:18:1E:1C:DA:2F:98" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130827Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.197) 0:00:17.642 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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": "45:4B:9C:5D:10:F1:A5:A1:9E:4D:B4:44:41:A2:78:42:78:1D:F6:36" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "15:48:D8:A1:28:A8:50:4B:9B:3F:F0:CE:01:99:63:22:FA:8A:B0:8A:FA:56:F9:0B:DA:97:04:76:BC:9E:EF:E2:9F:3C:57:32:90:72:3D:20:45:F3:F9:CD:65:95:5B:21:8D:1F:97:43:8A:BA:40:49:94:9F:1D:33:C5:1E:7A:2F:AA:B2:3D:48:C7:A7:CC:FD:A2:42:13:63:43:97:F4:EF:F9:31:9E:21:CC:52:0E:D1:FB:06:CB:88:D4:3C:2F:3C:08:28:DB:78:7F:12:79:83:D0:DE:E4:FA:DD:E4:A9:06:48:80:AE:C6:60:3E:48:AE:95:38:9D:2C:8E:52:F0:AE:C8:2E:A4:17:BB:03:5B:CE:C3:40:75:2D:37:88:77:79:20:AF:E3:B8:B2:26:45:9F:01:5B:D2:46:B3:AA:76:B1:91:AC:02:A0:82:6E:4E:B2:45:10:13:E3:7A:6F:A6:46:3A:FE:2F:49:31:09:4E:04:A4:13:C6:FB:A3:29:2F:13:3A:15:B0:94:9B:47:2C:6D:BB:8A:C0:2D:96:28:FC:B8:E7:AD:DB:92:2E:D5:A1:BF:20:EF:F1:5D:3A:77:F0:6C:5C:86:5A:AE:C8:CD:91:5A:95:D6:9C:10:C0:D2:7E:18:93:A9:A2:74:F0:3A:8F:3B:67:0E:18:1E:1C:DA:2F:98" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130827Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:96 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.011) 0:00:17.653 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:104 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.019) 0:00:17.673 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:112 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.012) 0:00:17.685 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:119 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.019) 0:00:17.704 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:130 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.022) 0:00:17.727 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:143 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.020) 0:00:17.748 ********* ok: [sut] => { "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.050916", "end": "2024-06-15 13:08:30.631423", "rc": 0, "start": "2024-06-15 13:08:30.580507" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:152 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.174) 0:00:17.922 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:67 Saturday 15 June 2024 13:08:30 +0000 (0:00:00.027) 0:00:17.950 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 15 June 2024 13:08:31 +0000 (0:00:00.500) 0:00:18.450 ********* included: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 15 June 2024 13:08:31 +0000 (0:00:00.010) 0:00:18.461 ********* skipping: [sut] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 15 June 2024 13:08:31 +0000 (0:00:00.017) 0:00:18.478 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 15 June 2024 13:08:31 +0000 (0:00:00.010) 0:00:18.489 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 15 June 2024 13:08:31 +0000 (0:00:00.011) 0:00:18.500 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 15 June 2024 13:08:31 +0000 (0:00:00.022) 0:00:18.523 ********* ok: [sut] => { "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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 15 June 2024 13:08:32 +0000 (0:00:00.857) 0:00:19.381 ********* ok: [sut] => (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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 15 June 2024 13:08:32 +0000 (0:00:00.362) 0:00:19.743 ********* ok: [sut] => (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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 15 June 2024 13:08:32 +0000 (0:00:00.151) 0:00:19.895 ********* ok: [sut] => (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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 15 June 2024 13:08:32 +0000 (0:00:00.149) 0:00:20.045 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-06-15 13:08:25 UTC", "ActiveEnterTimestampMonotonic": "1247670478", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service syslog.target network.target system.slice systemd-journald.socket basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-15 13:08:25 UTC", "AssertTimestampMonotonic": "1247636994", "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-06-15 13:08:25 UTC", "ConditionTimestampMonotonic": "1247636992", "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": "12050", "ExecMainStartTimestamp": "Sat 2024-06-15 13:08:25 UTC", "ExecMainStartTimestampMonotonic": "1247637708", "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-06-15 13:08:25 UTC] ; stop_time=[n/a] ; pid=12050 ; 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-06-15 13:08:25 UTC", "InactiveExitTimestampMonotonic": "1247637759", "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": "12050", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-06-15 13:08:25 UTC", "WatchdogTimestampMonotonic": "1247670440", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 15 June 2024 13:08:32 +0000 (0:00:00.217) 0:00:20.262 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "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: [sut] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "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: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 15 June 2024 13:08:34 +0000 (0:00:01.248) 0:00:21.511 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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: [sut] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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: [sut] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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: [sut] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.029) 0:00:21.541 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.016) 0:00:21.557 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.016) 0:00:21.574 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:85 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.027) 0:00:21.601 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:112 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.501) 0:00:22.102 ********* included: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs_mode.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0620'}) included: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid_mode.crt', 'key_path': '/etc/pki/tls/private/certid_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'mode': '0600'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.019) 0:00:22.122 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.007) 0:00:22.130 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.011) 0:00:22.141 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:08:34 +0000 (0:00:00.012) 0:00:22.153 ********* ok: [sut] => { "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: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:28 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.354) 0:00:22.507 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:38 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.008) 0:00:22.516 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456913.4554539, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "89c5bad0f31651c21885b702fd606c59918a88d7", "ctime": 1718456913.5084522, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169878, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1718456913.450454, "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": "18446744072015360180", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:43 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.132) 0:00:22.649 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:49 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.010) 0:00:22.660 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:59 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.020) 0:00:22.680 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:65 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.018) 0:00:22.698 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456913.4054554, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "622f0b887322603973458c6397c52eac37e5d993", "ctime": 1718456913.5084522, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169877, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1718456913.450454, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "18446744072015360167", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:70 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.132) 0:00:22.831 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:76 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.010) 0:00:22.842 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:86 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.020) 0:00:22.862 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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": "FD:D5:A8:DD:4F:F4:A7:58:B0:ED:7F:61:C6:08:CA:51:14:10:31:DB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7E:03:B8:81:78:AB:AD:86:38:44:00:CF:18:3A:62:6A:9A:E6:0A:27:8E:DB:D4:DD:8D:E2:22:20:50:AA:62:58:F2:21:4A:22:0C:77:C0:FB:A8:BB:B3:40:D6:FD:ED:7A:EB:F0:C9:33:D1:7E:C5:DE:72:A9:C8:11:54:E5:5F:B8:DC:FB:46:B1:E3:E6:35:0A:BD:E8:3E:F0:1B:25:26:F7:69:7F:6F:4C:9A:55:72:B9:FD:7E:57:21:A1:31:E8:44:FA:DA:53:47:72:FB:43:58:4F:17:29:FF:65:A4:FC:62:20:03:57:D6:89:08:AB:C6:7A:2F:64:E0:1D:6A:8D:FA:C4:21:06:A0:E5:FD:E5:7D:FE:80:E7:08:97:B9:09:1A:09:17:91:28:67:19:0E:57:E0:D9:0A:35:07:B9:5D:F8:D2:BE:CC:91:51:61:53:00:1D:6E:2D:BF:00:72:10:EA:37:C1:E1:B9:44:DE:54:48:52:D5:70:13:B8:71:52:20:1E:18:F1:00:B8:59:4C:AD:0D:69:70:2A:9C:A9:CE:6C:7B:A3:B2:BA:26:3F:22:BF:EF:34:1A:07:A2:DB:75:EC:38:1B:16:4A:2D:D8:36:BE:04:7C:7B:2B:46:A8:D8:98:1F:E5:3A:CB:BB:21:FC:B9:88:1C:1E:4B:0B:18:C5:A7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130833Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.196) 0:00:23.058 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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": "FD:D5:A8:DD:4F:F4:A7:58:B0:ED:7F:61:C6:08:CA:51:14:10:31:DB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7E:03:B8:81:78:AB:AD:86:38:44:00:CF:18:3A:62:6A:9A:E6:0A:27:8E:DB:D4:DD:8D:E2:22:20:50:AA:62:58:F2:21:4A:22:0C:77:C0:FB:A8:BB:B3:40:D6:FD:ED:7A:EB:F0:C9:33:D1:7E:C5:DE:72:A9:C8:11:54:E5:5F:B8:DC:FB:46:B1:E3:E6:35:0A:BD:E8:3E:F0:1B:25:26:F7:69:7F:6F:4C:9A:55:72:B9:FD:7E:57:21:A1:31:E8:44:FA:DA:53:47:72:FB:43:58:4F:17:29:FF:65:A4:FC:62:20:03:57:D6:89:08:AB:C6:7A:2F:64:E0:1D:6A:8D:FA:C4:21:06:A0:E5:FD:E5:7D:FE:80:E7:08:97:B9:09:1A:09:17:91:28:67:19:0E:57:E0:D9:0A:35:07:B9:5D:F8:D2:BE:CC:91:51:61:53:00:1D:6E:2D:BF:00:72:10:EA:37:C1:E1:B9:44:DE:54:48:52:D5:70:13:B8:71:52:20:1E:18:F1:00:B8:59:4C:AD:0D:69:70:2A:9C:A9:CE:6C:7B:A3:B2:BA:26:3F:22:BF:EF:34:1A:07:A2:DB:75:EC:38:1B:16:4A:2D:D8:36:BE:04:7C:7B:2B:46:A8:D8:98:1F:E5:3A:CB:BB:21:FC:B9:88:1C:1E:4B:0B:18:C5:A7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130833Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:96 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.010) 0:00:23.069 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:104 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.019) 0:00:23.088 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:112 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.010) 0:00:23.099 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:119 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.017) 0:00:23.116 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:130 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.020) 0:00:23.137 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:143 Saturday 15 June 2024 13:08:35 +0000 (0:00:00.019) 0:00:23.157 ********* ok: [sut] => { "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.055855", "end": "2024-06-15 13:08:36.043409", "rc": 0, "start": "2024-06-15 13:08:35.987554" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:152 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.178) 0:00:23.335 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:2 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.019) 0:00:23.354 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:9 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.007) 0:00:23.362 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:14 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.010) 0:00:23.372 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.010) 0:00:23.383 ********* ok: [sut] => { "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: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:28 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.349) 0:00:23.732 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:38 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.008) 0:00:23.741 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456914.1754317, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "94c76a308b5880703e3acace9f77cd94983faa3e", "ctime": 1718456914.1714318, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169880, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1718456914.1714318, "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": "18446744072015360216", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:43 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.131) 0:00:23.873 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:49 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.010) 0:00:23.884 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:59 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.019) 0:00:23.903 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:65 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.018) 0:00:23.922 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1718456914.1284332, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "69a05269e6b2cefb17d51b44109885dae958a331", "ctime": 1718456914.1704319, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169879, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1718456914.1704319, "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": "18446744072015360203", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:70 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.134) 0:00:24.056 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:76 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.010) 0:00:24.067 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:86 Saturday 15 June 2024 13:08:36 +0000 (0:00:00.021) 0:00:24.089 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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": "CC:DB:55:EC:10:C1:11:74:E8:2F:2D:F3:F9:68:01:98:8F:89:5B:E7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:3E:70:CA:C3:DE:71:E1:49:48:C3:D3:1D:AA:33:9D:AC:F3:46:A5:03:2E:31:53:6B:7A:C3:8B:90:0B:E8:73:13:DB:9D:63:A9:75:78:1D:09:45:D6:89:5F:34:72:A2:A3:48:BD:B4:47:D6:AE:A4:F4:13:94:C7:69:A2:23:85:EA:F6:29:95:CF:A2:B1:4F:CE:93:21:96:86:10:26:27:0C:83:2A:11:B7:1F:E1:91:B0:89:B9:62:F4:2A:52:B7:3C:FA:F5:81:06:73:C1:3C:54:F9:E3:5B:85:5F:EE:09:67:81:C1:72:66:FC:2F:3A:75:F0:0C:B1:D3:6B:F3:36:8F:E0:3F:9F:F7:DF:5A:68:C6:CE:B2:6A:15:CB:FF:AF:2F:CE:6E:08:49:88:75:72:ED:97:94:E5:85:3D:09:E2:2B:C8:AC:4A:F9:B6:E1:FE:77:00:91:4F:7C:BB:77:EB:36:73:09:6E:9F:43:32:46:BB:29:16:7A:E8:5F:DD:07:B3:26:F7:46:32:6E:A1:A0:9E:16:1A:92:16:58:DF:AE:50:F0:13:04:9E:50:61:9C:F5:C6:53:A3:4B:75:29:92:BE:45:60:FF:16:7D:70:C2:3A:90:63:8F:6A:31:73:E1:F7:4E:7D:41:D5:6B:CF:A6:2B:8B:5C:B4:44:C8:BA:5B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130834Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:92 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.211) 0:00:24.300 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F7:00:35:39:FC:6F:76:F8:B9:6B:CA:88:E9:0F:F4:BF:B4:41:72:BF" }, "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": "CC:DB:55:EC:10:C1:11:74:E8:2F:2D:F3:F9:68:01:98:8F:89:5B:E7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:3E:70:CA:C3:DE:71:E1:49:48:C3:D3:1D:AA:33:9D:AC:F3:46:A5:03:2E:31:53:6B:7A:C3:8B:90:0B:E8:73:13:DB:9D:63:A9:75:78:1D:09:45:D6:89:5F:34:72:A2:A3:48:BD:B4:47:D6:AE:A4:F4:13:94:C7:69:A2:23:85:EA:F6:29:95:CF:A2:B1:4F:CE:93:21:96:86:10:26:27:0C:83:2A:11:B7:1F:E1:91:B0:89:B9:62:F4:2A:52:B7:3C:FA:F5:81:06:73:C1:3C:54:F9:E3:5B:85:5F:EE:09:67:81:C1:72:66:FC:2F:3A:75:F0:0C:B1:D3:6B:F3:36:8F:E0:3F:9F:F7:DF:5A:68:C6:CE:B2:6A:15:CB:FF:AF:2F:CE:6E:08:49:88:75:72:ED:97:94:E5:85:3D:09:E2:2B:C8:AC:4A:F9:B6:E1:FE:77:00:91:4F:7C:BB:77:EB:36:73:09:6E:9F:43:32:46:BB:29:16:7A:E8:5F:DD:07:B3:26:F7:46:32:6E:A1:A0:9E:16:1A:92:16:58:DF:AE:50:F0:13:04:9E:50:61:9C:F5:C6:53:A3:4B:75:29:92:BE:45:60:FF:16:7D:70:C2:3A:90:63:8F:6A:31:73:E1:F7:4E:7D:41:D5:6B:CF:A6:2B:8B:5C:B4:44:C8:BA:5B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250615130825Z", "not_valid_before": "20240615130834Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:96 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.010) 0:00:24.311 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:104 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.019) 0:00:24.330 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:112 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.011) 0:00:24.341 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:119 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.018) 0:00:24.360 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:130 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.022) 0:00:24.383 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:143 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.021) 0:00:24.405 ********* ok: [sut] => { "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.056019", "end": "2024-06-15 13:08:37.293739", "rc": 0, "start": "2024-06-15 13:08:37.237720" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:152 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.180) 0:00:24.585 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 15 June 2024 13:08:37 +0000 (0:00:00.025) 0:00:24.610 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 6.35s /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.45s /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.64s /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.25s /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.94s /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.86s /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.55s /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.52s /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:67 -------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.49s /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure user exists ------------------------------------------------------ 0.38s /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.36s /WORKDIR/git-weekly-citqzklm1i/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.36s /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.36s /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:18 Parse certificate ------------------------------------------------------- 0.33s /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.23s /WORKDIR/git-weekly-citqzklm1i/tests/tasks/assert_certificate_parameters.yml:143 Ensure group "somegroup" exists ----------------------------------------- 0.22s /WORKDIR/git-weekly-citqzklm1i/tests/tests_fs_attrs.yml:9 --------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---