# 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-cizi2ervi7/.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-cizi2ervi7/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:2 Saturday 11 May 2024 13:25:07 +0000 (0:00:00.011) 0:00:00.011 ********** ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:5 Saturday 11 May 2024 13:25:08 +0000 (0:00:00.932) 0:00:00.943 ********** 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-cizi2ervi7/tests/tests_fs_attrs.yml:9 Saturday 11 May 2024 13:25:08 +0000 (0:00:00.390) 0:00:01.334 ********** 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-cizi2ervi7/tests/tests_fs_attrs.yml:14 Saturday 11 May 2024 13:25:08 +0000 (0:00:00.235) 0:00:01.569 ********** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 11 May 2024 13:25:09 +0000 (0:00:00.527) 0:00:02.096 ********** included: /WORKDIR/git-weekly-cizi2ervi7/.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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 11 May 2024 13:25:09 +0000 (0:00:00.013) 0:00:02.110 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 11 May 2024 13:25:09 +0000 (0:00:00.019) 0:00:02.129 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 11 May 2024 13:25:09 +0000 (0:00:00.202) 0:00:02.331 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 11 May 2024 13:25:09 +0000 (0:00:00.016) 0:00:02.347 ********** 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-cizi2ervi7/.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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 11 May 2024 13:25:09 +0000 (0:00:00.038) 0:00:02.386 ********** 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 1.5 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 11 May 2024 13:25:17 +0000 (0:00:07.321) 0:00:09.707 ********** 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.1 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 11 May 2024 13:25:20 +0000 (0:00:03.581) 0:00:13.289 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 11 May 2024 13:25:20 +0000 (0:00:00.246) 0:00:13.536 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 11 May 2024 13:25:21 +0000 (0:00:00.165) 0:00:13.702 ********** 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": "network.target dbus.service syslog.target system.slice systemd-journald.socket basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "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": "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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 11 May 2024 13:25:21 +0000 (0:00:00.508) 0:00:14.210 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 11 May 2024 13:25:22 +0000 (0:00:01.246) 0:00:15.457 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 11 May 2024 13:25:22 +0000 (0:00:00.029) 0:00:15.486 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 11 May 2024 13:25:22 +0000 (0:00:00.016) 0:00:15.503 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 11 May 2024 13:25:22 +0000 (0:00:00.016) 0:00:15.519 ********** 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-cizi2ervi7/tests/tests_fs_attrs.yml:32 Saturday 11 May 2024 13:25:22 +0000 (0:00:00.027) 0:00:15.547 ********** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:61 Saturday 11 May 2024 13:25:23 +0000 (0:00:00.536) 0:00:16.084 ********** included: /WORKDIR/git-weekly-cizi2ervi7/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-cizi2ervi7/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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:25:23 +0000 (0:00:00.021) 0:00:16.105 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:25:23 +0000 (0:00:00.007) 0:00:16.113 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:25:23 +0000 (0:00:00.010) 0:00:16.123 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:25:23 +0000 (0:00:00.009) 0:00:16.133 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:28 Saturday 11 May 2024 13:25:23 +0000 (0:00:00.381) 0:00:16.514 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:38 Saturday 11 May 2024 13:25:23 +0000 (0:00:00.008) 0:00:16.523 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433922.145415, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e048f18ab479b942600d8c1c3510740e4fa9d135", "ctime": 1715433922.254414, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169867, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433922.140415, "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": "420321524", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:43 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.149) 0:00:16.673 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:49 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.010) 0:00:16.684 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:59 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.019) 0:00:16.704 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:65 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.017) 0:00:16.722 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433922.0904155, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c35d68adb6de8b560ad1e77c85897922830a0072", "ctime": 1715433922.2554142, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169866, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433922.140415, "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": "420321511", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:70 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.147) 0:00:16.869 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:76 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.010) 0:00:16.880 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:86 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.020) 0:00:16.900 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "80:84:3B:3F:F3:3F:81:C9:6D:F3:91:B1:5F:94:BC:F8:B2:DD:0C:17" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "D7:18:AB:65:91:AD:AB:C1:C6:77:EE:6E:2B:21:23:A4:8B:1B:52:17:BD:D0:9A:3B:0F:64:A4:6E:BB:CA:5C:0A:64:88:29:E6:DB:F1:33:72:0C:6F:8A:67:B5:ED:01:C2:AB:E5:49:7C:52:47:6A:BF:2B:00:FA:C4:61:CA:43:2C:12:94:C3:DC:87:7A:EF:F2:DC:6A:17:0C:C2:C7:62:6A:D9:19:EA:F1:CC:0F:65:91:D5:1E:83:B1:44:97:A0:7B:D5:9E:C5:90:ED:A9:13:10:E6:11:45:33:D9:28:C0:DC:16:9F:B4:68:5D:6E:B8:14:1E:9A:7A:8C:54:71:BC:D7:1E:66:A5:72:E1:BE:52:D5:D9:C8:D5:03:3D:70:8B:35:21:43:69:FD:ED:0C:DD:06:14:1F:A0:2E:C2:94:72:54:69:4A:B7:37:1D:A1:D4:28:43:F6:49:0A:E2:64:46:58:F7:84:7A:DA:CC:B3:B3:BE:7B:03:6C:C9:35:B6:F8:33:F5:45:5E:1A:BE:F5:E9:06:D3:3F:C1:DF:8A:7F:EB:1D:83:CF:C2:02:60:25:E2:18:7D:FB:D7:C9:42:AE:70:83:85:E0:E3:7A:56:83:3D:6C:44:78:8C:13:4A:35:40:6B:1F:8B:61:04:49:C6:F2:3B:50:73:CC:D2:BC:B0:13:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132522Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.568) 0:00:17.469 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "80:84:3B:3F:F3:3F:81:C9:6D:F3:91:B1:5F:94:BC:F8:B2:DD:0C:17" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "D7:18:AB:65:91:AD:AB:C1:C6:77:EE:6E:2B:21:23:A4:8B:1B:52:17:BD:D0:9A:3B:0F:64:A4:6E:BB:CA:5C:0A:64:88:29:E6:DB:F1:33:72:0C:6F:8A:67:B5:ED:01:C2:AB:E5:49:7C:52:47:6A:BF:2B:00:FA:C4:61:CA:43:2C:12:94:C3:DC:87:7A:EF:F2:DC:6A:17:0C:C2:C7:62:6A:D9:19:EA:F1:CC:0F:65:91:D5:1E:83:B1:44:97:A0:7B:D5:9E:C5:90:ED:A9:13:10:E6:11:45:33:D9:28:C0:DC:16:9F:B4:68:5D:6E:B8:14:1E:9A:7A:8C:54:71:BC:D7:1E:66:A5:72:E1:BE:52:D5:D9:C8:D5:03:3D:70:8B:35:21:43:69:FD:ED:0C:DD:06:14:1F:A0:2E:C2:94:72:54:69:4A:B7:37:1D:A1:D4:28:43:F6:49:0A:E2:64:46:58:F7:84:7A:DA:CC:B3:B3:BE:7B:03:6C:C9:35:B6:F8:33:F5:45:5E:1A:BE:F5:E9:06:D3:3F:C1:DF:8A:7F:EB:1D:83:CF:C2:02:60:25:E2:18:7D:FB:D7:C9:42:AE:70:83:85:E0:E3:7A:56:83:3D:6C:44:78:8C:13:4A:35:40:6B:1F:8B:61:04:49:C6:F2:3B:50:73:CC:D2:BC:B0:13:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132522Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:96 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.011) 0:00:17.480 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:104 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.018) 0:00:17.498 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:112 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.010) 0:00:17.509 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:119 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.019) 0:00:17.528 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:130 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.020) 0:00:17.548 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:143 Saturday 11 May 2024 13:25:24 +0000 (0:00:00.020) 0:00:17.569 ********** 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.050948", "end": "2024-05-11 13:25:25.160989", "rc": 0, "start": "2024-05-11 13:25:25.110041" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:152 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.245) 0:00:17.814 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.019) 0:00:17.833 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.008) 0:00:17.842 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.010) 0:00:17.852 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.010) 0:00:17.863 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:28 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.381) 0:00:18.245 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:38 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.007) 0:00:18.252 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433922.6544113, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "12c46186f0b1f0265fb9f5a2b8388486d6de8608", "ctime": 1715433922.7944102, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169869, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433922.6494112, "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": "420321560", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:43 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.146) 0:00:18.399 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:49 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.010) 0:00:18.409 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:59 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.021) 0:00:18.430 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:65 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.020) 0:00:18.450 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433922.6024115, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8c827b1f25a989144428402b00d21c08ea77f7ed", "ctime": 1715433922.7954102, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169868, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1715433922.6494112, "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": "420321547", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:70 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.145) 0:00:18.596 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:76 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.010) 0:00:18.607 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:86 Saturday 11 May 2024 13:25:25 +0000 (0:00:00.020) 0:00:18.627 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "C2:90:52:9E:DB:8A:88:E1:51:57:2B:AC:3E:7F:92:BF:4D:3E:86:57" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "26:11:E1:5C:F9:70:B7:45:52:27:54:FB:C5:4E:C4:3B:F6:80:62:FB:C5:E8:A2:17:F6:F4:F7:19:C9:73:68:60:74:8D:67:5F:AF:89:20:AD:E5:27:24:5A:A7:3B:67:00:04:DC:34:4D:5A:36:37:C4:A9:33:73:32:39:7C:17:6E:5C:68:43:81:48:2E:71:43:30:9A:BB:F2:C3:CD:B9:9D:1C:81:2B:93:11:3E:14:EA:F4:E6:AD:75:89:20:3F:B7:7D:79:B4:EC:20:35:9D:A4:88:A1:B1:D2:B6:C1:CE:3F:CF:9B:C9:C2:7C:1F:57:4D:7D:4F:C7:7F:C1:31:78:42:E3:A2:CD:33:53:9E:42:34:7C:E9:36:14:0F:6C:EC:4D:DB:C0:E6:98:4F:A2:2C:BA:B3:0B:4C:8D:D6:45:71:6F:9E:05:AC:94:17:47:27:CE:FC:A3:67:39:A2:54:95:A2:55:99:7A:9E:1E:6E:47:18:EE:F7:D4:3E:35:97:67:24:74:37:FA:FC:E9:9F:34:FF:4D:35:97:16:55:5C:A1:93:33:3D:7C:5A:E1:43:9E:50:31:BB:F1:E8:98:59:3D:89:F2:4D:71:E9:A9:EE:A7:22:B5:7C:E9:36:1B:03:2C:EB:98:B0:96:5C:1E:E9:95:3A:EF:5D:F3:05:DB:CA:01:01" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132522Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.215) 0:00:18.843 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "C2:90:52:9E:DB:8A:88:E1:51:57:2B:AC:3E:7F:92:BF:4D:3E:86:57" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "26:11:E1:5C:F9:70:B7:45:52:27:54:FB:C5:4E:C4:3B:F6:80:62:FB:C5:E8:A2:17:F6:F4:F7:19:C9:73:68:60:74:8D:67:5F:AF:89:20:AD:E5:27:24:5A:A7:3B:67:00:04:DC:34:4D:5A:36:37:C4:A9:33:73:32:39:7C:17:6E:5C:68:43:81:48:2E:71:43:30:9A:BB:F2:C3:CD:B9:9D:1C:81:2B:93:11:3E:14:EA:F4:E6:AD:75:89:20:3F:B7:7D:79:B4:EC:20:35:9D:A4:88:A1:B1:D2:B6:C1:CE:3F:CF:9B:C9:C2:7C:1F:57:4D:7D:4F:C7:7F:C1:31:78:42:E3:A2:CD:33:53:9E:42:34:7C:E9:36:14:0F:6C:EC:4D:DB:C0:E6:98:4F:A2:2C:BA:B3:0B:4C:8D:D6:45:71:6F:9E:05:AC:94:17:47:27:CE:FC:A3:67:39:A2:54:95:A2:55:99:7A:9E:1E:6E:47:18:EE:F7:D4:3E:35:97:67:24:74:37:FA:FC:E9:9F:34:FF:4D:35:97:16:55:5C:A1:93:33:3D:7C:5A:E1:43:9E:50:31:BB:F1:E8:98:59:3D:89:F2:4D:71:E9:A9:EE:A7:22:B5:7C:E9:36:1B:03:2C:EB:98:B0:96:5C:1E:E9:95:3A:EF:5D:F3:05:DB:CA:01:01" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132522Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:96 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.011) 0:00:18.854 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:104 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.021) 0:00:18.875 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:112 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.011) 0:00:18.887 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:119 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.018) 0:00:18.906 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:130 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.021) 0:00:18.927 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:143 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.021) 0:00:18.949 ********** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.050049", "end": "2024-05-11 13:25:26.481918", "rc": 0, "start": "2024-05-11 13:25:26.431869" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:152 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.185) 0:00:19.134 ********** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:67 Saturday 11 May 2024 13:25:26 +0000 (0:00:00.027) 0:00:19.162 ********** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 11 May 2024 13:25:27 +0000 (0:00:00.561) 0:00:19.723 ********** included: /WORKDIR/git-weekly-cizi2ervi7/.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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 11 May 2024 13:25:27 +0000 (0:00:00.010) 0:00:19.734 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 11 May 2024 13:25:27 +0000 (0:00:00.017) 0:00:19.752 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 11 May 2024 13:25:27 +0000 (0:00:00.010) 0:00:19.763 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 11 May 2024 13:25:27 +0000 (0:00:00.010) 0:00:19.774 ********** 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-cizi2ervi7/.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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 11 May 2024 13:25:27 +0000 (0:00:00.024) 0:00:19.798 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 11 May 2024 13:25:28 +0000 (0:00:00.942) 0:00:20.740 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 11 May 2024 13:25:28 +0000 (0:00:00.389) 0:00:21.129 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 11 May 2024 13:25:28 +0000 (0:00:00.165) 0:00:21.294 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 11 May 2024 13:25:28 +0000 (0:00:00.162) 0:00:21.456 ********** ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-05-11 13:25:21 UTC", "ActiveEnterTimestampMonotonic": "1418612479", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target syslog.target basic.target systemd-journald.socket system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-05-11 13:25:21 UTC", "AssertTimestampMonotonic": "1418586435", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-05-11 13:25:21 UTC", "ConditionTimestampMonotonic": "1418586433", "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": "12197", "ExecMainStartTimestamp": "Sat 2024-05-11 13:25:21 UTC", "ExecMainStartTimestampMonotonic": "1418587147", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-05-11 13:25:21 UTC] ; stop_time=[n/a] ; pid=12197 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-05-11 13:25:21 UTC", "InactiveExitTimestampMonotonic": "1418587192", "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": "12197", "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": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-05-11 13:25:21 UTC", "WatchdogTimestampMonotonic": "1418612332", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 11 May 2024 13:25:29 +0000 (0:00:00.245) 0:00:21.702 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 11 May 2024 13:25:30 +0000 (0:00:01.364) 0:00:23.067 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 11 May 2024 13:25:30 +0000 (0:00:00.032) 0:00:23.100 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 11 May 2024 13:25:30 +0000 (0:00:00.018) 0:00:23.118 ********** 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-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 11 May 2024 13:25:30 +0000 (0:00:00.017) 0:00:23.136 ********** 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-cizi2ervi7/tests/tests_fs_attrs.yml:85 Saturday 11 May 2024 13:25:30 +0000 (0:00:00.028) 0:00:23.164 ********** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:112 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.549) 0:00:23.713 ********** included: /WORKDIR/git-weekly-cizi2ervi7/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-cizi2ervi7/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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.020) 0:00:23.734 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.008) 0:00:23.742 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.013) 0:00:23.756 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.014) 0:00:23.770 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:28 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.386) 0:00:24.157 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:38 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.008) 0:00:24.166 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433929.7053592, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c89211874046017d55b9a3a239d4ccdc8a3faf28", "ctime": 1715433929.8563583, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169871, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1715433929.7003593, "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": "420321649", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:43 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.144) 0:00:24.311 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:49 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.011) 0:00:24.322 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:59 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.021) 0:00:24.344 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:65 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.019) 0:00:24.363 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433929.6523597, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "eb2d16f643c19d7fdff283d40830740229af5cf9", "ctime": 1715433929.8573582, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169870, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1715433929.7003593, "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": "420321636", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:70 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.147) 0:00:24.511 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:76 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.010) 0:00:24.521 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:86 Saturday 11 May 2024 13:25:31 +0000 (0:00:00.020) 0:00:24.541 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "4C:81:3B:2D:51:91:C6:66:9D:39:68:67:EB:67:E2:E2:D7:13:E3:B6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C3:F3:CF:59:36:67:B8:87:3E:2B:E8:81:B6:7C:AB:98:E7:BE:10:41:AD:5F:6E:D4:77:3D:BD:11:18:78:62:DD:07:5D:2F:3A:08:AF:92:4E:AC:66:76:FB:47:32:AD:01:20:B9:FC:E3:C0:B8:44:18:54:1A:F5:ED:BB:C8:EB:6E:17:E2:E7:A6:37:0F:CA:A3:2F:A7:9B:64:CA:FB:DB:2F:68:71:EC:38:03:D0:D2:09:1A:2E:D9:1A:45:93:2B:B5:24:55:C3:87:B9:8F:03:18:74:89:95:E1:0A:8A:52:C3:53:E3:C6:4E:05:77:8D:44:BB:2B:2A:C8:D5:D9:1B:42:FD:4A:79:1A:E5:31:54:23:4F:68:19:76:5E:64:7F:85:3B:60:69:4C:3A:47:8D:CB:53:F1:51:36:E1:62:39:0F:F8:0C:FF:53:17:D2:0F:0B:36:79:E6:E5:16:62:C8:BE:43:DF:0C:26:5C:54:8E:A8:A8:30:CD:77:6D:80:86:81:08:88:3B:E5:46:8E:72:48:EE:3A:98:40:02:3B:DE:F1:9E:F6:0E:83:78:D1:BF:AD:C0:14:77:C5:DA:69:43:A6:D2:00:A9:0E:A6:F1:BA:40:EA:1E:9A:14:60:3D:9B:3E:32:FC:9D:68:B3:84:0B:A2:2B:04:66:19:E4:3C:2A:A7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132529Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.220) 0:00:24.762 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "4C:81:3B:2D:51:91:C6:66:9D:39:68:67:EB:67:E2:E2:D7:13:E3:B6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C3:F3:CF:59:36:67:B8:87:3E:2B:E8:81:B6:7C:AB:98:E7:BE:10:41:AD:5F:6E:D4:77:3D:BD:11:18:78:62:DD:07:5D:2F:3A:08:AF:92:4E:AC:66:76:FB:47:32:AD:01:20:B9:FC:E3:C0:B8:44:18:54:1A:F5:ED:BB:C8:EB:6E:17:E2:E7:A6:37:0F:CA:A3:2F:A7:9B:64:CA:FB:DB:2F:68:71:EC:38:03:D0:D2:09:1A:2E:D9:1A:45:93:2B:B5:24:55:C3:87:B9:8F:03:18:74:89:95:E1:0A:8A:52:C3:53:E3:C6:4E:05:77:8D:44:BB:2B:2A:C8:D5:D9:1B:42:FD:4A:79:1A:E5:31:54:23:4F:68:19:76:5E:64:7F:85:3B:60:69:4C:3A:47:8D:CB:53:F1:51:36:E1:62:39:0F:F8:0C:FF:53:17:D2:0F:0B:36:79:E6:E5:16:62:C8:BE:43:DF:0C:26:5C:54:8E:A8:A8:30:CD:77:6D:80:86:81:08:88:3B:E5:46:8E:72:48:EE:3A:98:40:02:3B:DE:F1:9E:F6:0E:83:78:D1:BF:AD:C0:14:77:C5:DA:69:43:A6:D2:00:A9:0E:A6:F1:BA:40:EA:1E:9A:14:60:3D:9B:3E:32:FC:9D:68:B3:84:0B:A2:2B:04:66:19:E4:3C:2A:A7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132529Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:96 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.011) 0:00:24.773 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:104 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.022) 0:00:24.796 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:112 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.010) 0:00:24.807 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:119 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.018) 0:00:24.825 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:130 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.021) 0:00:24.847 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:143 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.020) 0:00:24.867 ********** 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.053864", "end": "2024-05-11 13:25:32.404547", "rc": 0, "start": "2024-05-11 13:25:32.350683" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:152 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.190) 0:00:25.058 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.020) 0:00:25.079 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.007) 0:00:25.087 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.011) 0:00:25.098 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.010) 0:00:25.108 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:28 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.380) 0:00:25.488 ********** 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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:38 Saturday 11 May 2024 13:25:32 +0000 (0:00:00.010) 0:00:25.499 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433930.3053548, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f47f65bf9fc102b84e030760808339254fe0904c", "ctime": 1715433930.300355, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169873, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715433930.300355, "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": "420321685", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:43 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.145) 0:00:25.644 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:49 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.010) 0:00:25.655 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:59 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.020) 0:00:25.675 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:65 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.019) 0:00:25.694 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715433930.2533553, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "89fc41b9f3524a083387b40b5afdfeaecca502da", "ctime": 1715433930.300355, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169872, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715433930.300355, "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": "420321672", "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-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:70 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.149) 0:00:25.844 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:76 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.010) 0:00:25.854 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:86 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.022) 0:00:25.877 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "DF:6E:76:B8:C5:E3:0C:7B:79:CB:8A:65:7A:16:8C:BA:E2:3B:73:41" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "30:3E:64:0B:41:37:BB:67:AD:77:88:7C:34:35:C0:86:EB:84:26:E5:E7:E5:47:5C:7F:12:A8:5C:A8:84:7E:9E:EF:48:C1:C2:53:BC:29:2F:9F:97:A7:58:1A:6B:26:E2:AE:7A:16:DB:2D:A4:2B:92:A4:BD:23:60:76:1A:8B:64:A0:9F:3E:E0:71:CC:7C:98:8D:BB:49:07:67:6E:10:96:DC:BA:C4:FF:A1:B1:1D:3A:08:EF:ED:72:5A:E3:90:43:63:22:3C:EB:DD:60:53:F7:15:43:E6:5F:F0:15:F9:16:9B:28:F0:95:FB:43:EE:01:8F:8F:FD:8B:D5:AA:6E:A3:5A:8A:90:D8:1F:3F:D1:7C:51:F5:74:94:92:53:98:DD:B0:3B:0D:3E:05:7F:D8:51:42:57:A7:84:16:C3:0C:AD:C5:4C:62:7C:00:67:C4:F2:C2:26:3C:78:C7:B9:E7:EA:B5:A8:D8:FE:69:CA:30:CB:49:44:6E:21:B5:23:F9:91:80:8D:E9:99:B1:7E:FE:9F:DF:39:CC:95:74:4E:48:7D:81:FD:73:3A:91:93:B8:69:40:46:8F:75:13:70:27:75:B2:1C:EC:35:8C:19:FB:4C:9E:2E:DC:F0:29:36:06:DC:6F:C1:A7:00:84:94:C4:82:39:CF:D2:F1:FB:AA:92:8D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132530Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.216) 0:00:26.093 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "79:D7:8A:3C:F6:37:43:A3:96:3B:88:05:69:57:95:82:71:76:98:94" }, "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": "DF:6E:76:B8:C5:E3:0C:7B:79:CB:8A:65:7A:16:8C:BA:E2:3B:73:41" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "30:3E:64:0B:41:37:BB:67:AD:77:88:7C:34:35:C0:86:EB:84:26:E5:E7:E5:47:5C:7F:12:A8:5C:A8:84:7E:9E:EF:48:C1:C2:53:BC:29:2F:9F:97:A7:58:1A:6B:26:E2:AE:7A:16:DB:2D:A4:2B:92:A4:BD:23:60:76:1A:8B:64:A0:9F:3E:E0:71:CC:7C:98:8D:BB:49:07:67:6E:10:96:DC:BA:C4:FF:A1:B1:1D:3A:08:EF:ED:72:5A:E3:90:43:63:22:3C:EB:DD:60:53:F7:15:43:E6:5F:F0:15:F9:16:9B:28:F0:95:FB:43:EE:01:8F:8F:FD:8B:D5:AA:6E:A3:5A:8A:90:D8:1F:3F:D1:7C:51:F5:74:94:92:53:98:DD:B0:3B:0D:3E:05:7F:D8:51:42:57:A7:84:16:C3:0C:AD:C5:4C:62:7C:00:67:C4:F2:C2:26:3C:78:C7:B9:E7:EA:B5:A8:D8:FE:69:CA:30:CB:49:44:6E:21:B5:23:F9:91:80:8D:E9:99:B1:7E:FE:9F:DF:39:CC:95:74:4E:48:7D:81:FD:73:3A:91:93:B8:69:40:46:8F:75:13:70:27:75:B2:1C:EC:35:8C:19:FB:4C:9E:2E:DC:F0:29:36:06:DC:6F:C1:A7:00:84:94:C4:82:39:CF:D2:F1:FB:AA:92:8D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511132521Z", "not_valid_before": "20240511132530Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:96 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.011) 0:00:26.104 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:104 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.019) 0:00:26.123 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:112 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.010) 0:00:26.134 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:119 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.018) 0:00:26.153 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:130 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.021) 0:00:26.175 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:143 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.021) 0:00:26.196 ********** 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.054108", "end": "2024-05-11 13:25:33.734343", "rc": 0, "start": "2024-05-11 13:25:33.680235" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:152 Saturday 11 May 2024 13:25:33 +0000 (0:00:00.191) 0:00:26.387 ********** 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 11 May 2024 13:25:33 +0000 (0:00:00.023) 0:00:26.411 ********** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 7.32s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.58s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.36s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.25s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.94s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.93s /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:2 --------------------- Parse certificate ------------------------------------------------------- 0.57s /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:86 Gathering Facts --------------------------------------------------------- 0.56s /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.55s /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.54s /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.53s /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:14 -------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.51s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure user exists ------------------------------------------------------ 0.39s /WORKDIR/git-weekly-cizi2ervi7/tests/tests_fs_attrs.yml:5 --------------------- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.39s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.39s /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-cizi2ervi7/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.25s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.25s /WORKDIR/git-weekly-cizi2ervi7/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---