# 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-ci3kp_jdzh/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:2 Saturday 11 May 2024 13:20:54 +0000 (0:00:00.012) 0:00:00.012 ********** ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:5 Saturday 11 May 2024 13:20:55 +0000 (0:00:00.770) 0:00:00.783 ********** 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-ci3kp_jdzh/tests/tests_fs_attrs.yml:9 Saturday 11 May 2024 13:20:55 +0000 (0:00:00.320) 0:00:01.103 ********** 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-ci3kp_jdzh/tests/tests_fs_attrs.yml:14 Saturday 11 May 2024 13:20:56 +0000 (0:00:00.227) 0:00:01.330 ********** ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 11 May 2024 13:20:56 +0000 (0:00:00.399) 0:00:01.729 ********** included: /WORKDIR/git-weekly-ci3kp_jdzh/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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 11 May 2024 13:20:56 +0000 (0:00:00.010) 0:00:01.740 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 11 May 2024 13:20:56 +0000 (0:00:00.017) 0:00:01.757 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 11 May 2024 13:20:56 +0000 (0:00:00.175) 0:00:01.932 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 11 May 2024 13:20:56 +0000 (0:00:00.020) 0:00:01.952 ********** 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-ci3kp_jdzh/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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 11 May 2024 13:20:56 +0000 (0:00:00.031) 0:00:01.984 ********** 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.7 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 [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 11 May 2024 13:21:03 +0000 (0:00:06.313) 0:00:08.297 ********** 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.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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 11 May 2024 13:21:06 +0000 (0:00:03.263) 0:00:11.561 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 11 May 2024 13:21:06 +0000 (0:00:00.221) 0:00:11.782 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 11 May 2024 13:21:06 +0000 (0:00:00.154) 0:00:11.937 ********** 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": "syslog.target network.target basic.target systemd-journald.socket system.slice 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": "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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 11 May 2024 13:21:07 +0000 (0:00:00.432) 0:00:12.369 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 11 May 2024 13:21:08 +0000 (0:00:01.276) 0:00:13.646 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.031) 0:00:13.678 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.016) 0:00:13.694 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.018) 0:00:13.712 ********** 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-ci3kp_jdzh/tests/tests_fs_attrs.yml:32 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.019) 0:00:13.732 ********** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:61 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.367) 0:00:14.100 ********** included: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.033) 0:00:14.133 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.007) 0:00:14.140 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.017) 0:00:14.158 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:21:08 +0000 (0:00:00.017) 0:00:14.175 ********** 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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:29 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.359) 0:00:14.534 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.017) 0:00:14.551 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433667.7531803, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "29febb50649ee3431338f65c5a279807856a2602", "ctime": 1715433667.8981764, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169867, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433667.7491803, "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": "18446744072130363723", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:45 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.144) 0:00:14.695 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:51 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.018) 0:00:14.714 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:63 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.021) 0:00:14.735 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.019) 0:00:14.755 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433667.7021816, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "95f299b9bdc5b88eeea95ecb1ab8d62d6be04faf", "ctime": 1715433667.8981764, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169866, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433667.7491803, "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": "18446744072130363710", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:74 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.141) 0:00:14.897 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:80 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.019) 0:00:14.916 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:21:09 +0000 (0:00:00.022) 0:00:14.939 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "54:A3:DD:0C:FB:3B:EB:F0:24:1F:85:78:CF:89:E9:11:79:DB:B8:BB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "29:03:1C:69:2C:9D:CE:57:27:92:D8:C4:A1:BD:AD:7E:94:C4:EE:8F:C6:EE:C2:FE:1F:24:77:C0:C8:A9:C0:45:84:24:0C:36:27:E0:52:D3:13:65:AD:7B:6E:3F:F6:8B:45:AE:9D:1B:CF:5B:D1:5E:04:B7:DC:88:3F:B7:4C:11:DC:8A:4B:BD:E5:52:35:3F:F3:6D:E9:19:39:9E:0D:FD:38:2E:B7:B5:89:23:7E:C3:5D:38:38:98:6E:86:93:D7:EA:96:84:2B:67:7C:5C:92:2B:70:D2:67:A0:29:74:7D:DA:C3:63:EF:77:4C:2A:0B:F8:66:98:08:DB:1E:9B:76:E3:51:F2:B4:5F:2E:2F:D7:86:0A:CE:FF:72:E9:78:1B:B0:52:C4:44:56:12:97:09:97:ED:1F:0E:1D:4F:32:08:97:CE:AD:7E:1B:2C:4B:5E:58:84:E0:59:24:F5:41:74:67:68:33:84:8D:56:0C:D3:9A:0D:5F:85:93:DE:FD:8C:E5:DA:CC:2D:BD:61:C8:0D:06:A9:1F:C3:77:E2:04:DD:58:66:3C:BC:83:9D:18:3B:19:A5:27:FF:3F:94:AF:73:96:73:53:06:D8:BD:11:AF:74:02:28:E5:73:FA:43:1F:7A:A7:63:7E:C3:88:CA:12:5E:EA:46:A3:32:60:26:4A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132107Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:98 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.454) 0:00:15.393 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "54:A3:DD:0C:FB:3B:EB:F0:24:1F:85:78:CF:89:E9:11:79:DB:B8:BB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "29:03:1C:69:2C:9D:CE:57:27:92:D8:C4:A1:BD:AD:7E:94:C4:EE:8F:C6:EE:C2:FE:1F:24:77:C0:C8:A9:C0:45:84:24:0C:36:27:E0:52:D3:13:65:AD:7B:6E:3F:F6:8B:45:AE:9D:1B:CF:5B:D1:5E:04:B7:DC:88:3F:B7:4C:11:DC:8A:4B:BD:E5:52:35:3F:F3:6D:E9:19:39:9E:0D:FD:38:2E:B7:B5:89:23:7E:C3:5D:38:38:98:6E:86:93:D7:EA:96:84:2B:67:7C:5C:92:2B:70:D2:67:A0:29:74:7D:DA:C3:63:EF:77:4C:2A:0B:F8:66:98:08:DB:1E:9B:76:E3:51:F2:B4:5F:2E:2F:D7:86:0A:CE:FF:72:E9:78:1B:B0:52:C4:44:56:12:97:09:97:ED:1F:0E:1D:4F:32:08:97:CE:AD:7E:1B:2C:4B:5E:58:84:E0:59:24:F5:41:74:67:68:33:84:8D:56:0C:D3:9A:0D:5F:85:93:DE:FD:8C:E5:DA:CC:2D:BD:61:C8:0D:06:A9:1F:C3:77:E2:04:DD:58:66:3C:BC:83:9D:18:3B:19:A5:27:FF:3F:94:AF:73:96:73:53:06:D8:BD:11:AF:74:02:28:E5:73:FA:43:1F:7A:A7:63:7E:C3:88:CA:12:5E:EA:46:A3:32:60:26:4A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132107Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:102 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.018) 0:00:15.412 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:111 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.019) 0:00:15.431 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:120 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.019) 0:00:15.450 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:127 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.019) 0:00:15.470 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:138 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.021) 0:00:15.491 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.021) 0:00:15.513 ********** 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.050707", "end": "2024-05-11 13:21:10.536455", "rc": 0, "start": "2024-05-11 13:21:10.485748" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:160 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.249) 0:00:15.763 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.020) 0:00:15.783 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.007) 0:00:15.791 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.017) 0:00:15.808 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.017) 0:00:15.825 ********** 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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:29 Saturday 11 May 2024 13:21:10 +0000 (0:00:00.367) 0:00:16.192 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.027) 0:00:16.220 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433668.2751663, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "95f9acf722c87c2d94d5e7838b7293920513307f", "ctime": 1715433668.4111626, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169869, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433668.2721663, "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": "18446744072130363759", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:45 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.146) 0:00:16.366 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:51 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.019) 0:00:16.386 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:63 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.021) 0:00:16.408 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.019) 0:00:16.427 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433668.2291675, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3466b8bd900529775c6531dfc88bb0d9205f9bb3", "ctime": 1715433668.4111626, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169868, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433668.2721663, "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": "18446744072130363746", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:74 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.144) 0:00:16.572 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:80 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.020) 0:00:16.593 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.021) 0:00:16.614 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "D6:84:80:5B:7C:A5:25:A2:C9:4D:97:AE:50:16:22:71:A5:E0:A1:5B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "D7:18:05:56:DC:A9:D5:AD:D6:C9:A6:8D:4C:09:86:32:58:06:79:AB:A3:08:F1:F1:D5:7D:C7:1F:E7:75:DF:63:ED:FC:33:9B:B5:06:94:CC:E9:B2:7A:BB:F6:EC:B1:E6:80:86:B6:07:62:E1:86:63:A3:54:81:5E:E5:75:9A:EA:99:EB:53:04:49:C0:95:42:01:5D:9D:0C:75:42:33:20:A7:7B:A8:28:70:25:7C:A0:B3:C7:D6:64:A7:20:7C:36:E5:36:BA:4F:3B:D2:BB:E8:C7:47:BE:E7:48:D7:D5:C1:73:B9:00:59:75:C2:20:DC:EE:02:85:8D:03:82:4F:5A:84:4B:0C:7C:3A:9F:02:5A:3A:86:EF:F5:E5:C6:4E:12:FC:8A:9C:D9:7A:B2:7F:02:E2:3C:3A:14:46:0F:67:8B:50:A1:7F:60:5E:AD:81:96:5D:2E:91:76:54:DF:22:A4:98:09:78:29:B0:B4:E0:D8:48:50:45:77:D1:04:89:00:AE:E9:2D:F0:74:83:04:86:B6:B1:6B:94:6F:AD:1B:5E:94:31:71:72:82:C8:33:BD:05:8C:36:49:D0:3C:DB:28:D3:81:97:53:D0:8E:5D:20:96:23:94:5F:20:C1:92:86:6B:29:75:B3:12:81:2E:A6:E6:DB:02:9D:58:7B:7F:36" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132108Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:98 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.209) 0:00:16.823 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "D6:84:80:5B:7C:A5:25:A2:C9:4D:97:AE:50:16:22:71:A5:E0:A1:5B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "D7:18:05:56:DC:A9:D5:AD:D6:C9:A6:8D:4C:09:86:32:58:06:79:AB:A3:08:F1:F1:D5:7D:C7:1F:E7:75:DF:63:ED:FC:33:9B:B5:06:94:CC:E9:B2:7A:BB:F6:EC:B1:E6:80:86:B6:07:62:E1:86:63:A3:54:81:5E:E5:75:9A:EA:99:EB:53:04:49:C0:95:42:01:5D:9D:0C:75:42:33:20:A7:7B:A8:28:70:25:7C:A0:B3:C7:D6:64:A7:20:7C:36:E5:36:BA:4F:3B:D2:BB:E8:C7:47:BE:E7:48:D7:D5:C1:73:B9:00:59:75:C2:20:DC:EE:02:85:8D:03:82:4F:5A:84:4B:0C:7C:3A:9F:02:5A:3A:86:EF:F5:E5:C6:4E:12:FC:8A:9C:D9:7A:B2:7F:02:E2:3C:3A:14:46:0F:67:8B:50:A1:7F:60:5E:AD:81:96:5D:2E:91:76:54:DF:22:A4:98:09:78:29:B0:B4:E0:D8:48:50:45:77:D1:04:89:00:AE:E9:2D:F0:74:83:04:86:B6:B1:6B:94:6F:AD:1B:5E:94:31:71:72:82:C8:33:BD:05:8C:36:49:D0:3C:DB:28:D3:81:97:53:D0:8E:5D:20:96:23:94:5F:20:C1:92:86:6B:29:75:B3:12:81:2E:A6:E6:DB:02:9D:58:7B:7F:36" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132108Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:102 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.018) 0:00:16.842 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:111 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.019) 0:00:16.861 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:120 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.019) 0:00:16.880 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:127 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.019) 0:00:16.900 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:138 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.021) 0:00:16.921 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.022) 0:00:16.943 ********** 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.050321", "end": "2024-05-11 13:21:11.900445", "rc": 0, "start": "2024-05-11 13:21:11.850124" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:160 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.182) 0:00:17.126 ********** 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-ci3kp_jdzh/tests/tests_fs_attrs.yml:67 Saturday 11 May 2024 13:21:11 +0000 (0:00:00.023) 0:00:17.149 ********** ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 11 May 2024 13:21:12 +0000 (0:00:00.361) 0:00:17.511 ********** included: /WORKDIR/git-weekly-ci3kp_jdzh/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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 11 May 2024 13:21:12 +0000 (0:00:00.011) 0:00:17.523 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 11 May 2024 13:21:12 +0000 (0:00:00.018) 0:00:17.541 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 11 May 2024 13:21:12 +0000 (0:00:00.017) 0:00:17.558 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 11 May 2024 13:21:12 +0000 (0:00:00.017) 0:00:17.576 ********** 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-ci3kp_jdzh/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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 11 May 2024 13:21:12 +0000 (0:00:00.031) 0:00:17.607 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 11 May 2024 13:21:13 +0000 (0:00:00.904) 0:00:18.512 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 11 May 2024 13:21:13 +0000 (0:00:00.367) 0:00:18.880 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 11 May 2024 13:21:13 +0000 (0:00:00.148) 0:00:19.028 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 11 May 2024 13:21:13 +0000 (0:00:00.147) 0:00:19.176 ********** ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-05-11 13:21:07 UTC", "ActiveEnterTimestampMonotonic": "1364147960", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target system.slice dbus.service network.target basic.target systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-05-11 13:21:07 UTC", "AssertTimestampMonotonic": "1364121601", "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-05-11 13:21:07 UTC", "ConditionTimestampMonotonic": "1364121600", "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": "12033", "ExecMainStartTimestamp": "Sat 2024-05-11 13:21:07 UTC", "ExecMainStartTimestampMonotonic": "1364122330", "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-05-11 13:21:07 UTC] ; stop_time=[n/a] ; pid=12033 ; 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-05-11 13:21:07 UTC", "InactiveExitTimestampMonotonic": "1364122377", "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": "12033", "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-05-11 13:21:07 UTC", "WatchdogTimestampMonotonic": "1364147552", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 11 May 2024 13:21:14 +0000 (0:00:00.214) 0:00:19.391 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 11 May 2024 13:21:15 +0000 (0:00:01.271) 0:00:20.662 ********** 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-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.032) 0:00:20.695 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.018) 0:00:20.714 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.018) 0:00:20.732 ********** 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-ci3kp_jdzh/tests/tests_fs_attrs.yml:85 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.021) 0:00:20.754 ********** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:112 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.364) 0:00:21.118 ********** included: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.032) 0:00:21.150 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.008) 0:00:21.159 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.017) 0:00:21.176 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:21:15 +0000 (0:00:00.016) 0:00:21.193 ********** 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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:29 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.364) 0:00:21.558 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.017) 0:00:21.575 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433674.5359986, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "540dae11487f75c4e7a3db94f3a2ecf437178723", "ctime": 1715433674.5719976, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169871, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1715433674.5319986, "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": "18446744072130363848", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:45 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.140) 0:00:21.716 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:51 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.019) 0:00:21.735 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:63 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.021) 0:00:21.757 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.019) 0:00:21.776 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433674.488, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ac68ac9b46b577aebf073aeb55b9508ad07fdfba", "ctime": 1715433674.5719976, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169870, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1715433674.5319986, "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": "18446744072130363835", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:74 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.145) 0:00:21.922 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:80 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.020) 0:00:21.942 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.021) 0:00:21.964 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "B6:29:B8:06:D2:03:2D:B0:9A:22:DD:C4:6B:3F:7F:55:AD:B2:16:0B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "50:F2:F0:E6:39:06:C4:22:02:65:5A:D7:0C:EB:F1:5A:95:E5:0E:C5:3A:35:C6:52:7C:CB:FE:C7:71:15:74:E1:CF:54:4C:2E:D0:60:42:E2:E9:38:1A:34:45:A4:14:DB:E9:A3:4D:1E:7F:DB:A8:F9:48:91:71:5E:05:C3:54:06:0A:F9:36:A8:72:A4:B6:E8:1C:79:54:EA:08:20:08:62:11:89:A2:DC:03:B2:B6:91:90:D0:1B:AF:37:F9:62:33:96:28:AF:F8:71:6A:04:F4:17:70:0F:E2:F2:27:DF:FA:C9:75:B5:F8:A9:BD:BB:10:79:BC:74:D7:76:59:E9:EA:87:5D:B4:5B:AA:98:E1:80:BB:35:1F:16:5C:67:7B:EA:EB:A2:84:2D:C2:39:9A:8D:87:5B:FE:2C:C9:13:8A:05:D8:90:82:9E:E2:9C:CD:8D:D9:5B:A6:65:82:85:3F:C2:5E:8A:15:2C:33:41:46:39:7D:B6:9C:C8:9F:F5:93:DC:63:F3:FE:A5:AA:13:90:9C:DF:F6:E6:0A:01:3D:A9:72:AF:00:AA:83:60:4A:2E:7A:E8:A7:C5:A7:F2:41:A2:0F:39:82:9E:7F:42:E9:1D:87:63:C2:43:87:D2:74:0A:79:6F:D4:11:C6:E3:39:E3:BC:95:AE:FC:1C:72:97:D5:23" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132114Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:98 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.207) 0:00:22.172 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "B6:29:B8:06:D2:03:2D:B0:9A:22:DD:C4:6B:3F:7F:55:AD:B2:16:0B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "50:F2:F0:E6:39:06:C4:22:02:65:5A:D7:0C:EB:F1:5A:95:E5:0E:C5:3A:35:C6:52:7C:CB:FE:C7:71:15:74:E1:CF:54:4C:2E:D0:60:42:E2:E9:38:1A:34:45:A4:14:DB:E9:A3:4D:1E:7F:DB:A8:F9:48:91:71:5E:05:C3:54:06:0A:F9:36:A8:72:A4:B6:E8:1C:79:54:EA:08:20:08:62:11:89:A2:DC:03:B2:B6:91:90:D0:1B:AF:37:F9:62:33:96:28:AF:F8:71:6A:04:F4:17:70:0F:E2:F2:27:DF:FA:C9:75:B5:F8:A9:BD:BB:10:79:BC:74:D7:76:59:E9:EA:87:5D:B4:5B:AA:98:E1:80:BB:35:1F:16:5C:67:7B:EA:EB:A2:84:2D:C2:39:9A:8D:87:5B:FE:2C:C9:13:8A:05:D8:90:82:9E:E2:9C:CD:8D:D9:5B:A6:65:82:85:3F:C2:5E:8A:15:2C:33:41:46:39:7D:B6:9C:C8:9F:F5:93:DC:63:F3:FE:A5:AA:13:90:9C:DF:F6:E6:0A:01:3D:A9:72:AF:00:AA:83:60:4A:2E:7A:E8:A7:C5:A7:F2:41:A2:0F:39:82:9E:7F:42:E9:1D:87:63:C2:43:87:D2:74:0A:79:6F:D4:11:C6:E3:39:E3:BC:95:AE:FC:1C:72:97:D5:23" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132114Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:102 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.018) 0:00:22.190 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:111 Saturday 11 May 2024 13:21:16 +0000 (0:00:00.019) 0:00:22.209 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:120 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.019) 0:00:22.229 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:127 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.019) 0:00:22.249 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:138 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.024) 0:00:22.273 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.022) 0:00:22.296 ********** 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.055718", "end": "2024-05-11 13:21:17.258737", "rc": 0, "start": "2024-05-11 13:21:17.203019" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:160 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.189) 0:00:22.485 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.020) 0:00:22.505 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.007) 0:00:22.513 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.018) 0:00:22.531 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.016) 0:00:22.548 ********** 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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:29 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.359) 0:00:22.907 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.017) 0:00:22.925 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433675.2779787, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2292de113f2addf194fd551ca4d756758fb5d18d", "ctime": 1715433675.2729788, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169873, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715433675.2729788, "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": "18446744072130363884", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:45 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.142) 0:00:23.067 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:51 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.018) 0:00:23.085 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:63 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.021) 0:00:23.106 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Saturday 11 May 2024 13:21:17 +0000 (0:00:00.019) 0:00:23.125 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433675.23098, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b295099764394dd44cf13065393f057459d3fab0", "ctime": 1715433675.2729788, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169872, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715433675.2729788, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "18446744072130363871", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:74 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.143) 0:00:23.269 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:80 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.019) 0:00:23.288 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.021) 0:00:23.310 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "05:EB:09:54:15:EF:76:46:96:B4:DE:7F:1B:91:73:AD:EB:47:0F:1B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CD:4A:39:56:49:37:A9:E9:46:95:0F:9F:E8:78:5B:68:77:7F:EC:2B:D8:6B:93:36:C5:41:F1:74:71:A1:50:84:C2:67:C0:49:E2:5C:82:67:94:37:14:EC:68:D2:3F:31:E1:F8:C2:0C:4C:2D:A3:0B:35:F4:B4:61:8B:F0:99:0D:81:61:3D:9F:97:76:6B:B9:A3:59:AA:F9:E5:1A:5B:8E:C4:13:D0:16:2A:38:92:F8:F1:48:AE:76:0B:09:AD:D0:04:85:BB:D2:62:B1:1A:85:AF:2F:35:6C:46:5C:87:CE:AF:2A:76:28:91:9D:2A:5E:93:BB:19:4D:6B:B6:B1:78:A4:55:49:36:1C:FE:B7:3A:05:D5:47:72:8E:3A:2C:62:DB:2A:07:B2:99:AE:EC:88:DB:A8:4E:EA:E2:02:DB:50:94:F0:2C:3C:AC:BA:5D:78:1D:F2:CC:8A:30:7A:28:A6:6F:8B:25:97:4F:D1:68:37:37:DB:F8:CC:44:5D:28:20:D8:44:F4:60:5B:B1:C0:7A:0A:62:07:DB:30:CC:C4:F5:50:5F:84:2F:60:7B:02:18:02:F4:31:5C:B2:DF:E7:DB:C3:05:FA:3A:F3:70:7B:80:18:49:27:A8:DB:9F:22:59:33:E7:54:FE:DD:5B:7C:08:A7:62:29:46:2F:66:E8:75" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132115Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:98 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.208) 0:00:23.518 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:95:21:BF:AC:76:9B:38:E1:3A:14:A6:F7:DF:57:6F:DE:92:79:81" }, "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": "05:EB:09:54:15:EF:76:46:96:B4:DE:7F:1B:91:73:AD:EB:47:0F:1B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CD:4A:39:56:49:37:A9:E9:46:95:0F:9F:E8:78:5B:68:77:7F:EC:2B:D8:6B:93:36:C5:41:F1:74:71:A1:50:84:C2:67:C0:49:E2:5C:82:67:94:37:14:EC:68:D2:3F:31:E1:F8:C2:0C:4C:2D:A3:0B:35:F4:B4:61:8B:F0:99:0D:81:61:3D:9F:97:76:6B:B9:A3:59:AA:F9:E5:1A:5B:8E:C4:13:D0:16:2A:38:92:F8:F1:48:AE:76:0B:09:AD:D0:04:85:BB:D2:62:B1:1A:85:AF:2F:35:6C:46:5C:87:CE:AF:2A:76:28:91:9D:2A:5E:93:BB:19:4D:6B:B6:B1:78:A4:55:49:36:1C:FE:B7:3A:05:D5:47:72:8E:3A:2C:62:DB:2A:07:B2:99:AE:EC:88:DB:A8:4E:EA:E2:02:DB:50:94:F0:2C:3C:AC:BA:5D:78:1D:F2:CC:8A:30:7A:28:A6:6F:8B:25:97:4F:D1:68:37:37:DB:F8:CC:44:5D:28:20:D8:44:F4:60:5B:B1:C0:7A:0A:62:07:DB:30:CC:C4:F5:50:5F:84:2F:60:7B:02:18:02:F4:31:5C:B2:DF:E7:DB:C3:05:FA:3A:F3:70:7B:80:18:49:27:A8:DB:9F:22:59:33:E7:54:FE:DD:5B:7C:08:A7:62:29:46:2F:66:E8:75" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132107Z", "not_valid_before": "20240511132115Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:102 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.018) 0:00:23.537 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:111 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.020) 0:00:23.557 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:120 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.019) 0:00:23.577 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:127 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.019) 0:00:23.596 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:138 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.021) 0:00:23.617 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.021) 0:00:23.639 ********** 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.055125", "end": "2024-05-11 13:21:18.605678", "rc": 0, "start": "2024-05-11 13:21:18.550553" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:160 Saturday 11 May 2024 13:21:18 +0000 (0:00:00.192) 0:00:23.832 ********** 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 11 May 2024 13:21:18 +0000 (0:00:00.018) 0:00:23.850 ********** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 6.31s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 3.26s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.28s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.27s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.90s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.77s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:2 --------------------- Parse certificate ------------------------------------------------------- 0.45s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 linux-system-roles.certificate : Ensure provider service is running ----- 0.43s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.40s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:14 -------------------- linux-system-roles.certificate : Ensure provider packages are installed --- 0.37s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Gathering Facts --------------------------------------------------------- 0.37s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:32 -------------------- Ensure python3 is installed --------------------------------------------- 0.37s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.36s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.36s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.36s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:67 -------------------- Ensure python3 is installed --------------------------------------------- 0.36s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.36s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Ensure user exists ------------------------------------------------------ 0.32s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:5 --------------------- Retrieve auto-renew flag ------------------------------------------------ 0.25s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 Ensure group "somegroup" exists ----------------------------------------- 0.23s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_fs_attrs.yml:9 --------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---