# 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-cio046baqc/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:2 Saturday 06 January 2024 13:10:08 +0000 (0:00:00.012) 0:00:00.012 ****** ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:5 Saturday 06 January 2024 13:10:08 +0000 (0:00:00.515) 0:00:00.527 ****** 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-cio046baqc/tests/tests_fs_attrs.yml:9 Saturday 06 January 2024 13:10:09 +0000 (0:00:00.300) 0:00:00.828 ****** 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-cio046baqc/tests/tests_fs_attrs.yml:14 Saturday 06 January 2024 13:10:09 +0000 (0:00:00.217) 0:00:01.045 ****** ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 06 January 2024 13:10:09 +0000 (0:00:00.372) 0:00:01.418 ****** included: /WORKDIR/git-weekly-cio046baqc/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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 06 January 2024 13:10:09 +0000 (0:00:00.011) 0:00:01.429 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 06 January 2024 13:10:09 +0000 (0:00:00.019) 0:00:01.449 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 06 January 2024 13:10:10 +0000 (0:00:00.190) 0:00:01.639 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 06 January 2024 13:10:10 +0000 (0:00:00.031) 0:00:01.671 ****** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=RedHat_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-cio046baqc/tests/roles/linux-system-roles.certificate/vars/RedHat_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml" } skipping: [sut] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 06 January 2024 13:10:10 +0000 (0:00:00.046) 0:00:01.717 ****** 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: search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 rhel-Server 503 k\n python2-pyasn1 noarch 0.1.9-7.el7 rhel-Server 100 k\nInstalling for dependencies:\n python-cffi x86_64 1.6.0-5.el7 rhel-Server 218 k\n python-enum34 noarch 1.0.4-1.el7 rhel-Server 52 k\n python-idna noarch 2.4-1.el7 rhel-Server 94 k\n python-ply noarch 3.4-11.el7 rhel-Server 123 k\n python-pycparser noarch 2.14-1.el7 rhel-Server 105 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+5 Dependent packages)\n\nTotal download size: 1.2 M\nInstalled size: 6.1 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 1.2 MB/s | 1.2 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/7 \n Installing : python-enum34-1.0.4-1.el7.noarch 2/7 \n Installing : python-ply-3.4-11.el7.noarch 3/7 \n Installing : python-pycparser-2.14-1.el7.noarch 4/7 \n Installing : python-cffi-1.6.0-5.el7.x86_64 5/7 \n Installing : python-idna-2.4-1.el7.noarch 6/7 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n Verifying : python-idna-2.4-1.el7.noarch 1/7 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/7 \n Verifying : python-ply-3.4-11.el7.noarch 3/7 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/7 \n Verifying : python-enum34-1.0.4-1.el7.noarch 5/7 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 6/7 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-enum34.noarch 0:1.0.4-1.el7 \n python-idna.noarch 0:2.4-1.el7 python-ply.noarch 0:3.4-11.el7 \n python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 06 January 2024 13:10:14 +0000 (0:00:04.093) 0:00:05.811 ****** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "changes": { "installed": [ "certmonger" ] }, "rc": 0, "results": [ "Loaded plugins: search-disabled-repos\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 rhel-Server 608 k\nInstalling for dependencies:\n libtalloc x86_64 2.1.16-1.el7 rhel-Server 33 k\n libtevent x86_64 0.9.39-1.el7 rhel-Server 41 k\n xmlrpc-c x86_64 1.32.5-1905.svn2451.el7 rhel-Server 130 k\n xmlrpc-c-client x86_64 1.32.5-1905.svn2451.el7 rhel-Server 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 1.0 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 06 January 2024 13:10:17 +0000 (0:00:03.140) 0:00:08.952 ****** 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 06 January 2024 13:10:17 +0000 (0:00:00.242) 0:00:09.195 ****** 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 06 January 2024 13:10:17 +0000 (0:00:00.173) 0:00:09.368 ****** 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": "dbus.service network.target syslog.target systemd-journald.socket basic.target system.slice", "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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 06 January 2024 13:10:18 +0000 (0:00:00.558) 0:00:09.927 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 06 January 2024 13:10:19 +0000 (0:00:01.156) 0:00:11.083 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 06 January 2024 13:10:19 +0000 (0:00:00.031) 0:00:11.114 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 06 January 2024 13:10:19 +0000 (0:00:00.018) 0:00:11.133 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 06 January 2024 13:10:19 +0000 (0:00:00.021) 0:00:11.154 ****** 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-cio046baqc/tests/tests_fs_attrs.yml:32 Saturday 06 January 2024 13:10:19 +0000 (0:00:00.021) 0:00:11.176 ****** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:61 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.403) 0:00:11.580 ****** included: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.035) 0:00:11.616 ****** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.009) 0:00:11.625 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.019) 0:00:11.645 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.018) 0:00:11.664 ****** 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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.352) 0:00:12.016 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.017) 0:00:12.034 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546618.82768, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b1444863313da1181ce44ab17c10e9c70f6ec1b3", "ctime": 1704546618.8686774, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4465963, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1704546618.8246803, "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": "18446744073498980872", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.141) 0:00:12.175 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.021) 0:00:12.197 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.022) 0:00:12.219 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.021) 0:00:12.241 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546618.779683, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "dc90f5f08201ec39bec3496defca734df3fc096e", "ctime": 1704546618.8696773, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4465962, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1704546618.8246803, "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": "18446744071865951857", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.142) 0:00:12.383 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.020) 0:00:12.403 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 January 2024 13:10:20 +0000 (0:00:00.023) 0:00:12.427 ****** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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": "A2:C0:DA:9C:0E:7F:7D:67:76:28:0D:39:3F:83:6C:01:F9:22:AE:6D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2F:75:7C:8A:09:53:5E:8F:DA:D0:7E:CD:E7:E1:36:45:F4:67:D2:FC:86:01:E0:27:DF:EF:8F:9A:AD:4F:39:9C:47:8E:3B:9E:D6:26:4F:59:88:E4:26:B0:C9:6D:52:00:67:05:FD:9C:15:0C:13:F1:5C:4E:79:C1:8C:D3:D2:1B:B2:18:24:D0:72:73:E8:FE:2E:94:3D:7A:11:30:51:AC:36:DB:9B:78:4A:27:30:34:12:B4:67:D4:49:D5:36:42:5C:A5:4E:82:E7:AB:A6:6B:83:5F:96:2D:13:77:93:8A:25:83:88:AF:5F:9B:18:7B:AB:75:B8:6D:00:2C:D7:C0:BC:B8:61:EE:5F:BF:06:80:3C:0E:95:CC:C4:AF:8B:64:1A:28:19:DF:1C:9D:AC:AE:26:72:7E:BF:00:BB:ED:25:99:AF:71:71:29:67:99:B8:66:68:4F:E4:E8:8C:46:5F:0E:2B:71:55:FA:6D:C1:AE:A8:3C:77:62:C1:30:34:FF:3F:70:7D:1A:11:D7:7A:FE:E6:16:8A:E3:19:E0:9F:73:1E:97:C6:A9:C5:D1:9F:46:CD:8C:27:46:74:FC:F8:A5:67:97:85:8F:F7:D5:6E:E5:44:C2:C1:F2:E6:67:3E:BB:E1:F7:43:45:E8:EE:D6:E1:A9:BA:D7:C2:3F:27:5C:38" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131018Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.327) 0:00:12.755 ****** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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": "A2:C0:DA:9C:0E:7F:7D:67:76:28:0D:39:3F:83:6C:01:F9:22:AE:6D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2F:75:7C:8A:09:53:5E:8F:DA:D0:7E:CD:E7:E1:36:45:F4:67:D2:FC:86:01:E0:27:DF:EF:8F:9A:AD:4F:39:9C:47:8E:3B:9E:D6:26:4F:59:88:E4:26:B0:C9:6D:52:00:67:05:FD:9C:15:0C:13:F1:5C:4E:79:C1:8C:D3:D2:1B:B2:18:24:D0:72:73:E8:FE:2E:94:3D:7A:11:30:51:AC:36:DB:9B:78:4A:27:30:34:12:B4:67:D4:49:D5:36:42:5C:A5:4E:82:E7:AB:A6:6B:83:5F:96:2D:13:77:93:8A:25:83:88:AF:5F:9B:18:7B:AB:75:B8:6D:00:2C:D7:C0:BC:B8:61:EE:5F:BF:06:80:3C:0E:95:CC:C4:AF:8B:64:1A:28:19:DF:1C:9D:AC:AE:26:72:7E:BF:00:BB:ED:25:99:AF:71:71:29:67:99:B8:66:68:4F:E4:E8:8C:46:5F:0E:2B:71:55:FA:6D:C1:AE:A8:3C:77:62:C1:30:34:FF:3F:70:7D:1A:11:D7:7A:FE:E6:16:8A:E3:19:E0:9F:73:1E:97:C6:A9:C5:D1:9F:46:CD:8C:27:46:74:FC:F8:A5:67:97:85:8F:F7:D5:6E:E5:44:C2:C1:F2:E6:67:3E:BB:E1:F7:43:45:E8:EE:D6:E1:A9:BA:D7:C2:3F:27:5C:38" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131018Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.020) 0:00:12.776 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.021) 0:00:12.798 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.026) 0:00:12.824 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.021) 0:00:12.845 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.024) 0:00:12.870 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.024) 0:00:12.894 ****** 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.049730", "end": "2024-01-06 13:10:21.586748", "rc": 0, "start": "2024-01-06 13:10:21.537018" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.265) 0:00:13.159 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.022) 0:00:13.182 ****** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.008) 0:00:13.191 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.017) 0:00:13.209 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 January 2024 13:10:21 +0000 (0:00:00.019) 0:00:13.228 ****** 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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.350) 0:00:13.579 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.019) 0:00:13.598 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546619.4056437, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "75eb1be9b87d9031dd4ec9e148d02200907d6074", "ctime": 1704546619.5076373, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 4465965, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1704546619.402644, "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": "827120716", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.147) 0:00:13.746 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.021) 0:00:13.767 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.024) 0:00:13.791 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.020) 0:00:13.812 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546619.3616464, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f0c62308727d6d7d95574b015ffeca04fc479e14", "ctime": 1704546619.5076373, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 4465964, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1704546619.402644, "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": "1262117706", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.143) 0:00:13.956 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.021) 0:00:13.977 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.024) 0:00:14.001 ****** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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": "12:42:1A:1A:70:C9:04:5E:87:A8:F4:8A:E3:AA:A5:83:29:26:3F:74" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "27:D8:68:9A:7C:F4:FE:CF:9F:8E:03:A3:2B:37:E3:2D:9E:39:FA:F9:31:13:C3:6F:36:9B:F9:FE:3B:7F:86:33:3B:67:32:A8:AC:BD:24:E8:69:54:7C:97:4D:80:7F:9F:4E:04:D9:68:F5:EE:48:D1:F1:47:16:BA:A1:79:24:2E:63:CC:BB:4A:2B:B9:5B:E6:87:63:EC:62:60:9D:DB:DD:18:51:B7:53:4C:76:59:66:0A:B8:13:48:92:B1:5F:B4:C8:50:8A:1A:CA:EC:A0:19:81:98:FB:43:A1:BC:D7:20:A4:81:EC:D8:43:6A:17:59:CB:12:73:0A:D4:EC:B5:AA:24:21:BC:CC:CD:68:F1:AA:25:3B:FA:35:2C:3B:81:AD:CA:AF:49:BD:B5:1C:49:07:62:C2:22:E5:0E:E2:85:86:1D:AE:D2:73:AF:B8:56:D7:31:0B:75:C9:0A:11:A6:1B:0E:10:DB:5A:65:11:D6:9C:F1:15:8C:17:7B:75:57:5A:DB:89:3C:0D:91:D4:5A:57:EB:E7:AC:70:8F:CF:1F:14:7A:3B:DE:00:89:E6:A3:48:34:53:4A:1A:24:FF:31:AC:C4:64:C1:EA:A5:43:DC:CD:7C:D4:82:66:19:4D:8D:25:1A:F4:70:4F:CA:10:71:03:83:20:3E:3A:4F:04:51:9D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131019Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.205) 0:00:14.207 ****** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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": "12:42:1A:1A:70:C9:04:5E:87:A8:F4:8A:E3:AA:A5:83:29:26:3F:74" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "27:D8:68:9A:7C:F4:FE:CF:9F:8E:03:A3:2B:37:E3:2D:9E:39:FA:F9:31:13:C3:6F:36:9B:F9:FE:3B:7F:86:33:3B:67:32:A8:AC:BD:24:E8:69:54:7C:97:4D:80:7F:9F:4E:04:D9:68:F5:EE:48:D1:F1:47:16:BA:A1:79:24:2E:63:CC:BB:4A:2B:B9:5B:E6:87:63:EC:62:60:9D:DB:DD:18:51:B7:53:4C:76:59:66:0A:B8:13:48:92:B1:5F:B4:C8:50:8A:1A:CA:EC:A0:19:81:98:FB:43:A1:BC:D7:20:A4:81:EC:D8:43:6A:17:59:CB:12:73:0A:D4:EC:B5:AA:24:21:BC:CC:CD:68:F1:AA:25:3B:FA:35:2C:3B:81:AD:CA:AF:49:BD:B5:1C:49:07:62:C2:22:E5:0E:E2:85:86:1D:AE:D2:73:AF:B8:56:D7:31:0B:75:C9:0A:11:A6:1B:0E:10:DB:5A:65:11:D6:9C:F1:15:8C:17:7B:75:57:5A:DB:89:3C:0D:91:D4:5A:57:EB:E7:AC:70:8F:CF:1F:14:7A:3B:DE:00:89:E6:A3:48:34:53:4A:1A:24:FF:31:AC:C4:64:C1:EA:A5:43:DC:CD:7C:D4:82:66:19:4D:8D:25:1A:F4:70:4F:CA:10:71:03:83:20:3E:3A:4F:04:51:9D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131019Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.020) 0:00:14.227 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.021) 0:00:14.249 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.021) 0:00:14.270 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.022) 0:00:14.292 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.025) 0:00:14.317 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.025) 0:00:14.343 ****** 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.050312", "end": "2024-01-06 13:10:22.956465", "rc": 0, "start": "2024-01-06 13:10:22.906153" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.179) 0:00:14.523 ****** 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-cio046baqc/tests/tests_fs_attrs.yml:67 Saturday 06 January 2024 13:10:22 +0000 (0:00:00.027) 0:00:14.550 ****** ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 06 January 2024 13:10:23 +0000 (0:00:00.412) 0:00:14.962 ****** included: /WORKDIR/git-weekly-cio046baqc/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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 06 January 2024 13:10:23 +0000 (0:00:00.012) 0:00:14.975 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 06 January 2024 13:10:23 +0000 (0:00:00.018) 0:00:14.993 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 06 January 2024 13:10:23 +0000 (0:00:00.018) 0:00:15.012 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 06 January 2024 13:10:23 +0000 (0:00:00.019) 0:00:15.031 ****** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=RedHat_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-cio046baqc/tests/roles/linux-system-roles.certificate/vars/RedHat_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_7.yml" } skipping: [sut] => (item=RedHat_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 06 January 2024 13:10:23 +0000 (0:00:00.033) 0:00:15.065 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 06 January 2024 13:10:24 +0000 (0:00:00.730) 0:00:15.796 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 06 January 2024 13:10:24 +0000 (0:00:00.359) 0:00:16.155 ****** 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 06 January 2024 13:10:24 +0000 (0:00:00.149) 0:00:16.305 ****** 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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 06 January 2024 13:10:24 +0000 (0:00:00.145) 0:00:16.451 ****** ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-01-06 13:10:18 UTC", "ActiveEnterTimestampMonotonic": "431516205", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target network.target basic.target system.slice dbus.service systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-01-06 13:10:18 UTC", "AssertTimestampMonotonic": "431473730", "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-01-06 13:10:18 UTC", "ConditionTimestampMonotonic": "431473728", "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": "4937", "ExecMainStartTimestamp": "Sat 2024-01-06 13:10:18 UTC", "ExecMainStartTimestampMonotonic": "431481715", "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-01-06 13:10:18 UTC] ; stop_time=[n/a] ; pid=4937 ; 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-01-06 13:10:18 UTC", "InactiveExitTimestampMonotonic": "431481761", "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": "4937", "MemoryAccounting": "no", "MemoryCurrent": "1802240", "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": "1", "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-01-06 13:10:18 UTC", "WatchdogTimestampMonotonic": "431516166", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 06 January 2024 13:10:25 +0000 (0:00:00.219) 0:00:16.670 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 06 January 2024 13:10:26 +0000 (0:00:01.188) 0:00:17.859 ****** 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-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.034) 0:00:17.893 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.018) 0:00:17.912 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.018) 0:00:17.930 ****** 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-cio046baqc/tests/tests_fs_attrs.yml:85 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.022) 0:00:17.953 ****** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:112 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.364) 0:00:18.318 ****** included: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.032) 0:00:18.350 ****** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.008) 0:00:18.359 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.018) 0:00:18.378 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 January 2024 13:10:26 +0000 (0:00:00.019) 0:00:18.397 ****** 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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.353) 0:00:18.751 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.018) 0:00:18.770 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546625.597253, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e3fdbebbc01c64d7524260bc5bfcf32c6a72b291", "ctime": 1704546625.6352508, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4465967, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1704546625.5942533, "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": "332007438", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.140) 0:00:18.910 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.021) 0:00:18.931 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.024) 0:00:18.955 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.021) 0:00:18.977 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546625.553256, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f2eaa71d7346b98765c0e61af6aa55be293ea698", "ctime": 1704546625.6362507, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4465966, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1704546625.5942533, "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": "18446744072460950762", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.144) 0:00:19.121 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.025) 0:00:19.146 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.024) 0:00:19.171 ****** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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": "C8:92:97:22:87:59:F6:1B:4E:36:C9:B1:E9:9F:A5:15:41:B8:C7:B6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C4:73:E0:9E:8B:F2:27:1F:DA:7E:8F:54:D3:71:B5:02:C9:9F:2D:AF:A6:95:C3:71:34:82:4C:64:00:01:05:8A:09:76:AE:4A:21:0D:06:6E:6B:89:2A:17:63:2B:CD:21:29:E7:68:8D:E7:F7:2D:22:9B:3E:A4:59:6A:14:6B:99:C2:63:3B:C2:6B:DB:9F:FF:8A:EB:EA:CB:5D:E8:AE:3C:7D:73:85:41:CB:AD:2E:A3:36:2D:10:D3:00:32:8B:B1:7E:30:EE:23:4C:2D:A8:79:68:6A:0B:E4:22:2B:A3:94:75:67:A7:4A:8B:80:01:BC:B2:EB:63:A2:5C:84:B3:84:BD:FB:05:0F:DE:7D:AD:75:E5:01:48:96:31:D8:E2:3E:DA:E3:DB:00:57:46:0D:4B:21:D1:DB:62:9B:36:41:9F:2E:C4:C6:08:CB:E1:52:81:60:C2:94:52:7E:64:95:E6:31:26:4E:27:0A:E4:85:5D:9A:12:6F:A4:8E:CB:4A:93:C9:28:F2:B1:5A:3F:28:81:3C:AB:62:1D:F3:0C:77:7C:66:69:FD:FF:5E:9A:7B:CB:FC:56:B3:25:9A:54:FF:F3:0D:25:80:AC:74:D1:EE:B2:5F:94:A9:D0:CB:AE:DE:93:5F:BD:A0:7A:AF:49:68:85:E2:00:D1:46:B3:4A:E7:72" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131025Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.206) 0:00:19.378 ****** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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": "C8:92:97:22:87:59:F6:1B:4E:36:C9:B1:E9:9F:A5:15:41:B8:C7:B6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C4:73:E0:9E:8B:F2:27:1F:DA:7E:8F:54:D3:71:B5:02:C9:9F:2D:AF:A6:95:C3:71:34:82:4C:64:00:01:05:8A:09:76:AE:4A:21:0D:06:6E:6B:89:2A:17:63:2B:CD:21:29:E7:68:8D:E7:F7:2D:22:9B:3E:A4:59:6A:14:6B:99:C2:63:3B:C2:6B:DB:9F:FF:8A:EB:EA:CB:5D:E8:AE:3C:7D:73:85:41:CB:AD:2E:A3:36:2D:10:D3:00:32:8B:B1:7E:30:EE:23:4C:2D:A8:79:68:6A:0B:E4:22:2B:A3:94:75:67:A7:4A:8B:80:01:BC:B2:EB:63:A2:5C:84:B3:84:BD:FB:05:0F:DE:7D:AD:75:E5:01:48:96:31:D8:E2:3E:DA:E3:DB:00:57:46:0D:4B:21:D1:DB:62:9B:36:41:9F:2E:C4:C6:08:CB:E1:52:81:60:C2:94:52:7E:64:95:E6:31:26:4E:27:0A:E4:85:5D:9A:12:6F:A4:8E:CB:4A:93:C9:28:F2:B1:5A:3F:28:81:3C:AB:62:1D:F3:0C:77:7C:66:69:FD:FF:5E:9A:7B:CB:FC:56:B3:25:9A:54:FF:F3:0D:25:80:AC:74:D1:EE:B2:5F:94:A9:D0:CB:AE:DE:93:5F:BD:A0:7A:AF:49:68:85:E2:00:D1:46:B3:4A:E7:72" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131025Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.020) 0:00:19.398 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.022) 0:00:19.420 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.019) 0:00:19.440 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.021) 0:00:19.462 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.024) 0:00:19.486 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 January 2024 13:10:27 +0000 (0:00:00.023) 0:00:19.509 ****** 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.055108", "end": "2024-01-06 13:10:28.129336", "rc": 0, "start": "2024-01-06 13:10:28.074228" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.185) 0:00:19.695 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:2 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.022) 0:00:19.717 ****** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:9 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.008) 0:00:19.726 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:14 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.017) 0:00:19.743 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.018) 0:00:19.761 ****** 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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:29 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.351) 0:00:20.112 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:40 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.018) 0:00:20.131 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546626.1432188, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8e74db5f45c0ab233f7874d0f217266c9c7803ce", "ctime": 1704546626.140219, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4465969, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1704546626.140219, "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": "18446744072624207705", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:45 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.145) 0:00:20.277 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:51 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.021) 0:00:20.299 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:63 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.023) 0:00:20.322 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:69 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.020) 0:00:20.343 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704546626.0992215, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9bf5e31ae43db7bb665ca7477a50996288bcec19", "ctime": 1704546626.140219, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4465968, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1704546626.140219, "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": "1580055426", "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-cio046baqc/tests/tasks/assert_certificate_parameters.yml:74 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.140) 0:00:20.484 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:80 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.020) 0:00:20.505 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:92 Saturday 06 January 2024 13:10:28 +0000 (0:00:00.024) 0:00:20.529 ****** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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:C6:7C:33:6B:BF:CC:4E:AE:66:60:12:52:E4:95:3C:81:E7:15:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "24:74:C6:44:03:54:9E:1B:37:3D:15:42:91:78:8A:0C:BA:89:D9:FA:EA:1B:3E:A2:C9:94:13:2D:46:75:3A:B2:25:08:23:4C:C4:CC:AE:49:07:55:31:C1:37:D3:35:0C:60:9C:E3:FA:FC:67:99:9B:70:2C:98:4A:B6:3D:FF:59:5F:27:C9:4E:5A:80:B7:33:BD:55:A4:D1:08:4A:11:5C:63:C1:FD:F8:1B:62:9F:D3:E7:4D:5B:45:F7:DC:33:90:4C:BA:FB:03:FA:87:B6:7E:61:3D:1D:36:34:92:E5:7B:B9:C2:A7:34:7A:E9:3D:9C:93:86:17:AB:1C:8B:F1:51:03:4C:E3:16:F3:0B:B2:F1:AA:C0:52:1C:60:7F:64:30:DC:68:80:3B:25:B2:D6:3F:63:DF:B0:08:67:BA:B7:8F:68:B3:3F:5F:63:A6:EF:61:01:D9:AA:B9:9A:68:77:33:3C:E9:73:E3:CB:29:52:12:D6:62:23:DB:44:D9:51:5D:C0:62:6A:AB:42:EC:88:BE:CF:8C:F9:46:51:F1:C3:91:24:4D:B1:95:08:FA:8B:DC:9B:BF:FC:3E:B2:4C:C2:CC:E0:40:01:F3:C4:8B:7B:F8:B3:FD:3B:C8:E3:DE:B0:88:CA:8D:08:E1:77:31:0A:90:B6:54:CB:6D:D1:9A:5C:1C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131026Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:98 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.206) 0:00:20.736 ****** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "03:50:71:C9:AB:0E:32:A8:3A:A2:E9:56:E5:38:A5:94:9E:CA:71:0A" }, "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:C6:7C:33:6B:BF:CC:4E:AE:66:60:12:52:E4:95:3C:81:E7:15:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "24:74:C6:44:03:54:9E:1B:37:3D:15:42:91:78:8A:0C:BA:89:D9:FA:EA:1B:3E:A2:C9:94:13:2D:46:75:3A:B2:25:08:23:4C:C4:CC:AE:49:07:55:31:C1:37:D3:35:0C:60:9C:E3:FA:FC:67:99:9B:70:2C:98:4A:B6:3D:FF:59:5F:27:C9:4E:5A:80:B7:33:BD:55:A4:D1:08:4A:11:5C:63:C1:FD:F8:1B:62:9F:D3:E7:4D:5B:45:F7:DC:33:90:4C:BA:FB:03:FA:87:B6:7E:61:3D:1D:36:34:92:E5:7B:B9:C2:A7:34:7A:E9:3D:9C:93:86:17:AB:1C:8B:F1:51:03:4C:E3:16:F3:0B:B2:F1:AA:C0:52:1C:60:7F:64:30:DC:68:80:3B:25:B2:D6:3F:63:DF:B0:08:67:BA:B7:8F:68:B3:3F:5F:63:A6:EF:61:01:D9:AA:B9:9A:68:77:33:3C:E9:73:E3:CB:29:52:12:D6:62:23:DB:44:D9:51:5D:C0:62:6A:AB:42:EC:88:BE:CF:8C:F9:46:51:F1:C3:91:24:4D:B1:95:08:FA:8B:DC:9B:BF:FC:3E:B2:4C:C2:CC:E0:40:01:F3:C4:8B:7B:F8:B3:FD:3B:C8:E3:DE:B0:88:CA:8D:08:E1:77:31:0A:90:B6:54:CB:6D:D1:9A:5C:1C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250106131018Z", "not_valid_before": "20240106131026Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:102 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.020) 0:00:20.757 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:111 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.023) 0:00:20.780 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:120 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.023) 0:00:20.804 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:127 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.021) 0:00:20.826 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:138 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.027) 0:00:20.853 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:151 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.028) 0:00:20.882 ****** 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.055970", "end": "2024-01-06 13:10:29.508580", "rc": 0, "start": "2024-01-06 13:10:29.452610" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:160 Saturday 06 January 2024 13:10:29 +0000 (0:00:00.191) 0:00:21.074 ****** 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 06 January 2024 13:10:29 +0000 (0:00:00.019) 0:00:21.093 ****** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 4.09s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 3.14s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.19s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.16s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.73s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider service is running ----- 0.56s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.52s /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.41s /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.40s /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.37s /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.36s /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:85 -------------------- linux-system-roles.certificate : Ensure provider packages are installed --- 0.36s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:18 Parse certificate ------------------------------------------------------- 0.33s /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:92 Ensure user exists ------------------------------------------------------ 0.30s /WORKDIR/git-weekly-cio046baqc/tests/tests_fs_attrs.yml:5 --------------------- Retrieve auto-renew flag ------------------------------------------------ 0.27s /WORKDIR/git-weekly-cio046baqc/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.24s /WORKDIR/git-weekly-cio046baqc/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---