# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 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.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:2 Saturday 03 August 2024 13:13:38 +0000 (0:00:00.012) 0:00:00.012 ******* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:5 Saturday 03 August 2024 13:13:39 +0000 (0:00:00.861) 0:00:00.873 ******* 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-ci8lhz7iqe/tests/tests_fs_attrs.yml:9 Saturday 03 August 2024 13:13:40 +0000 (0:00:00.410) 0:00:01.283 ******* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:14 Saturday 03 August 2024 13:13:40 +0000 (0:00:00.224) 0:00:01.507 ******* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 03 August 2024 13:13:40 +0000 (0:00:00.414) 0:00:01.922 ******* included: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 13:13:40 +0000 (0:00:00.011) 0:00:01.934 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 03 August 2024 13:13:40 +0000 (0:00:00.018) 0:00:01.953 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 03 August 2024 13:13:41 +0000 (0:00:00.183) 0:00:02.136 ******* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 03 August 2024 13:13:41 +0000 (0:00:00.021) 0:00:02.158 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "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-ci8lhz7iqe/tests/roles/linux-system-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, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 03 August 2024 13:13:41 +0000 (0:00:00.032) 0:00:02.190 ******* 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\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--> Processing Dependency: python-enum34 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-enum34.noarch 0:1.0.4-1.el7 will be installed\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-enum34 noarch 1.0.4-1.el7 base 52 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 (+5 Dependent packages)\n\nTotal download size: 1.2 M\nInstalled size: 6.1 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 3.5 MB/s | 1.2 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/7 \n Installing : python-enum34-1.0.4-1.el7.noarch 2/7 \n Installing : python-ply-3.4-11.el7.noarch 3/7 \n Installing : python-pycparser-2.14-1.el7.noarch 4/7 \n Installing : python-cffi-1.6.0-5.el7.x86_64 5/7 \n Installing : python-idna-2.4-1.el7.noarch 6/7 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n Verifying : python-idna-2.4-1.el7.noarch 1/7 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/7 \n Verifying : python-ply-3.4-11.el7.noarch 3/7 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/7 \n Verifying : python-enum34-1.0.4-1.el7.noarch 5/7 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 6/7 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \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-enum34.noarch 0:1.0.4-1.el7 \n python-idna.noarch 0:2.4-1.el7 python-ply.noarch 0:3.4-11.el7 \n python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 03 August 2024 13:13:47 +0000 (0:00:06.830) 0:00:09.021 ******* 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\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.2 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 [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 03 August 2024 13:13:53 +0000 (0:00:05.420) 0:00:14.441 ******* 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 [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 03 August 2024 13:13:53 +0000 (0:00:00.239) 0:00:14.680 ******* 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 [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 03 August 2024 13:13:53 +0000 (0:00:00.158) 0:00:14.839 ******* 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 systemd-journald.socket dbus.service basic.target syslog.target network.target", "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": "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": "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 [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 03 August 2024 13:13:54 +0000 (0:00:00.497) 0:00:15.336 ******* 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 [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 03 August 2024 13:13:55 +0000 (0:00:01.268) 0:00:16.604 ******* 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, "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, "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, "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, "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, "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, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 03 August 2024 13:13:55 +0000 (0:00:00.040) 0:00:16.645 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 03 August 2024 13:13:55 +0000 (0:00:00.021) 0:00:16.666 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 03 August 2024 13:13:55 +0000 (0:00:00.027) 0:00:16.693 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:32 Saturday 03 August 2024 13:13:55 +0000 (0:00:00.025) 0:00:16.718 ******* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:61 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.393) 0:00:17.111 ******* included: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.038) 0:00:17.150 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.010) 0:00:17.161 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.020) 0:00:17.181 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.019) 0:00:17.201 ******* 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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.376) 0:00:17.577 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.017) 0:00:17.594 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690834.9585783, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "be30ed8658944b7f0ca577d108a48a62f296afcc", "ctime": 1722690835.0175786, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172756, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722690834.9545784, "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": "1528910056", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.150) 0:00:17.745 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.019) 0:00:17.764 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.021) 0:00:17.785 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.019) 0:00:17.804 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690834.9085784, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ecfa9a553067a6602b199da05dd7254d3942a633", "ctime": 1722690835.0175786, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172755, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722690834.9545784, "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": "1528910043", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.150) 0:00:17.955 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.019) 0:00:17.974 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 13:13:56 +0000 (0:00:00.021) 0:00:17.996 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "78:09:76:87:47:D1:9C:D8:A5:6C:CD:28:83:C1:56:23:3C:9F:97:03" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3A:E8:27:84:99:8D:A2:15:14:6E:3E:8D:62:E5:AA:AB:3C:EE:82:E0:14:56:C4:8B:08:93:42:53:F5:B6:AC:79:0D:C4:00:12:03:9B:3F:6A:D5:99:41:9E:D0:19:CA:57:38:A1:5D:86:97:26:69:32:31:86:4D:C4:A3:B9:EC:83:8B:85:B7:77:27:34:44:E2:31:A1:94:D7:E6:B9:35:96:33:23:58:A2:DB:CA:3D:99:92:C2:A0:9F:C9:69:FE:3A:2C:F1:62:DC:AB:36:12:3A:18:56:05:54:A9:DC:FB:00:E3:F3:6E:D8:86:68:CA:FD:1C:E3:83:28:05:75:9C:CC:D2:C9:5C:CD:7A:E4:78:81:D5:8E:90:F1:70:67:CC:B3:F2:15:80:7E:27:B4:47:6B:27:0D:B6:72:91:3B:7A:BF:5E:D3:17:BE:8F:39:CF:9B:8E:FB:60:EC:FE:34:2C:8F:17:B7:24:3E:83:92:CB:61:BA:66:D3:EA:D4:CD:1F:71:7F:12:C1:3D:1A:8A:8D:EB:92:C6:34:B0:73:DB:08:C8:C1:51:5D:57:CB:86:3B:9E:38:86:AE:AB:9C:CE:97:85:CC:DB:62:9E:4D:00:D8:D2:32:3F:AD:FB:A5:FB:E9:CB:B6:4F:AA:2E:1A:07:F2:FB:11:71:FC:A1:38:BA:B5:5C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131354Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.343) 0:00:18.339 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "78:09:76:87:47:D1:9C:D8:A5:6C:CD:28:83:C1:56:23:3C:9F:97:03" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3A:E8:27:84:99:8D:A2:15:14:6E:3E:8D:62:E5:AA:AB:3C:EE:82:E0:14:56:C4:8B:08:93:42:53:F5:B6:AC:79:0D:C4:00:12:03:9B:3F:6A:D5:99:41:9E:D0:19:CA:57:38:A1:5D:86:97:26:69:32:31:86:4D:C4:A3:B9:EC:83:8B:85:B7:77:27:34:44:E2:31:A1:94:D7:E6:B9:35:96:33:23:58:A2:DB:CA:3D:99:92:C2:A0:9F:C9:69:FE:3A:2C:F1:62:DC:AB:36:12:3A:18:56:05:54:A9:DC:FB:00:E3:F3:6E:D8:86:68:CA:FD:1C:E3:83:28:05:75:9C:CC:D2:C9:5C:CD:7A:E4:78:81:D5:8E:90:F1:70:67:CC:B3:F2:15:80:7E:27:B4:47:6B:27:0D:B6:72:91:3B:7A:BF:5E:D3:17:BE:8F:39:CF:9B:8E:FB:60:EC:FE:34:2C:8F:17:B7:24:3E:83:92:CB:61:BA:66:D3:EA:D4:CD:1F:71:7F:12:C1:3D:1A:8A:8D:EB:92:C6:34:B0:73:DB:08:C8:C1:51:5D:57:CB:86:3B:9E:38:86:AE:AB:9C:CE:97:85:CC:DB:62:9E:4D:00:D8:D2:32:3F:AD:FB:A5:FB:E9:CB:B6:4F:AA:2E:1A:07:F2:FB:11:71:FC:A1:38:BA:B5:5C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131354Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.020) 0:00:18.360 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.021) 0:00:18.382 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.019) 0:00:18.402 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.019) 0:00:18.421 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.022) 0:00:18.444 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.022) 0:00:18.466 ******* 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.052098", "end": "2024-08-03 13:13:57.667833", "rc": 0, "start": "2024-08-03 13:13:57.615735" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.253) 0:00:18.720 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.020) 0:00:18.740 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.007) 0:00:18.748 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.017) 0:00:18.765 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 13:13:57 +0000 (0:00:00.021) 0:00:18.787 ******* 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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.382) 0:00:19.169 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.017) 0:00:19.187 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690835.4155793, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "11a00d6900468375fceed2a933333dd5d57f31e0", "ctime": 1722690835.5425797, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172758, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722690835.4115794, "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": "1528910092", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.159) 0:00:19.347 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.019) 0:00:19.367 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.022) 0:00:19.389 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.020) 0:00:19.410 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690835.3665793, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4c86fe48f5352be9411b7cd77dd1778d603b56c5", "ctime": 1722690835.5425797, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172757, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722690835.4115794, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "1528910079", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.154) 0:00:19.565 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.020) 0:00:19.585 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.021) 0:00:19.607 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "E1:DA:01:CC:18:66:B9:57:82:E9:84:97:86:FF:2C:DA:17:40:0D:60" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8E:30:49:5E:02:46:D9:E2:1B:3A:E4:1C:9A:7D:C5:71:95:BA:C3:F4:93:1C:17:1E:06:6E:75:28:89:25:69:60:C2:51:14:74:D0:DB:E3:B3:99:B3:B3:DC:73:AC:4B:D3:EE:06:72:53:C1:7C:09:C1:36:6C:23:D5:07:86:93:47:48:A6:B6:A3:0B:2B:03:FF:A6:05:76:CA:1C:4C:13:77:03:91:92:01:4B:6E:13:FB:23:37:21:F3:69:FD:35:C4:33:81:DE:B8:22:51:B6:A7:6E:0F:E1:00:84:85:48:6A:83:72:DC:2C:D7:28:D4:A5:11:EE:A8:5F:44:4B:26:57:F2:60:F8:CA:1A:BD:09:61:87:73:96:BE:9D:11:AC:BB:7D:1F:98:D4:B3:6D:18:CC:28:49:BE:0D:87:D1:98:67:64:E7:30:BB:25:16:63:8B:83:E2:DB:8B:AA:1C:5E:AB:5B:34:8D:2C:14:31:B9:12:41:D9:79:DE:A2:BE:EA:58:21:AA:B3:A5:8B:6D:08:BB:69:51:D8:9A:A6:C2:DC:D9:67:3F:DB:A3:06:81:C9:FD:92:00:7C:48:0B:54:08:F0:97:31:50:F0:E9:C9:EE:19:82:01:66:0C:46:A8:28:DB:D1:4D:B9:4F:77:FD:46:8C:FC:3D:06:F4:4B:0D:94:09" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131355Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.213) 0:00:19.820 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "E1:DA:01:CC:18:66:B9:57:82:E9:84:97:86:FF:2C:DA:17:40:0D:60" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8E:30:49:5E:02:46:D9:E2:1B:3A:E4:1C:9A:7D:C5:71:95:BA:C3:F4:93:1C:17:1E:06:6E:75:28:89:25:69:60:C2:51:14:74:D0:DB:E3:B3:99:B3:B3:DC:73:AC:4B:D3:EE:06:72:53:C1:7C:09:C1:36:6C:23:D5:07:86:93:47:48:A6:B6:A3:0B:2B:03:FF:A6:05:76:CA:1C:4C:13:77:03:91:92:01:4B:6E:13:FB:23:37:21:F3:69:FD:35:C4:33:81:DE:B8:22:51:B6:A7:6E:0F:E1:00:84:85:48:6A:83:72:DC:2C:D7:28:D4:A5:11:EE:A8:5F:44:4B:26:57:F2:60:F8:CA:1A:BD:09:61:87:73:96:BE:9D:11:AC:BB:7D:1F:98:D4:B3:6D:18:CC:28:49:BE:0D:87:D1:98:67:64:E7:30:BB:25:16:63:8B:83:E2:DB:8B:AA:1C:5E:AB:5B:34:8D:2C:14:31:B9:12:41:D9:79:DE:A2:BE:EA:58:21:AA:B3:A5:8B:6D:08:BB:69:51:D8:9A:A6:C2:DC:D9:67:3F:DB:A3:06:81:C9:FD:92:00:7C:48:0B:54:08:F0:97:31:50:F0:E9:C9:EE:19:82:01:66:0C:46:A8:28:DB:D1:4D:B9:4F:77:FD:46:8C:FC:3D:06:F4:4B:0D:94:09" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131355Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.020) 0:00:19.841 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.020) 0:00:19.861 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.020) 0:00:19.882 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.020) 0:00:19.903 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.023) 0:00:19.927 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 13:13:58 +0000 (0:00:00.022) 0:00:19.949 ******* 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.051918", "end": "2024-08-03 13:13:59.086113", "rc": 0, "start": "2024-08-03 13:13:59.034195" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.189) 0:00:20.139 ******* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:67 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.025) 0:00:20.164 ******* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.369) 0:00:20.534 ******* included: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.011) 0:00:20.545 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.019) 0:00:20.565 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.017) 0:00:20.582 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.018) 0:00:20.601 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "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-ci8lhz7iqe/tests/roles/linux-system-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, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 03 August 2024 13:13:59 +0000 (0:00:00.044) 0:00:20.645 ******* 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 [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 03 August 2024 13:14:00 +0000 (0:00:00.932) 0:00:21.578 ******* 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 [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 03 August 2024 13:14:00 +0000 (0:00:00.377) 0:00:21.956 ******* 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 [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 03 August 2024 13:14:01 +0000 (0:00:00.162) 0:00:22.118 ******* 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 [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 03 August 2024 13:14:01 +0000 (0:00:00.157) 0:00:22.275 ******* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-03 13:13:54 UTC", "ActiveEnterTimestampMonotonic": "1297539646", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice basic.target dbus.service systemd-journald.socket network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-03 13:13:54 UTC", "AssertTimestampMonotonic": "1297507238", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-03 13:13:54 UTC", "ConditionTimestampMonotonic": "1297507236", "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": "11817", "ExecMainStartTimestamp": "Sat 2024-08-03 13:13:54 UTC", "ExecMainStartTimestampMonotonic": "1297508068", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-03 13:13:54 UTC] ; stop_time=[n/a] ; pid=11817 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-03 13:13:54 UTC", "InactiveExitTimestampMonotonic": "1297508108", "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": "11817", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-03 13:13:54 UTC", "WatchdogTimestampMonotonic": "1297539575", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 03 August 2024 13:14:01 +0000 (0:00:00.235) 0:00:22.511 ******* 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 [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 03 August 2024 13:14:02 +0000 (0:00:01.293) 0:00:23.804 ******* 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, "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, "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, "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, "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, "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, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 03 August 2024 13:14:02 +0000 (0:00:00.033) 0:00:23.838 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 03 August 2024 13:14:02 +0000 (0:00:00.018) 0:00:23.857 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 03 August 2024 13:14:02 +0000 (0:00:00.018) 0:00:23.875 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:85 Saturday 03 August 2024 13:14:02 +0000 (0:00:00.027) 0:00:23.903 ******* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:112 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.389) 0:00:24.292 ******* included: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.032) 0:00:24.324 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.008) 0:00:24.333 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.017) 0:00:24.351 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.017) 0:00:24.368 ******* 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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.385) 0:00:24.753 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.019) 0:00:24.772 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690842.0265937, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b2430b6bb65da3d0f439f9c7233173c1458f3c65", "ctime": 1722690842.145594, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172760, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722690842.0225935, "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": "1528910181", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.152) 0:00:24.924 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.021) 0:00:24.946 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.023) 0:00:24.970 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 13:14:03 +0000 (0:00:00.019) 0:00:24.989 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690841.9765935, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3e52b8006f5dac88c2f92b5ff50579e2161224cb", "ctime": 1722690842.1465938, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172759, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722690842.0225935, "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": "1528910168", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.146) 0:00:25.135 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.020) 0:00:25.156 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.022) 0:00:25.179 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "41:D1:8A:2C:C9:47:C3:12:1D:CA:76:99:13:70:82:51:3D:E1:A7:95" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A2:C4:5A:57:96:6A:E0:5D:C5:8E:B4:4D:B2:C6:E7:EB:10:D4:1C:E9:BF:B8:D0:BA:5B:2E:CC:6D:5B:5C:F0:5B:3B:58:0D:ED:39:8D:FE:BB:BF:D2:CD:D3:84:51:42:42:0E:7B:57:3D:58:BD:86:16:EB:0C:01:5B:97:30:97:E0:97:48:D6:59:40:D5:8A:80:B4:11:0C:47:D7:4C:3D:F5:E2:E9:7B:88:FB:28:63:23:08:AC:7A:C8:CC:16:B7:B6:15:DF:B9:49:FF:B7:BB:5D:21:1D:F5:DC:AA:EC:19:74:25:47:15:03:B5:D1:4A:A1:F7:83:38:CC:8E:2A:44:93:D3:FA:79:E4:B3:48:6E:01:AC:6D:3F:6C:D4:04:E6:C0:3C:BF:50:16:8B:1C:8B:32:70:79:D8:63:ED:6C:C4:E3:29:2A:B0:25:6A:EA:E6:E1:36:27:82:BC:50:C9:81:00:EC:E5:69:A2:30:6B:30:2C:A4:59:F3:7D:3B:06:D3:98:66:6C:0E:CA:C3:C7:57:C5:00:C7:FA:73:CE:95:CF:33:DF:49:5F:8B:DC:0F:AE:2F:E6:E4:28:61:09:2C:31:08:70:5C:6B:AE:AF:6A:3E:77:5F:DD:3C:80:CB:F0:F7:DE:31:04:79:68:6A:F4:50:94:48:BB:63:05:43:7B:9B:B8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131402Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.217) 0:00:25.396 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "41:D1:8A:2C:C9:47:C3:12:1D:CA:76:99:13:70:82:51:3D:E1:A7:95" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A2:C4:5A:57:96:6A:E0:5D:C5:8E:B4:4D:B2:C6:E7:EB:10:D4:1C:E9:BF:B8:D0:BA:5B:2E:CC:6D:5B:5C:F0:5B:3B:58:0D:ED:39:8D:FE:BB:BF:D2:CD:D3:84:51:42:42:0E:7B:57:3D:58:BD:86:16:EB:0C:01:5B:97:30:97:E0:97:48:D6:59:40:D5:8A:80:B4:11:0C:47:D7:4C:3D:F5:E2:E9:7B:88:FB:28:63:23:08:AC:7A:C8:CC:16:B7:B6:15:DF:B9:49:FF:B7:BB:5D:21:1D:F5:DC:AA:EC:19:74:25:47:15:03:B5:D1:4A:A1:F7:83:38:CC:8E:2A:44:93:D3:FA:79:E4:B3:48:6E:01:AC:6D:3F:6C:D4:04:E6:C0:3C:BF:50:16:8B:1C:8B:32:70:79:D8:63:ED:6C:C4:E3:29:2A:B0:25:6A:EA:E6:E1:36:27:82:BC:50:C9:81:00:EC:E5:69:A2:30:6B:30:2C:A4:59:F3:7D:3B:06:D3:98:66:6C:0E:CA:C3:C7:57:C5:00:C7:FA:73:CE:95:CF:33:DF:49:5F:8B:DC:0F:AE:2F:E6:E4:28:61:09:2C:31:08:70:5C:6B:AE:AF:6A:3E:77:5F:DD:3C:80:CB:F0:F7:DE:31:04:79:68:6A:F4:50:94:48:BB:63:05:43:7B:9B:B8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131402Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.019) 0:00:25.416 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.020) 0:00:25.436 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.019) 0:00:25.456 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.020) 0:00:25.476 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.022) 0:00:25.499 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.022) 0:00:25.522 ******* 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.057663", "end": "2024-08-03 13:14:04.663444", "rc": 0, "start": "2024-08-03 13:14:04.605781" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.194) 0:00:25.716 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.022) 0:00:25.738 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.008) 0:00:25.746 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.017) 0:00:25.764 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 13:14:04 +0000 (0:00:00.018) 0:00:25.782 ******* 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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:29 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.377) 0:00:26.160 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:40 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.018) 0:00:26.178 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690842.652595, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ffc050c041ce63fcbb26690c4efb6436c6819d0d", "ctime": 1722690842.647595, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172762, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722690842.647595, "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": "1528910217", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:45 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.145) 0:00:26.324 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:51 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.020) 0:00:26.345 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:63 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.023) 0:00:26.368 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:69 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.020) 0:00:26.389 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1722690842.6025949, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "686086346ea74568650fe5036e7b4a43038d1227", "ctime": 1722690842.647595, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172761, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722690842.647595, "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": "1528910204", "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-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:74 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.150) 0:00:26.540 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:80 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.021) 0:00:26.561 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.023) 0:00:26.585 ******* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "48:14:C5:F6:E1:9C:DF:AC:1B:FB:1A:EF:3B:29:E6:EA:A3:A0:DE:C6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "47:CD:24:E4:01:17:D7:73:38:F7:E2:60:D3:13:C9:96:A7:51:F8:70:89:52:19:16:42:F8:13:F6:C7:E8:D4:6E:03:CC:DB:F7:CD:03:27:F9:AA:B9:5E:5E:62:DA:FD:29:94:23:D2:A4:37:B0:82:1E:61:6B:77:8D:B3:F2:E0:6F:F5:8D:6D:9B:05:CA:59:25:CC:15:18:3B:59:94:51:62:40:9E:21:EC:B5:E5:72:47:42:C0:0F:2B:4A:68:28:AC:15:4A:B1:D6:2A:7B:59:D0:27:9F:B4:45:A6:C9:13:E5:67:12:6A:A4:C0:4E:77:3D:0F:6C:44:2E:23:1C:2E:EC:41:B9:E9:C5:68:E5:E9:43:9F:56:93:85:FB:FA:5D:76:BA:90:6B:13:DB:4E:AC:EA:9D:90:B1:76:AA:EB:26:15:9A:B4:C8:27:DB:1D:C7:8A:D6:0D:1D:94:52:EF:C2:B3:25:38:57:EE:1D:27:AF:8F:4B:36:CA:FB:96:D6:ED:E8:13:C6:26:BC:EF:3D:D7:04:DE:A7:EA:33:A8:37:90:B8:0B:8D:E2:74:F9:0D:81:ED:AF:98:56:83:2D:81:BC:FF:97:4A:D3:44:9A:F5:3B:33:26:8B:C8:08:C7:DF:3F:84:33:8B:10:93:3D:48:07:B2:45:99:53:CA:0A:57:DE:AE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131402Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:98 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.211) 0:00:26.796 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4F:13:2B:38:A7:5B:77:CE:0E:D1:DC:7D:F5:0F:E5:F2:83:23:12:2F" }, "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": "48:14:C5:F6:E1:9C:DF:AC:1B:FB:1A:EF:3B:29:E6:EA:A3:A0:DE:C6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "47:CD:24:E4:01:17:D7:73:38:F7:E2:60:D3:13:C9:96:A7:51:F8:70:89:52:19:16:42:F8:13:F6:C7:E8:D4:6E:03:CC:DB:F7:CD:03:27:F9:AA:B9:5E:5E:62:DA:FD:29:94:23:D2:A4:37:B0:82:1E:61:6B:77:8D:B3:F2:E0:6F:F5:8D:6D:9B:05:CA:59:25:CC:15:18:3B:59:94:51:62:40:9E:21:EC:B5:E5:72:47:42:C0:0F:2B:4A:68:28:AC:15:4A:B1:D6:2A:7B:59:D0:27:9F:B4:45:A6:C9:13:E5:67:12:6A:A4:C0:4E:77:3D:0F:6C:44:2E:23:1C:2E:EC:41:B9:E9:C5:68:E5:E9:43:9F:56:93:85:FB:FA:5D:76:BA:90:6B:13:DB:4E:AC:EA:9D:90:B1:76:AA:EB:26:15:9A:B4:C8:27:DB:1D:C7:8A:D6:0D:1D:94:52:EF:C2:B3:25:38:57:EE:1D:27:AF:8F:4B:36:CA:FB:96:D6:ED:E8:13:C6:26:BC:EF:3D:D7:04:DE:A7:EA:33:A8:37:90:B8:0B:8D:E2:74:F9:0D:81:ED:AF:98:56:83:2D:81:BC:FF:97:4A:D3:44:9A:F5:3B:33:26:8B:C8:08:C7:DF:3F:84:33:8B:10:93:3D:48:07:B2:45:99:53:CA:0A:57:DE:AE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803131354Z", "not_valid_before": "20240803131402Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:102 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.021) 0:00:26.818 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:111 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.021) 0:00:26.839 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:120 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.019) 0:00:26.859 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:127 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.019) 0:00:26.879 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:138 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.022) 0:00:26.901 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:151 Saturday 03 August 2024 13:14:05 +0000 (0:00:00.022) 0:00:26.924 ******* 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.057769", "end": "2024-08-03 13:14:06.071462", "rc": 0, "start": "2024-08-03 13:14:06.013693" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:160 Saturday 03 August 2024 13:14:06 +0000 (0:00:00.199) 0:00:27.123 ******* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 03 August 2024 13:14:06 +0000 (0:00:00.018) 0:00:27.142 ******* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 6.83s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 5.42s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.29s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.27s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.93s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.86s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:2 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.50s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.41s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:14 -------------------- Ensure user exists ------------------------------------------------------ 0.41s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:5 --------------------- Gathering Facts --------------------------------------------------------- 0.39s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.39s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:85 -------------------- Ensure python3 is installed --------------------------------------------- 0.39s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 linux-system-roles.certificate : Ensure provider packages are installed --- 0.38s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.37s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tests_fs_attrs.yml:67 -------------------- Parse certificate ------------------------------------------------------- 0.34s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:92 Retrieve auto-renew flag ------------------------------------------------ 0.25s /WORKDIR/git-weekly-ci8lhz7iqe/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.24s /WORKDIR/git-weekly-ci8lhz7iqe/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---