# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-cinfoj085r/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:2 Saturday 01 June 2024 13:15:17 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:5 Saturday 01 June 2024 13:15:18 +0000 (0:00:00.916) 0:00:00.928 ********* 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-cinfoj085r/tests/tests_fs_attrs.yml:9 Saturday 01 June 2024 13:15:18 +0000 (0:00:00.374) 0:00:01.302 ********* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:14 Saturday 01 June 2024 13:15:18 +0000 (0:00:00.217) 0:00:01.520 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 01 June 2024 13:15:19 +0000 (0:00:00.531) 0:00:02.051 ********* included: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 01 June 2024 13:15:19 +0000 (0:00:00.013) 0:00:02.065 ********* skipping: [sut] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 01 June 2024 13:15:19 +0000 (0:00:00.019) 0:00:02.084 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 01 June 2024 13:15:19 +0000 (0:00:00.183) 0:00:02.268 ********* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 01 June 2024 13:15:19 +0000 (0:00:00.016) 0:00:02.284 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 01 June 2024 13:15:19 +0000 (0:00:00.024) 0:00:02.309 ********* changed: [sut] => { "changed": true, "changes": { "installed": [ "python-pyasn1", "python-cryptography" ] }, "rc": 0, "results": [ "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed", "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 base 502 k\n python2-pyasn1 noarch 0.1.9-7.el7 base 100 k\nInstalling for dependencies:\n python-cffi x86_64 1.6.0-5.el7 base 218 k\n python-idna noarch 2.4-1.el7 base 94 k\n python-ply noarch 3.4-11.el7 base 123 k\n python-pycparser noarch 2.14-1.el7 base 104 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 5.8 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 3.7 MB/s | 1.1 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/6 \n Installing : python-ply-3.4-11.el7.noarch 2/6 \n Installing : python-pycparser-2.14-1.el7.noarch 3/6 \n Installing : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Installing : python-idna-2.4-1.el7.noarch 5/6 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n Verifying : python-idna-2.4-1.el7.noarch 1/6 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/6 \n Verifying : python-ply-3.4-11.el7.noarch 3/6 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 5/6 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-idna.noarch 0:2.4-1.el7 \n python-ply.noarch 0:3.4-11.el7 python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 01 June 2024 13:15:25 +0000 (0:00:06.251) 0:00:08.561 ********* 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 [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 01 June 2024 13:15:29 +0000 (0:00:03.351) 0:00:11.913 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 01 June 2024 13:15:29 +0000 (0:00:00.214) 0:00:12.127 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 01 June 2024 13:15:29 +0000 (0:00:00.148) 0:00:12.276 ********* 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 system.slice syslog.target basic.target network.target systemd-journald.socket", "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 [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 01 June 2024 13:15:30 +0000 (0:00:00.505) 0:00:12.781 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 01 June 2024 13:15:31 +0000 (0:00:01.316) 0:00:14.098 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.030) 0:00:14.129 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.017) 0:00:14.146 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.018) 0:00:14.165 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:32 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.029) 0:00:14.194 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:61 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.500) 0:00:14.694 ********* included: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.022) 0:00:14.717 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.008) 0:00:14.726 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:15:31 +0000 (0:00:00.011) 0:00:14.737 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.011) 0:00:14.749 ********* 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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.354) 0:00:15.103 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.009) 0:00:15.113 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247730.6717358, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e017902277d4885172f15d46c64ee7246a934307", "ctime": 1717247730.7257335, "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": 1717247730.6677358, "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": "18446744071589764749", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.134) 0:00:15.247 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.012) 0:00:15.260 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.021) 0:00:15.282 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.019) 0:00:15.301 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247730.6227376, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "159d493036f446867fc2bb38c7196b8349eb908e", "ctime": 1717247730.7257335, "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": 1717247730.6677358, "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": "18446744071589764736", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.133) 0:00:15.435 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.011) 0:00:15.446 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:15:32 +0000 (0:00:00.022) 0:00:15.468 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "ED:00:97:EB:E9:D6:66:6D:50:43:14:B0:F5:EF:78:55:9D:F3:87:9A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "57:24:98:43:3F:21:6B:70:26:9F:BF:6E:33:31:2A:D0:F9:05:37:C0:66:5A:52:81:8D:31:2D:44:2A:D3:4E:05:21:EA:F8:09:A4:F1:47:48:E3:3B:E1:74:9B:DF:64:1F:D5:3B:43:94:FE:1F:47:9C:D6:45:47:23:4C:B8:97:79:16:06:F0:6C:79:9F:0E:78:46:DA:97:26:15:AB:56:55:02:75:A6:C2:24:81:4D:01:87:AA:E2:1A:0C:0C:32:83:A4:11:C4:C0:E3:B4:6D:26:99:C9:9A:3B:50:1D:EE:68:FC:4F:DF:13:B6:A1:CD:04:60:90:D0:52:BB:FD:DB:87:B0:75:D6:85:A1:5F:EC:C3:41:61:CE:95:4C:98:9F:BC:19:79:2C:B4:01:D8:79:3D:7C:B7:0C:7E:93:77:1E:75:41:D9:6D:AF:F2:46:10:AB:58:58:0A:5D:69:73:31:7F:06:AB:FD:EC:9A:EC:B2:70:80:5D:0E:C1:6C:F0:B6:BD:33:8B:C8:88:3F:78:4D:93:BD:9C:B8:B8:79:14:F5:EB:A2:DD:54:1C:62:13:E9:C3:F8:61:6C:D0:16:52:91:AD:2F:72:24:E8:44:39:53:97:4E:3C:C3:84:59:34:02:A4:EA:C7:B0:B4:16:10:34:1D:86:F0:A1:4D:26:6E:B4:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131530Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.415) 0:00:15.884 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "ED:00:97:EB:E9:D6:66:6D:50:43:14:B0:F5:EF:78:55:9D:F3:87:9A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "57:24:98:43:3F:21:6B:70:26:9F:BF:6E:33:31:2A:D0:F9:05:37:C0:66:5A:52:81:8D:31:2D:44:2A:D3:4E:05:21:EA:F8:09:A4:F1:47:48:E3:3B:E1:74:9B:DF:64:1F:D5:3B:43:94:FE:1F:47:9C:D6:45:47:23:4C:B8:97:79:16:06:F0:6C:79:9F:0E:78:46:DA:97:26:15:AB:56:55:02:75:A6:C2:24:81:4D:01:87:AA:E2:1A:0C:0C:32:83:A4:11:C4:C0:E3:B4:6D:26:99:C9:9A:3B:50:1D:EE:68:FC:4F:DF:13:B6:A1:CD:04:60:90:D0:52:BB:FD:DB:87:B0:75:D6:85:A1:5F:EC:C3:41:61:CE:95:4C:98:9F:BC:19:79:2C:B4:01:D8:79:3D:7C:B7:0C:7E:93:77:1E:75:41:D9:6D:AF:F2:46:10:AB:58:58:0A:5D:69:73:31:7F:06:AB:FD:EC:9A:EC:B2:70:80:5D:0E:C1:6C:F0:B6:BD:33:8B:C8:88:3F:78:4D:93:BD:9C:B8:B8:79:14:F5:EB:A2:DD:54:1C:62:13:E9:C3:F8:61:6C:D0:16:52:91:AD:2F:72:24:E8:44:39:53:97:4E:3C:C3:84:59:34:02:A4:EA:C7:B0:B4:16:10:34:1D:86:F0:A1:4D:26:6E:B4:E0" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131530Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.012) 0:00:15.896 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.020) 0:00:15.917 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.012) 0:00:15.929 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.020) 0:00:15.949 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.023) 0:00:15.973 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.022) 0:00:15.995 ********* 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.050196", "end": "2024-06-01 13:15:33.475375", "rc": 0, "start": "2024-06-01 13:15:33.425179" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.232) 0:00:16.228 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.020) 0:00:16.249 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.009) 0:00:16.258 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.011) 0:00:16.269 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.011) 0:00:16.281 ********* 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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.352) 0:00:16.633 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:15:33 +0000 (0:00:00.008) 0:00:16.642 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247731.2107143, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1c7f3d85462fe80f62d49d799af1bd7a547712df", "ctime": 1717247731.3387094, "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": 1717247731.2067146, "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": "18446744071589764785", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.131) 0:00:16.774 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.011) 0:00:16.785 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.022) 0:00:16.808 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.021) 0:00:16.830 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247731.1637163, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e3397799b4eb8382ec6df0130562f980c6412e70", "ctime": 1717247731.3387094, "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": 1717247731.2067146, "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": "18446744071589764772", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.131) 0:00:16.961 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.012) 0:00:16.974 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.021) 0:00:16.995 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "36:49:D2:CB:CC:39:6E:54:FB:0A:28:95:24:49:76:66:B9:BF:E1:EA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:3A:54:0B:71:E6:E1:0B:C8:D0:3B:DD:A2:B7:0B:48:9A:40:D1:A6:25:88:AD:8D:A3:72:DF:8B:EE:28:02:DD:38:78:68:E8:E2:44:1A:7A:46:6F:BB:A0:EA:15:BF:E4:42:47:51:95:93:62:D3:27:8A:51:BD:F9:B9:BB:8C:FC:13:6A:8A:54:36:43:2B:6A:FB:6A:34:1D:D8:F4:1A:6D:70:3C:0A:D8:32:ED:97:6D:F2:9F:6F:7F:6F:97:A6:2B:6A:A0:65:03:DF:A5:0C:0F:3A:8A:C8:59:2D:0D:AA:3F:05:C8:AA:EA:77:6E:56:F5:0D:E1:F5:B4:9C:7D:FE:52:4A:D2:73:84:F3:D2:F0:10:76:3D:C1:22:07:73:4A:DE:2B:A1:3D:D4:BF:F5:1F:13:96:45:16:7D:94:7A:C1:66:42:2E:57:1E:1E:70:F4:AD:07:80:32:9F:5B:C0:23:2E:A2:BC:AF:1D:A7:32:A7:77:57:14:45:A0:36:62:FB:75:7A:CC:9A:42:35:7D:A7:52:99:06:14:F4:06:49:9D:8B:59:C7:69:9A:39:89:3A:B7:26:7C:3E:B6:8C:91:96:45:E9:38:0C:A3:62:24:6F:CD:27:5D:F6:23:87:6C:E3:84:FE:A1:E9:0C:B6:11:74:89:F9:18:6C:B5:D4:C9:55:01" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131531Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.196) 0:00:17.192 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "36:49:D2:CB:CC:39:6E:54:FB:0A:28:95:24:49:76:66:B9:BF:E1:EA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:3A:54:0B:71:E6:E1:0B:C8:D0:3B:DD:A2:B7:0B:48:9A:40:D1:A6:25:88:AD:8D:A3:72:DF:8B:EE:28:02:DD:38:78:68:E8:E2:44:1A:7A:46:6F:BB:A0:EA:15:BF:E4:42:47:51:95:93:62:D3:27:8A:51:BD:F9:B9:BB:8C:FC:13:6A:8A:54:36:43:2B:6A:FB:6A:34:1D:D8:F4:1A:6D:70:3C:0A:D8:32:ED:97:6D:F2:9F:6F:7F:6F:97:A6:2B:6A:A0:65:03:DF:A5:0C:0F:3A:8A:C8:59:2D:0D:AA:3F:05:C8:AA:EA:77:6E:56:F5:0D:E1:F5:B4:9C:7D:FE:52:4A:D2:73:84:F3:D2:F0:10:76:3D:C1:22:07:73:4A:DE:2B:A1:3D:D4:BF:F5:1F:13:96:45:16:7D:94:7A:C1:66:42:2E:57:1E:1E:70:F4:AD:07:80:32:9F:5B:C0:23:2E:A2:BC:AF:1D:A7:32:A7:77:57:14:45:A0:36:62:FB:75:7A:CC:9A:42:35:7D:A7:52:99:06:14:F4:06:49:9D:8B:59:C7:69:9A:39:89:3A:B7:26:7C:3E:B6:8C:91:96:45:E9:38:0C:A3:62:24:6F:CD:27:5D:F6:23:87:6C:E3:84:FE:A1:E9:0C:B6:11:74:89:F9:18:6C:B5:D4:C9:55:01" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131531Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.011) 0:00:17.203 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.020) 0:00:17.224 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.012) 0:00:17.236 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.019) 0:00:17.256 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.022) 0:00:17.279 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.021) 0:00:17.301 ********* 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.050945", "end": "2024-06-01 13:15:34.721069", "rc": 0, "start": "2024-06-01 13:15:34.670124" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.173) 0:00:17.474 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:67 Saturday 01 June 2024 13:15:34 +0000 (0:00:00.029) 0:00:17.504 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 01 June 2024 13:15:35 +0000 (0:00:00.488) 0:00:17.992 ********* included: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 01 June 2024 13:15:35 +0000 (0:00:00.011) 0:00:18.003 ********* skipping: [sut] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 01 June 2024 13:15:35 +0000 (0:00:00.018) 0:00:18.022 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 01 June 2024 13:15:35 +0000 (0:00:00.011) 0:00:18.033 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 01 June 2024 13:15:35 +0000 (0:00:00.011) 0:00:18.045 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 01 June 2024 13:15:35 +0000 (0:00:00.024) 0:00:18.070 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [ "python2-pyasn1-0.1.9-7.el7.noarch providing python-pyasn1 is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python-cryptography is already installed", "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 01 June 2024 13:15:36 +0000 (0:00:00.867) 0:00:18.937 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [ "certmonger-0.78.4-17.el7_9.x86_64 providing certmonger is already installed" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 01 June 2024 13:15:36 +0000 (0:00:00.359) 0:00:19.297 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 01 June 2024 13:15:36 +0000 (0:00:00.148) 0:00:19.446 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 01 June 2024 13:15:36 +0000 (0:00:00.148) 0:00:19.594 ********* 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-01 13:15:30 UTC", "ActiveEnterTimestampMonotonic": "1210011999", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target network.target dbus.service basic.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-01 13:15:29 UTC", "AssertTimestampMonotonic": "1209983667", "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-01 13:15:29 UTC", "ConditionTimestampMonotonic": "1209983665", "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": "11874", "ExecMainStartTimestamp": "Sat 2024-06-01 13:15:29 UTC", "ExecMainStartTimestampMonotonic": "1209984375", "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-01 13:15:29 UTC] ; stop_time=[n/a] ; pid=11874 ; 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-01 13:15:29 UTC", "InactiveExitTimestampMonotonic": "1209984417", "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": "11874", "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-01 13:15:30 UTC", "WatchdogTimestampMonotonic": "1210011953", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 01 June 2024 13:15:37 +0000 (0:00:00.216) 0:00:19.810 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 01 June 2024 13:15:38 +0000 (0:00:01.271) 0:00:21.082 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.032) 0:00:21.115 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.019) 0:00:21.134 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.019) 0:00:21.153 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:85 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.030) 0:00:21.183 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:112 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.503) 0:00:21.687 ********* included: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs_mode.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0620'}) included: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid_mode.crt', 'key_path': '/etc/pki/tls/private/certid_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'mode': '0600'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.022) 0:00:21.709 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.009) 0:00:21.719 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:15:38 +0000 (0:00:00.013) 0:00:21.733 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.014) 0:00:21.747 ********* 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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.352) 0:00:22.100 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.009) 0:00:22.109 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247737.4504676, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "dc1267095336a1f50cd9af55550c0ad0461e5cd3", "ctime": 1717247737.5964618, "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": 1717247737.4474676, "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": "18446744071589764874", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.132) 0:00:22.242 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.011) 0:00:22.254 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.023) 0:00:22.277 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.020) 0:00:22.298 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247737.4034693, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "603c741a53dcc5d0c51c0658da5640070d73d10d", "ctime": 1717247737.5964618, "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": 1717247737.4474676, "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": "18446744071589764861", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.133) 0:00:22.432 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.012) 0:00:22.444 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.023) 0:00:22.468 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "11:84:34:E8:BF:10:03:86:1B:55:DF:41:96:F2:E4:03:57:F4:37:D0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "91:89:B9:4D:6A:8C:66:57:9B:12:92:CA:77:3E:F7:AE:BA:F1:50:F9:0D:8C:E5:52:57:10:60:F5:55:A1:7D:29:C9:D4:8C:AE:A2:84:C6:21:AF:E6:F6:6E:AC:A8:D8:6F:41:D4:5B:5F:68:E8:BE:8B:1D:E1:EB:40:0F:32:D4:EC:66:63:76:AD:07:23:00:CA:80:58:E0:FC:F8:93:A9:7A:12:0B:6B:B6:95:A4:7C:D3:75:E3:13:FE:5E:55:B3:3A:E5:32:99:1C:62:31:D7:21:50:7F:2D:64:4E:98:38:C2:F4:A6:1B:D5:58:AE:F0:AF:A2:91:83:80:A3:72:CD:B1:96:F2:EC:A7:D0:F8:C7:B4:97:E1:53:43:59:A1:04:23:24:62:24:B1:44:52:AC:81:96:CD:ED:B6:DD:27:5D:9E:36:93:DB:A5:8C:EC:5C:65:5A:CF:1B:67:CF:5E:6E:A8:E2:C8:6D:09:A6:05:92:FF:8A:8E:A6:98:11:DB:31:7E:48:A5:88:85:7C:05:1E:E2:C6:F4:E0:28:22:7A:02:BA:9D:22:6F:98:16:3B:95:A1:D1:CB:DC:C2:02:B8:5C:09:FF:FD:C6:19:EA:BF:02:EA:8B:44:F8:48:E7:DA:3C:88:FA:55:9F:01:CC:74:13:40:27:D0:99:BC:A7:59:E8:A3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131537Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.197) 0:00:22.665 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "11:84:34:E8:BF:10:03:86:1B:55:DF:41:96:F2:E4:03:57:F4:37:D0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "91:89:B9:4D:6A:8C:66:57:9B:12:92:CA:77:3E:F7:AE:BA:F1:50:F9:0D:8C:E5:52:57:10:60:F5:55:A1:7D:29:C9:D4:8C:AE:A2:84:C6:21:AF:E6:F6:6E:AC:A8:D8:6F:41:D4:5B:5F:68:E8:BE:8B:1D:E1:EB:40:0F:32:D4:EC:66:63:76:AD:07:23:00:CA:80:58:E0:FC:F8:93:A9:7A:12:0B:6B:B6:95:A4:7C:D3:75:E3:13:FE:5E:55:B3:3A:E5:32:99:1C:62:31:D7:21:50:7F:2D:64:4E:98:38:C2:F4:A6:1B:D5:58:AE:F0:AF:A2:91:83:80:A3:72:CD:B1:96:F2:EC:A7:D0:F8:C7:B4:97:E1:53:43:59:A1:04:23:24:62:24:B1:44:52:AC:81:96:CD:ED:B6:DD:27:5D:9E:36:93:DB:A5:8C:EC:5C:65:5A:CF:1B:67:CF:5E:6E:A8:E2:C8:6D:09:A6:05:92:FF:8A:8E:A6:98:11:DB:31:7E:48:A5:88:85:7C:05:1E:E2:C6:F4:E0:28:22:7A:02:BA:9D:22:6F:98:16:3B:95:A1:D1:CB:DC:C2:02:B8:5C:09:FF:FD:C6:19:EA:BF:02:EA:8B:44:F8:48:E7:DA:3C:88:FA:55:9F:01:CC:74:13:40:27:D0:99:BC:A7:59:E8:A3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131537Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.011) 0:00:22.677 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.021) 0:00:22.698 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.012) 0:00:22.711 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:15:39 +0000 (0:00:00.020) 0:00:22.731 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.024) 0:00:22.756 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.023) 0:00:22.779 ********* 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.055584", "end": "2024-06-01 13:15:40.204341", "rc": 0, "start": "2024-06-01 13:15:40.148757" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.178) 0:00:22.958 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.022) 0:00:22.981 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.009) 0:00:22.990 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.012) 0:00:23.003 ********* skipping: [sut] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.012) 0:00:23.015 ********* 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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:28 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.358) 0:00:23.374 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version != \"7\"", "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:38 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.010) 0:00:23.384 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247738.243436, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "57ba6855ec010f5789d14565bbdddd0f632f16cc", "ctime": 1717247738.2384365, "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": 1717247738.2384365, "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": "18446744071589764910", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:43 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.131) 0:00:23.516 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:49 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.012) 0:00:23.529 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:59 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.022) 0:00:23.551 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:65 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.021) 0:00:23.573 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717247738.196438, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b50fc40b6270050b7843d117df0ccafa19343275", "ctime": 1717247738.2384365, "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": 1717247738.2384365, "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": "18446744071589764897", "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-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:70 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.135) 0:00:23.708 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:76 Saturday 01 June 2024 13:15:40 +0000 (0:00:00.011) 0:00:23.719 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:86 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.025) 0:00:23.745 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "02:0A:67:DF:49:AC:BF:58:44:38:77:FC:86:C7:25:87:8B:5A:DE:7D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "15:4B:F4:EA:62:5A:C7:36:B7:16:D2:F5:DA:C5:44:CE:30:DF:07:59:C5:F9:66:C6:3D:EA:50:1A:49:87:8B:A3:F1:51:9D:89:D0:C7:50:A9:57:CE:0A:A5:04:17:B6:27:4F:18:76:5D:E2:6A:CE:5D:F5:29:E1:DC:57:6F:BB:3E:36:9E:89:78:3E:C8:ED:18:87:54:28:AA:54:53:2A:77:82:36:95:30:DE:39:06:4F:96:49:06:EC:D2:BC:25:E5:32:0E:73:D9:93:B0:8B:7C:78:A6:FB:E1:30:A3:A2:06:FD:9D:44:22:F6:96:81:82:B5:B6:24:FE:92:AF:39:D5:7E:09:A2:B2:E2:3D:64:24:06:8C:30:B8:00:2F:3E:B4:F5:10:37:0A:5D:4E:69:F5:B6:1B:8C:60:32:8D:3E:A5:A1:14:78:80:D5:5F:8F:51:17:2B:4C:A8:EF:B9:60:E0:28:90:5E:CE:42:06:39:42:BA:1C:99:7D:A6:C0:DC:AC:F1:C2:93:7D:29:51:17:1C:C8:C9:1B:F9:FA:31:95:9C:9D:0F:2C:0E:36:5B:AB:58:1F:41:4D:0D:E3:AC:C5:3F:85:B5:95:AD:CA:A0:46:7B:83:A6:BD:E3:DF:73:9C:74:FB:88:47:DF:DD:DE:41:33:1F:C0:F9:12:E8:4B:28:06" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131538Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.200) 0:00:23.945 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "6B:68:C6:5D:1D:EB:5C:85:89:2B:33:91:C7:80:C3:63:AF:A5:D4:60" }, "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": "02:0A:67:DF:49:AC:BF:58:44:38:77:FC:86:C7:25:87:8B:5A:DE:7D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "15:4B:F4:EA:62:5A:C7:36:B7:16:D2:F5:DA:C5:44:CE:30:DF:07:59:C5:F9:66:C6:3D:EA:50:1A:49:87:8B:A3:F1:51:9D:89:D0:C7:50:A9:57:CE:0A:A5:04:17:B6:27:4F:18:76:5D:E2:6A:CE:5D:F5:29:E1:DC:57:6F:BB:3E:36:9E:89:78:3E:C8:ED:18:87:54:28:AA:54:53:2A:77:82:36:95:30:DE:39:06:4F:96:49:06:EC:D2:BC:25:E5:32:0E:73:D9:93:B0:8B:7C:78:A6:FB:E1:30:A3:A2:06:FD:9D:44:22:F6:96:81:82:B5:B6:24:FE:92:AF:39:D5:7E:09:A2:B2:E2:3D:64:24:06:8C:30:B8:00:2F:3E:B4:F5:10:37:0A:5D:4E:69:F5:B6:1B:8C:60:32:8D:3E:A5:A1:14:78:80:D5:5F:8F:51:17:2B:4C:A8:EF:B9:60:E0:28:90:5E:CE:42:06:39:42:BA:1C:99:7D:A6:C0:DC:AC:F1:C2:93:7D:29:51:17:1C:C8:C9:1B:F9:FA:31:95:9C:9D:0F:2C:0E:36:5B:AB:58:1F:41:4D:0D:E3:AC:C5:3F:85:B5:95:AD:CA:A0:46:7B:83:A6:BD:E3:DF:73:9C:74:FB:88:47:DF:DD:DE:41:33:1F:C0:F9:12:E8:4B:28:06" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601131530Z", "not_valid_before": "20240601131538Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:96 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.014) 0:00:23.959 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:104 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.021) 0:00:23.981 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:112 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.013) 0:00:23.995 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:119 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.021) 0:00:24.016 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:130 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.023) 0:00:24.039 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:143 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.023) 0:00:24.063 ********* 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.055365", "end": "2024-06-01 13:15:41.488028", "rc": 0, "start": "2024-06-01 13:15:41.432663" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:152 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.178) 0:00:24.241 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 01 June 2024 13:15:41 +0000 (0:00:00.026) 0:00:24.268 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 6.25s /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.35s /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.32s /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.27s /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.92s /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.87s /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.53s /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:14 -------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.51s /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.49s /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:67 -------------------- Parse certificate ------------------------------------------------------- 0.42s /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.37s /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.36s /WORKDIR/git-weekly-cinfoj085r/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.36s /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:18 Retrieve auto-renew flag ------------------------------------------------ 0.23s /WORKDIR/git-weekly-cinfoj085r/tests/tasks/assert_certificate_parameters.yml:143 Ensure group "somegroup" exists ----------------------------------------- 0.22s /WORKDIR/git-weekly-cinfoj085r/tests/tests_fs_attrs.yml:9 --------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---