# 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-cixwbamh19/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:2 Saturday 08 June 2024 13:24:21 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:5 Saturday 08 June 2024 13:24:22 +0000 (0:00:00.888) 0:00:00.900 ********* 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-cixwbamh19/tests/tests_fs_attrs.yml:9 Saturday 08 June 2024 13:24:22 +0000 (0:00:00.407) 0:00:01.307 ********* 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-cixwbamh19/tests/tests_fs_attrs.yml:14 Saturday 08 June 2024 13:24:22 +0000 (0:00:00.222) 0:00:01.529 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 08 June 2024 13:24:23 +0000 (0:00:00.540) 0:00:02.070 ********* included: /WORKDIR/git-weekly-cixwbamh19/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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 08 June 2024 13:24:23 +0000 (0:00:00.012) 0:00:02.082 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 08 June 2024 13:24:23 +0000 (0:00:00.019) 0:00:02.101 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 08 June 2024 13:24:23 +0000 (0:00:00.185) 0:00:02.287 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 08 June 2024 13:24:23 +0000 (0:00:00.019) 0:00:02.307 ********* 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-cixwbamh19/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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 08 June 2024 13:24:23 +0000 (0:00:00.031) 0:00:02.338 ********* 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.2 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 08 June 2024 13:24:30 +0000 (0:00:07.233) 0:00:09.571 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 08 June 2024 13:24:34 +0000 (0:00:03.621) 0:00:13.193 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 08 June 2024 13:24:34 +0000 (0:00:00.232) 0:00:13.426 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 08 June 2024 13:24:34 +0000 (0:00:00.162) 0:00:13.589 ********* 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 syslog.target dbus.service systemd-journald.socket basic.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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 08 June 2024 13:24:35 +0000 (0:00:00.493) 0:00:14.082 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 08 June 2024 13:24:36 +0000 (0:00:01.269) 0:00:15.351 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 08 June 2024 13:24:36 +0000 (0:00:00.031) 0:00:15.383 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 08 June 2024 13:24:36 +0000 (0:00:00.017) 0:00:15.401 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 08 June 2024 13:24:36 +0000 (0:00:00.017) 0:00:15.418 ********* 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-cixwbamh19/tests/tests_fs_attrs.yml:32 Saturday 08 June 2024 13:24:36 +0000 (0:00:00.019) 0:00:15.437 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:61 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.418) 0:00:15.856 ********* included: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.041) 0:00:15.898 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.015) 0:00:15.914 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.019) 0:00:15.934 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.019) 0:00:15.953 ********* 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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.409) 0:00:16.363 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.059) 0:00:16.422 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853075.8660955, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f7173e0cd95fc31945f9192d8a6b71ff0927256f", "ctime": 1717853075.950094, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169874, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717853075.8620956, "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": "18446744072094840229", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.188) 0:00:16.611 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.031) 0:00:16.642 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.024) 0:00:16.667 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 13:24:37 +0000 (0:00:00.024) 0:00:16.691 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853075.8130965, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "99af02d52f7ea8daeb43e2410feecacdd174da6a", "ctime": 1717853075.951094, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169873, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717853075.8620956, "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": "18446744072094840216", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.194) 0:00:16.885 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.020) 0:00:16.906 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.026) 0:00:16.932 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "C4:8F:AE:79:B0:77:34:D4:59:57:41:D0:AE:77:55:7C:1F:DE:C9:E5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4A:FE:34:1A:83:B7:54:1D:FE:AA:0D:96:C9:14:9F:10:96:62:3E:7D:D0:13:93:A4:2F:A5:4E:6D:5F:31:9E:AD:47:44:62:74:E6:73:F6:D9:53:57:DB:62:5E:37:55:5F:B4:E3:12:40:C6:12:55:37:16:45:71:AA:BD:1B:4C:28:C2:6D:29:79:D2:7F:0E:6A:53:7A:38:2C:D4:13:56:AE:4A:B6:E2:1D:69:77:1D:22:53:DC:07:49:52:37:BE:47:9A:78:B2:7C:21:0F:A9:1E:4C:33:1D:A6:D1:0B:67:31:F8:70:28:67:B4:4D:CC:76:E6:42:3F:F3:0A:D9:C1:DD:88:F0:C1:2B:79:9A:FB:C1:B1:77:61:56:79:0A:F3:09:F3:9F:41:66:E1:46:FB:84:B5:34:51:22:1C:45:18:B4:45:0A:CD:79:BE:7B:7E:BD:05:42:4A:32:63:BF:1F:33:C6:87:FF:0B:62:DA:7E:A4:29:F8:BB:31:7A:0D:D8:2B:B1:5D:E1:A6:C3:03:4C:D9:D9:22:DF:2D:07:6C:D2:E1:10:80:92:01:80:13:4F:A7:85:AA:03:0D:FB:7F:4F:83:D5:25:99:42:CE:F0:26:BC:1C:37:89:85:06:82:C9:11:47:19:A3:E0:3C:1C:46:1F:90:5F:14:41:A5:7C:EA:45" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132435Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.413) 0:00:17.346 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "C4:8F:AE:79:B0:77:34:D4:59:57:41:D0:AE:77:55:7C:1F:DE:C9:E5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4A:FE:34:1A:83:B7:54:1D:FE:AA:0D:96:C9:14:9F:10:96:62:3E:7D:D0:13:93:A4:2F:A5:4E:6D:5F:31:9E:AD:47:44:62:74:E6:73:F6:D9:53:57:DB:62:5E:37:55:5F:B4:E3:12:40:C6:12:55:37:16:45:71:AA:BD:1B:4C:28:C2:6D:29:79:D2:7F:0E:6A:53:7A:38:2C:D4:13:56:AE:4A:B6:E2:1D:69:77:1D:22:53:DC:07:49:52:37:BE:47:9A:78:B2:7C:21:0F:A9:1E:4C:33:1D:A6:D1:0B:67:31:F8:70:28:67:B4:4D:CC:76:E6:42:3F:F3:0A:D9:C1:DD:88:F0:C1:2B:79:9A:FB:C1:B1:77:61:56:79:0A:F3:09:F3:9F:41:66:E1:46:FB:84:B5:34:51:22:1C:45:18:B4:45:0A:CD:79:BE:7B:7E:BD:05:42:4A:32:63:BF:1F:33:C6:87:FF:0B:62:DA:7E:A4:29:F8:BB:31:7A:0D:D8:2B:B1:5D:E1:A6:C3:03:4C:D9:D9:22:DF:2D:07:6C:D2:E1:10:80:92:01:80:13:4F:A7:85:AA:03:0D:FB:7F:4F:83:D5:25:99:42:CE:F0:26:BC:1C:37:89:85:06:82:C9:11:47:19:A3:E0:3C:1C:46:1F:90:5F:14:41:A5:7C:EA:45" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132435Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.020) 0:00:17.366 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.020) 0:00:17.387 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.019) 0:00:17.406 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.019) 0:00:17.426 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.022) 0:00:17.448 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.024) 0:00:17.473 ********* 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.054896", "end": "2024-06-08 13:24:38.875986", "rc": 0, "start": "2024-06-08 13:24:38.821090" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.255) 0:00:17.728 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.020) 0:00:17.748 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.008) 0:00:17.757 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.018) 0:00:17.776 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:24:38 +0000 (0:00:00.017) 0:00:17.793 ********* 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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.381) 0:00:18.174 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.017) 0:00:18.191 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853076.3840861, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f67e9bb6e111ab4f48605dc9287e632a9c051bcd", "ctime": 1717853076.4890842, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169876, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717853076.3790863, "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": "18446744072094840265", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.150) 0:00:18.342 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.019) 0:00:18.361 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.021) 0:00:18.383 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.019) 0:00:18.402 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853076.3340871, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9427c0c6614dd95d6d621311d2eae9c1b90bc8a6", "ctime": 1717853076.4900842, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169875, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717853076.3790863, "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": "18446744072094840252", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.150) 0:00:18.552 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.019) 0:00:18.572 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.021) 0:00:18.593 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "42:61:27:CD:08:C8:8B:0F:93:D8:7F:CF:51:90:B6:D3:9B:23:58:31" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "81:82:4C:A4:AB:27:21:A8:16:43:AA:F4:37:F2:46:ED:59:47:B8:22:DA:EF:1B:81:DC:3F:C9:A6:E5:A8:C3:F0:63:F1:88:84:C0:A3:5D:E2:83:43:56:47:B4:EF:D8:87:CC:B7:39:79:9D:1F:E9:63:73:86:C1:48:FF:D2:1C:AE:75:74:46:19:0C:51:B5:3C:2E:8D:C8:86:89:EE:D8:21:3C:79:70:E0:0C:C7:59:10:FA:80:CA:17:3B:90:EF:0E:88:9C:8A:6A:AA:5F:D6:BE:7C:1E:BA:C4:6F:10:E7:80:90:3A:9D:71:DC:0C:54:FC:31:F1:07:69:13:D7:AC:1C:76:38:70:75:12:BD:5B:9B:27:F7:9F:7C:58:CC:81:2C:B9:02:CC:B2:53:1F:89:82:D5:89:53:36:94:BF:1A:F0:E5:86:8B:D5:94:FA:71:3B:5C:FA:53:8E:1D:CF:3F:5E:13:ED:DA:71:80:C6:C2:EA:6C:AC:A1:F0:97:F4:83:3A:40:CC:67:AF:3D:54:22:88:31:3C:F4:FC:90:C5:62:3C:01:E9:9E:97:9E:17:00:43:3E:99:C5:CE:38:47:3B:C7:80:96:43:01:DA:97:5B:E9:FC:46:94:92:E4:90:17:4A:90:9C:52:01:5D:6F:6F:6C:16:5C:23:24:BC:77:47:30" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132436Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 13:24:39 +0000 (0:00:00.224) 0:00:18.818 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "42:61:27:CD:08:C8:8B:0F:93:D8:7F:CF:51:90:B6:D3:9B:23:58:31" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "81:82:4C:A4:AB:27:21:A8:16:43:AA:F4:37:F2:46:ED:59:47:B8:22:DA:EF:1B:81:DC:3F:C9:A6:E5:A8:C3:F0:63:F1:88:84:C0:A3:5D:E2:83:43:56:47:B4:EF:D8:87:CC:B7:39:79:9D:1F:E9:63:73:86:C1:48:FF:D2:1C:AE:75:74:46:19:0C:51:B5:3C:2E:8D:C8:86:89:EE:D8:21:3C:79:70:E0:0C:C7:59:10:FA:80:CA:17:3B:90:EF:0E:88:9C:8A:6A:AA:5F:D6:BE:7C:1E:BA:C4:6F:10:E7:80:90:3A:9D:71:DC:0C:54:FC:31:F1:07:69:13:D7:AC:1C:76:38:70:75:12:BD:5B:9B:27:F7:9F:7C:58:CC:81:2C:B9:02:CC:B2:53:1F:89:82:D5:89:53:36:94:BF:1A:F0:E5:86:8B:D5:94:FA:71:3B:5C:FA:53:8E:1D:CF:3F:5E:13:ED:DA:71:80:C6:C2:EA:6C:AC:A1:F0:97:F4:83:3A:40:CC:67:AF:3D:54:22:88:31:3C:F4:FC:90:C5:62:3C:01:E9:9E:97:9E:17:00:43:3E:99:C5:CE:38:47:3B:C7:80:96:43:01:DA:97:5B:E9:FC:46:94:92:E4:90:17:4A:90:9C:52:01:5D:6F:6F:6C:16:5C:23:24:BC:77:47:30" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132436Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.020) 0:00:18.838 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.019) 0:00:18.858 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.019) 0:00:18.878 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.019) 0:00:18.897 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.022) 0:00:18.919 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.022) 0:00:18.941 ********* 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.055018", "end": "2024-06-08 13:24:40.285613", "rc": 0, "start": "2024-06-08 13:24:40.230595" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.195) 0:00:19.137 ********* 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-cixwbamh19/tests/tests_fs_attrs.yml:67 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.024) 0:00:19.161 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.396) 0:00:19.558 ********* included: /WORKDIR/git-weekly-cixwbamh19/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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.010) 0:00:19.568 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.018) 0:00:19.587 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.017) 0:00:19.604 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.017) 0:00:19.621 ********* 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-cixwbamh19/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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 08 June 2024 13:24:40 +0000 (0:00:00.030) 0:00:19.651 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 08 June 2024 13:24:41 +0000 (0:00:00.967) 0:00:20.618 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 08 June 2024 13:24:42 +0000 (0:00:00.387) 0:00:21.006 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 08 June 2024 13:24:42 +0000 (0:00:00.157) 0:00:21.164 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 08 June 2024 13:24:42 +0000 (0:00:00.159) 0:00:21.323 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-06-08 13:24:35 UTC", "ActiveEnterTimestampMonotonic": "1592272039", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.service system.slice network.target systemd-journald.socket syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-08 13:24:35 UTC", "AssertTimestampMonotonic": "1592240859", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-06-08 13:24:35 UTC", "ConditionTimestampMonotonic": "1592240857", "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": "27581", "ExecMainStartTimestamp": "Sat 2024-06-08 13:24:35 UTC", "ExecMainStartTimestampMonotonic": "1592241654", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-06-08 13:24:35 UTC] ; stop_time=[n/a] ; pid=27581 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-06-08 13:24:35 UTC", "InactiveExitTimestampMonotonic": "1592241705", "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": "27581", "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-06-08 13:24:35 UTC", "WatchdogTimestampMonotonic": "1592271953", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 08 June 2024 13:24:42 +0000 (0:00:00.239) 0:00:21.563 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 08 June 2024 13:24:44 +0000 (0:00:01.615) 0:00:23.179 ********* 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-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.032) 0:00:23.211 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.017) 0:00:23.228 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.018) 0:00:23.246 ********* 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-cixwbamh19/tests/tests_fs_attrs.yml:85 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.020) 0:00:23.266 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:112 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.436) 0:00:23.703 ********* included: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.031) 0:00:23.734 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.008) 0:00:23.743 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.017) 0:00:23.760 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:24:44 +0000 (0:00:00.017) 0:00:23.777 ********* 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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.384) 0:00:24.161 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.017) 0:00:24.179 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853083.2179635, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e80b6eac973d4b4c4dfc9c55064d304d514c7444", "ctime": 1717853083.2709625, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169878, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717853083.2129636, "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": "18446744072094840354", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.150) 0:00:24.329 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.019) 0:00:24.349 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.021) 0:00:24.371 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.020) 0:00:24.391 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853083.1679645, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8ecb86f2e1510ee4636b212b7dbace3b42184cf5", "ctime": 1717853083.2709625, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169877, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717853083.2129636, "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": "18446744072094840341", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.153) 0:00:24.545 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.019) 0:00:24.564 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.021) 0:00:24.586 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "0E:F6:12:1F:AC:4A:B7:72:EB:E7:D8:DB:4C:EE:28:34:E2:47:80:EC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7C:B4:54:36:BF:3E:5F:09:D3:15:C9:D0:CB:02:B2:A7:8A:1C:15:0B:57:4E:82:D6:3F:B1:56:64:26:3F:7D:CF:9A:3E:7F:26:92:9B:FB:63:8F:CD:98:F1:57:B0:B7:AF:7D:36:F8:52:71:E0:73:38:6F:4A:B6:8F:B2:54:21:D0:CF:85:79:D8:94:A7:56:05:F7:D0:F8:D5:F9:2E:CD:9D:19:EA:CF:7C:D0:A4:66:1F:BB:F4:C2:36:1C:10:93:1C:14:FA:BD:EA:52:2E:76:51:F8:6B:6C:95:1E:57:B4:B5:0C:9B:35:09:37:2E:BF:18:AB:52:31:08:AC:37:32:CE:66:3A:1B:CF:EE:C0:B5:2A:D5:8B:33:32:29:61:6C:ED:B5:75:D7:69:0B:40:34:E8:4D:4F:51:EB:6B:17:2E:08:60:D6:0C:9F:3C:1D:AD:C8:D6:6B:5F:40:11:F5:EE:BA:14:7F:23:58:3F:0B:47:34:EB:F9:BD:AC:03:6A:FE:AD:CF:CE:12:85:AC:D3:6F:50:BA:FA:DA:75:66:7F:78:77:22:BE:4B:62:37:08:E5:2B:A1:2F:41:09:A2:5F:04:62:A9:D2:30:E7:4D:64:6F:15:7B:A6:25:E3:0F:68:7C:CF:34:9B:33:F9:EB:C2:6C:AB:88:D9:48:78:03:B6:7B:E6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132443Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.221) 0:00:24.807 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "0E:F6:12:1F:AC:4A:B7:72:EB:E7:D8:DB:4C:EE:28:34:E2:47:80:EC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7C:B4:54:36:BF:3E:5F:09:D3:15:C9:D0:CB:02:B2:A7:8A:1C:15:0B:57:4E:82:D6:3F:B1:56:64:26:3F:7D:CF:9A:3E:7F:26:92:9B:FB:63:8F:CD:98:F1:57:B0:B7:AF:7D:36:F8:52:71:E0:73:38:6F:4A:B6:8F:B2:54:21:D0:CF:85:79:D8:94:A7:56:05:F7:D0:F8:D5:F9:2E:CD:9D:19:EA:CF:7C:D0:A4:66:1F:BB:F4:C2:36:1C:10:93:1C:14:FA:BD:EA:52:2E:76:51:F8:6B:6C:95:1E:57:B4:B5:0C:9B:35:09:37:2E:BF:18:AB:52:31:08:AC:37:32:CE:66:3A:1B:CF:EE:C0:B5:2A:D5:8B:33:32:29:61:6C:ED:B5:75:D7:69:0B:40:34:E8:4D:4F:51:EB:6B:17:2E:08:60:D6:0C:9F:3C:1D:AD:C8:D6:6B:5F:40:11:F5:EE:BA:14:7F:23:58:3F:0B:47:34:EB:F9:BD:AC:03:6A:FE:AD:CF:CE:12:85:AC:D3:6F:50:BA:FA:DA:75:66:7F:78:77:22:BE:4B:62:37:08:E5:2B:A1:2F:41:09:A2:5F:04:62:A9:D2:30:E7:4D:64:6F:15:7B:A6:25:E3:0F:68:7C:CF:34:9B:33:F9:EB:C2:6C:AB:88:D9:48:78:03:B6:7B:E6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132443Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 13:24:45 +0000 (0:00:00.019) 0:00:24.826 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.020) 0:00:24.847 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.020) 0:00:24.867 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.019) 0:00:24.887 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.022) 0:00:24.910 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.021) 0:00:24.932 ********* 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.063104", "end": "2024-06-08 13:24:46.281883", "rc": 0, "start": "2024-06-08 13:24:46.218779" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.202) 0:00:25.134 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.020) 0:00:25.155 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.007) 0:00:25.163 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.017) 0:00:25.180 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.017) 0:00:25.197 ********* 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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.382) 0:00:25.580 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.017) 0:00:25.597 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853084.1769464, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2ddd3fd6a6542d9e862e05323d7e24f7e825a4c6", "ctime": 1717853084.1719463, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169880, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717853084.1719463, "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": "18446744072094840390", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.163) 0:00:25.760 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.019) 0:00:25.780 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.021) 0:00:25.802 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 13:24:46 +0000 (0:00:00.019) 0:00:25.821 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717853084.1259472, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d382a26d7c74d6094e50a85ca0b9de9fb4d8af14", "ctime": 1717853084.1719463, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169879, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717853084.1719463, "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": "18446744072094840377", "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-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.153) 0:00:25.975 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.020) 0:00:25.995 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.022) 0:00:26.018 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "A3:42:B8:8B:ED:AD:FE:DA:EC:B2:FF:1D:63:C8:89:EB:A1:97:B9:EA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "92:F8:A2:94:6E:6A:48:D5:08:F7:D7:7A:65:73:93:E2:43:FF:E9:5F:E7:43:09:68:FD:BE:19:91:3E:DC:09:E2:B6:4B:A0:96:B5:44:3D:EC:C5:D1:6D:C6:9D:55:DF:FA:B4:A7:18:F4:9B:26:E8:F0:91:C3:CD:31:67:BA:73:1A:4F:75:6A:9E:20:13:4A:3C:4A:0C:88:51:7A:28:D4:23:82:06:D8:EB:D6:7D:6E:76:34:16:4C:E2:E6:DD:06:A9:A1:92:1C:53:DF:FD:FA:5E:C0:3A:B9:E1:58:AA:AC:69:CA:C1:1D:28:DE:F7:07:51:D6:2B:62:52:09:52:58:10:AA:EB:DA:BE:1E:DB:5B:2E:B0:73:6C:EF:44:7C:ED:A2:1C:F6:23:8F:2B:F7:FC:52:29:CC:0B:D2:B2:A2:D4:E2:07:6E:2D:16:B7:C7:D5:E5:5F:19:6C:A5:2B:85:91:5D:B6:1D:33:B9:AA:23:D9:5F:C2:EB:70:86:A6:65:30:57:5F:4E:57:ED:20:9A:8E:3B:4B:87:C6:DD:86:F6:B7:1E:38:58:F2:D1:FB:87:B3:0B:A9:E5:58:C2:94:3C:2C:E7:C9:21:64:C2:94:00:20:57:BB:B3:87:BE:73:1B:BA:8A:28:D9:EC:F6:4A:60:06:A5:8E:72:C1:EB:04:BB:2D:FC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132444Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.221) 0:00:26.239 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "3E:2C:6D:92:F5:74:FA:A8:66:C5:55:47:37:EF:10:46:2E:BE:53:B1" }, "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": "A3:42:B8:8B:ED:AD:FE:DA:EC:B2:FF:1D:63:C8:89:EB:A1:97:B9:EA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "92:F8:A2:94:6E:6A:48:D5:08:F7:D7:7A:65:73:93:E2:43:FF:E9:5F:E7:43:09:68:FD:BE:19:91:3E:DC:09:E2:B6:4B:A0:96:B5:44:3D:EC:C5:D1:6D:C6:9D:55:DF:FA:B4:A7:18:F4:9B:26:E8:F0:91:C3:CD:31:67:BA:73:1A:4F:75:6A:9E:20:13:4A:3C:4A:0C:88:51:7A:28:D4:23:82:06:D8:EB:D6:7D:6E:76:34:16:4C:E2:E6:DD:06:A9:A1:92:1C:53:DF:FD:FA:5E:C0:3A:B9:E1:58:AA:AC:69:CA:C1:1D:28:DE:F7:07:51:D6:2B:62:52:09:52:58:10:AA:EB:DA:BE:1E:DB:5B:2E:B0:73:6C:EF:44:7C:ED:A2:1C:F6:23:8F:2B:F7:FC:52:29:CC:0B:D2:B2:A2:D4:E2:07:6E:2D:16:B7:C7:D5:E5:5F:19:6C:A5:2B:85:91:5D:B6:1D:33:B9:AA:23:D9:5F:C2:EB:70:86:A6:65:30:57:5F:4E:57:ED:20:9A:8E:3B:4B:87:C6:DD:86:F6:B7:1E:38:58:F2:D1:FB:87:B3:0B:A9:E5:58:C2:94:3C:2C:E7:C9:21:64:C2:94:00:20:57:BB:B3:87:BE:73:1B:BA:8A:28:D9:EC:F6:4A:60:06:A5:8E:72:C1:EB:04:BB:2D:FC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608132435Z", "not_valid_before": "20240608132444Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.019) 0:00:26.259 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.019) 0:00:26.278 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.019) 0:00:26.298 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.019) 0:00:26.317 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.022) 0:00:26.340 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.022) 0:00:26.363 ********* 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.060589", "end": "2024-06-08 13:24:47.713965", "rc": 0, "start": "2024-06-08 13:24:47.653376" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 13:24:47 +0000 (0:00:00.202) 0:00:26.566 ********* 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 08 June 2024 13:24:47 +0000 (0:00:00.018) 0:00:26.585 ********* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 7.23s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 3.62s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.62s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.27s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.97s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.89s /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.54s /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:14 -------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.49s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.44s /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.42s /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:32 -------------------- Parse certificate ------------------------------------------------------- 0.41s /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:92 Ensure python3 is installed --------------------------------------------- 0.41s /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Ensure user exists ------------------------------------------------------ 0.41s /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:5 --------------------- Gathering Facts --------------------------------------------------------- 0.40s /WORKDIR/git-weekly-cixwbamh19/tests/tests_fs_attrs.yml:67 -------------------- linux-system-roles.certificate : Ensure provider packages are installed --- 0.39s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:18 Retrieve auto-renew flag ------------------------------------------------ 0.26s /WORKDIR/git-weekly-cixwbamh19/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure provider service is running ----- 0.24s /WORKDIR/git-weekly-cixwbamh19/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---