# 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-ciyfumxhj2/.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-ciyfumxhj2/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:2 Saturday 08 June 2024 13:18:02 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:5 Saturday 08 June 2024 13:18:03 +0000 (0:00:00.868) 0:00:00.879 ********* 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-ciyfumxhj2/tests/tests_fs_attrs.yml:9 Saturday 08 June 2024 13:18:03 +0000 (0:00:00.351) 0:00:01.230 ********* 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-ciyfumxhj2/tests/tests_fs_attrs.yml:14 Saturday 08 June 2024 13:18:03 +0000 (0:00:00.217) 0:00:01.448 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 08 June 2024 13:18:04 +0000 (0:00:00.529) 0:00:01.978 ********* included: /WORKDIR/git-weekly-ciyfumxhj2/.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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 08 June 2024 13:18:04 +0000 (0:00:00.011) 0:00:01.989 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 08 June 2024 13:18:04 +0000 (0:00:00.017) 0:00:02.006 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 08 June 2024 13:18:04 +0000 (0:00:00.179) 0:00:02.186 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 08 June 2024 13:18:04 +0000 (0:00:00.014) 0:00:02.200 ********* 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-ciyfumxhj2/.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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 08 June 2024 13:18:04 +0000 (0:00:00.022) 0:00:02.223 ********* changed: [sut] => { "changed": true, "changes": { "installed": [ "python-pyasn1", "python-cryptography" ] }, "rc": 0, "results": [ "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed", "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 base 502 k\n python2-pyasn1 noarch 0.1.9-7.el7 base 100 k\nInstalling for dependencies:\n python-cffi x86_64 1.6.0-5.el7 base 218 k\n python-idna noarch 2.4-1.el7 base 94 k\n python-ply noarch 3.4-11.el7 base 123 k\n python-pycparser noarch 2.14-1.el7 base 104 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 5.8 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 3.9 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 08 June 2024 13:18:10 +0000 (0:00:06.006) 0:00:08.229 ********* 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.4 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 08 June 2024 13:18:13 +0000 (0:00:03.130) 0:00:11.360 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 08 June 2024 13:18:13 +0000 (0:00:00.212) 0:00:11.572 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 08 June 2024 13:18:14 +0000 (0:00:00.148) 0:00:11.720 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice basic.target syslog.target dbus.service network.target systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 08 June 2024 13:18:14 +0000 (0:00:00.466) 0:00:12.187 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 08 June 2024 13:18:15 +0000 (0:00:01.199) 0:00:13.387 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 08 June 2024 13:18:15 +0000 (0:00:00.029) 0:00:13.416 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 08 June 2024 13:18:15 +0000 (0:00:00.016) 0:00:13.432 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 08 June 2024 13:18:15 +0000 (0:00:00.017) 0:00:13.450 ********* 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-ciyfumxhj2/tests/tests_fs_attrs.yml:32 Saturday 08 June 2024 13:18:15 +0000 (0:00:00.027) 0:00:13.477 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:61 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.536) 0:00:14.014 ********* included: /WORKDIR/git-weekly-ciyfumxhj2/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-ciyfumxhj2/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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.021) 0:00:14.035 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.007) 0:00:14.042 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.010) 0:00:14.053 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.010) 0:00:14.063 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:28 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.345) 0:00:14.408 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:38 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.008) 0:00:14.417 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852695.0262945, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "863a27fb9c189773e12c38d7dc645ecf41271fd5", "ctime": 1717852695.169296, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169874, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717852695.0222945, "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": "1437396651", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:43 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.135) 0:00:14.552 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:49 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.010) 0:00:14.563 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:59 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.020) 0:00:14.583 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:65 Saturday 08 June 2024 13:18:16 +0000 (0:00:00.018) 0:00:14.601 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852694.979294, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4de8124d135f25f854408cf9e7596d042f4faed4", "ctime": 1717852695.169296, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169873, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717852695.0222945, "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": "1437396638", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:70 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.137) 0:00:14.738 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:76 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.010) 0:00:14.749 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:86 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.020) 0:00:14.769 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "36:41:47:C7:37:34:F0:D0:E8:08:7F:70:2C:A9:A4:FB:11:A9:5E:3D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:3E:91:33:29:8F:99:B4:29:9C:2C:03:35:5F:0A:B7:8C:3D:22:CC:75:C3:42:D0:78:A4:69:97:FA:9F:2D:88:67:49:D8:F8:8A:24:E7:DA:20:F2:00:74:C8:6F:34:97:C1:D6:B4:6C:BD:08:F9:B8:E1:51:85:E9:23:89:50:7A:5C:F5:5E:A6:71:33:CF:7E:2A:72:A0:1F:D5:85:68:BF:34:E1:33:18:56:F6:DF:60:A2:CE:1B:D2:E1:71:23:D9:FB:F0:8C:40:6D:66:F7:89:58:8E:C4:D4:CC:9B:37:DF:24:72:F8:FE:BD:58:71:B2:2C:C6:00:93:82:F2:6D:AD:08:A1:A0:4A:70:A2:68:1F:D6:C6:8E:3F:38:A6:22:03:35:3D:38:5E:D7:EA:69:A1:D2:37:75:2B:A5:24:B5:62:5C:6A:42:CD:3B:89:EB:E1:81:2D:03:18:56:A1:89:67:BA:50:7D:33:97:AD:3A:E5:0C:D0:AD:CC:87:77:F8:FE:7B:7F:11:91:35:5D:3A:92:1D:A4:37:54:FF:14:F9:2F:3B:E6:CF:CC:00:91:29:3E:6E:3E:49:A8:1E:F0:BD:3F:2F:9D:87:CB:D1:DA:C8:8D:0F:AD:48:DB:78:FF:25:0F:FE:69:B1:65:BF:70:13:27:73:88:0D:02:AB:E1:74:1E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131815Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.402) 0:00:15.172 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "36:41:47:C7:37:34:F0:D0:E8:08:7F:70:2C:A9:A4:FB:11:A9:5E:3D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:3E:91:33:29:8F:99:B4:29:9C:2C:03:35:5F:0A:B7:8C:3D:22:CC:75:C3:42:D0:78:A4:69:97:FA:9F:2D:88:67:49:D8:F8:8A:24:E7:DA:20:F2:00:74:C8:6F:34:97:C1:D6:B4:6C:BD:08:F9:B8:E1:51:85:E9:23:89:50:7A:5C:F5:5E:A6:71:33:CF:7E:2A:72:A0:1F:D5:85:68:BF:34:E1:33:18:56:F6:DF:60:A2:CE:1B:D2:E1:71:23:D9:FB:F0:8C:40:6D:66:F7:89:58:8E:C4:D4:CC:9B:37:DF:24:72:F8:FE:BD:58:71:B2:2C:C6:00:93:82:F2:6D:AD:08:A1:A0:4A:70:A2:68:1F:D6:C6:8E:3F:38:A6:22:03:35:3D:38:5E:D7:EA:69:A1:D2:37:75:2B:A5:24:B5:62:5C:6A:42:CD:3B:89:EB:E1:81:2D:03:18:56:A1:89:67:BA:50:7D:33:97:AD:3A:E5:0C:D0:AD:CC:87:77:F8:FE:7B:7F:11:91:35:5D:3A:92:1D:A4:37:54:FF:14:F9:2F:3B:E6:CF:CC:00:91:29:3E:6E:3E:49:A8:1E:F0:BD:3F:2F:9D:87:CB:D1:DA:C8:8D:0F:AD:48:DB:78:FF:25:0F:FE:69:B1:65:BF:70:13:27:73:88:0D:02:AB:E1:74:1E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131815Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:96 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.010) 0:00:15.183 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:104 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.018) 0:00:15.202 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:112 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.010) 0:00:15.212 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:119 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.017) 0:00:15.230 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:130 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.019) 0:00:15.250 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:143 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.020) 0:00:15.270 ********* 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.045541", "end": "2024-06-08 13:18:17.789937", "rc": 0, "start": "2024-06-08 13:18:17.744396" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:152 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.225) 0:00:15.496 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.020) 0:00:15.516 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.008) 0:00:15.525 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.010) 0:00:15.535 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:18:17 +0000 (0:00:00.010) 0:00:15.545 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:28 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.341) 0:00:15.887 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:38 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.007) 0:00:15.895 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852695.5983, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9922a8680ce26521fa77c600fa293206c9f8933f", "ctime": 1717852695.6733007, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169876, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717852695.5943, "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": "1437396687", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:43 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.132) 0:00:16.027 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:49 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.010) 0:00:16.038 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:59 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.021) 0:00:16.059 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:65 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.020) 0:00:16.079 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852695.5532997, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6f79c6bcff86e35914a285796a09aa18def06d33", "ctime": 1717852695.6733007, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 169875, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717852695.5943, "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": "1437396674", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:70 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.134) 0:00:16.213 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:76 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.010) 0:00:16.224 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:86 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.019) 0:00:16.244 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "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": "8F:0A:AA:92:AD:0B:3F:D8:B5:3C:20:F1:B3:4C:D4:EE:88:1F:4B:3A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B4:B9:79:F9:B9:E4:63:3A:D5:86:54:16:B5:8E:3B:7F:32:5E:91:2D:3D:10:41:D0:93:BB:04:63:E7:F5:DF:1D:78:AF:15:1E:83:D9:87:58:8D:FB:B2:F2:7E:91:B6:A2:BB:66:06:D4:DB:DE:D1:99:56:DB:72:A9:B5:A2:02:50:3B:D8:0A:5E:25:48:04:3D:8F:41:E1:45:FB:DE:F3:01:FE:4C:0F:B2:2E:DB:3D:33:76:52:AB:A3:4B:D7:D1:EE:68:C0:15:EC:2C:4C:7C:17:AE:C4:F1:44:F2:C2:68:F9:0A:98:60:6E:6E:30:A3:20:4B:44:50:20:65:0C:17:D0:F8:01:FD:67:D6:A8:43:06:5A:6F:C6:6D:98:32:C5:0A:E1:F8:44:EA:64:7E:1A:CC:C9:1A:DE:F9:B3:B2:D1:C3:9B:0F:51:16:FE:81:C8:A5:FC:AB:EA:4A:B1:E6:0B:9C:03:11:05:92:83:AB:7C:52:77:94:9F:2F:90:EF:B6:FF:2E:22:8F:5B:8D:27:F6:53:74:E5:17:2E:87:CA:4B:2A:D0:B4:74:BB:B6:72:FE:F1:DE:E2:2C:96:1B:08:7A:C2:11:8B:28:B9:A5:89:70:F1:B2:9E:D5:5F:43:2B:59:93:4C:73:24:4F:7A:F9:54:95:4D:3E:ED:8B:E9:53:A6:C1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131815Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.195) 0:00:16.440 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "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": "8F:0A:AA:92:AD:0B:3F:D8:B5:3C:20:F1:B3:4C:D4:EE:88:1F:4B:3A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B4:B9:79:F9:B9:E4:63:3A:D5:86:54:16:B5:8E:3B:7F:32:5E:91:2D:3D:10:41:D0:93:BB:04:63:E7:F5:DF:1D:78:AF:15:1E:83:D9:87:58:8D:FB:B2:F2:7E:91:B6:A2:BB:66:06:D4:DB:DE:D1:99:56:DB:72:A9:B5:A2:02:50:3B:D8:0A:5E:25:48:04:3D:8F:41:E1:45:FB:DE:F3:01:FE:4C:0F:B2:2E:DB:3D:33:76:52:AB:A3:4B:D7:D1:EE:68:C0:15:EC:2C:4C:7C:17:AE:C4:F1:44:F2:C2:68:F9:0A:98:60:6E:6E:30:A3:20:4B:44:50:20:65:0C:17:D0:F8:01:FD:67:D6:A8:43:06:5A:6F:C6:6D:98:32:C5:0A:E1:F8:44:EA:64:7E:1A:CC:C9:1A:DE:F9:B3:B2:D1:C3:9B:0F:51:16:FE:81:C8:A5:FC:AB:EA:4A:B1:E6:0B:9C:03:11:05:92:83:AB:7C:52:77:94:9F:2F:90:EF:B6:FF:2E:22:8F:5B:8D:27:F6:53:74:E5:17:2E:87:CA:4B:2A:D0:B4:74:BB:B6:72:FE:F1:DE:E2:2C:96:1B:08:7A:C2:11:8B:28:B9:A5:89:70:F1:B2:9E:D5:5F:43:2B:59:93:4C:73:24:4F:7A:F9:54:95:4D:3E:ED:8B:E9:53:A6:C1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131815Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:96 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.011) 0:00:16.451 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:104 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.019) 0:00:16.470 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:112 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.010) 0:00:16.481 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:119 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.017) 0:00:16.499 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:130 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.020) 0:00:16.520 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:143 Saturday 08 June 2024 13:18:18 +0000 (0:00:00.020) 0:00:16.540 ********* 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.043107", "end": "2024-06-08 13:18:19.000372", "rc": 0, "start": "2024-06-08 13:18:18.957265" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:152 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.166) 0:00:16.706 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:67 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.027) 0:00:16.734 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.496) 0:00:17.231 ********* included: /WORKDIR/git-weekly-ciyfumxhj2/.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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.010) 0:00:17.241 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.017) 0:00:17.258 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.010) 0:00:17.269 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.010) 0:00:17.280 ********* 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-ciyfumxhj2/.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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 08 June 2024 13:18:19 +0000 (0:00:00.022) 0:00:17.303 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 08 June 2024 13:18:20 +0000 (0:00:00.886) 0:00:18.189 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 08 June 2024 13:18:20 +0000 (0:00:00.341) 0:00:18.531 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 08 June 2024 13:18:20 +0000 (0:00:00.148) 0:00:18.679 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 08 June 2024 13:18:21 +0000 (0:00:00.149) 0:00:18.828 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-06-08 13:18:14 UTC", "ActiveEnterTimestampMonotonic": "1250430892", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target systemd-journald.socket dbus.service system.slice network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-08 13:18:14 UTC", "AssertTimestampMonotonic": "1250404284", "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-06-08 13:18:14 UTC", "ConditionTimestampMonotonic": "1250404283", "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": "12423", "ExecMainStartTimestamp": "Sat 2024-06-08 13:18:14 UTC", "ExecMainStartTimestampMonotonic": "1250404881", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-06-08 13:18:14 UTC] ; stop_time=[n/a] ; pid=12423 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-06-08 13:18:14 UTC", "InactiveExitTimestampMonotonic": "1250404915", "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": "12423", "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-06-08 13:18:14 UTC", "WatchdogTimestampMonotonic": "1250430839", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 08 June 2024 13:18:21 +0000 (0:00:00.217) 0:00:19.046 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 08 June 2024 13:18:22 +0000 (0:00:01.042) 0:00:20.088 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 08 June 2024 13:18:22 +0000 (0:00:00.030) 0:00:20.119 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 08 June 2024 13:18:22 +0000 (0:00:00.016) 0:00:20.136 ********* 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-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 08 June 2024 13:18:22 +0000 (0:00:00.017) 0:00:20.153 ********* skipping: [sut] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:85 Saturday 08 June 2024 13:18:22 +0000 (0:00:00.027) 0:00:20.180 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:112 Saturday 08 June 2024 13:18:22 +0000 (0:00:00.481) 0:00:20.662 ********* included: /WORKDIR/git-weekly-ciyfumxhj2/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-ciyfumxhj2/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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:18:22 +0000 (0:00:00.021) 0:00:20.683 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:18:22 +0000 (0:00:00.008) 0:00:20.692 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.013) 0:00:20.705 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.014) 0:00:20.720 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:28 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.340) 0:00:21.060 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:38 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.008) 0:00:21.069 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852701.8083599, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1d96d06b4d6df0a3e69ab4dd94ed021d5278c527", "ctime": 1717852701.8583603, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169878, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717852701.8053598, "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": "1437396776", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:43 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.128) 0:00:21.198 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:49 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.011) 0:00:21.209 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:59 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.020) 0:00:21.230 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:65 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.019) 0:00:21.249 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852701.7643595, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6fe585fbca6523162ff7fdc87e8aaae7c1509eb3", "ctime": 1717852701.8593602, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 169877, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717852701.80436, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "1437396763", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:70 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.132) 0:00:21.381 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:76 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.011) 0:00:21.393 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:86 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.021) 0:00:21.414 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "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": "26:95:1F:EB:25:EC:FA:7E:78:27:8D:A6:BE:45:17:C9:CF:E6:45:EC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1F:B1:12:56:17:3C:D6:43:9C:C9:92:A9:BC:8B:B9:0D:AF:AC:45:C8:EB:23:89:87:D9:11:D3:72:A8:0E:96:BF:82:EE:19:D5:E7:7A:F4:43:BA:2E:0C:BE:11:52:61:7C:0A:5C:A2:5C:A7:C5:16:FB:E8:24:77:FC:12:E1:D0:2A:21:36:DC:98:58:92:57:76:C3:24:65:B0:2F:D4:3A:14:1E:E8:D6:38:E1:31:AB:89:76:1F:3F:AD:9C:CC:4C:8A:21:EA:31:D9:DE:D9:2B:B5:A8:E1:07:B6:15:A3:D5:A1:1C:37:82:3B:74:71:1B:B2:C8:0D:45:46:8D:C2:E7:16:BC:D1:64:AC:AA:3A:AA:77:3B:7D:00:7F:43:DA:0E:5C:8A:12:AE:2A:A9:E8:FA:AB:6E:6B:F4:AC:2C:93:67:41:B2:73:BF:0A:0A:70:47:2E:4D:35:24:67:26:4E:EF:07:3B:46:B4:B7:C0:B4:78:DC:89:64:5E:51:17:18:F3:5A:44:64:8F:13:15:14:13:65:8E:7C:64:A3:8F:1F:ED:B4:F5:B2:0C:82:F9:12:BF:45:67:6F:1B:32:F9:3E:F7:A9:7A:C7:A5:AC:0A:D5:75:71:3C:C3:11:06:CE:BC:D0:37:D6:F6:16:18:10:81:65:09:2F:87:A3:33:D2:05:93:9D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131821Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.187) 0:00:21.602 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "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": "26:95:1F:EB:25:EC:FA:7E:78:27:8D:A6:BE:45:17:C9:CF:E6:45:EC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1F:B1:12:56:17:3C:D6:43:9C:C9:92:A9:BC:8B:B9:0D:AF:AC:45:C8:EB:23:89:87:D9:11:D3:72:A8:0E:96:BF:82:EE:19:D5:E7:7A:F4:43:BA:2E:0C:BE:11:52:61:7C:0A:5C:A2:5C:A7:C5:16:FB:E8:24:77:FC:12:E1:D0:2A:21:36:DC:98:58:92:57:76:C3:24:65:B0:2F:D4:3A:14:1E:E8:D6:38:E1:31:AB:89:76:1F:3F:AD:9C:CC:4C:8A:21:EA:31:D9:DE:D9:2B:B5:A8:E1:07:B6:15:A3:D5:A1:1C:37:82:3B:74:71:1B:B2:C8:0D:45:46:8D:C2:E7:16:BC:D1:64:AC:AA:3A:AA:77:3B:7D:00:7F:43:DA:0E:5C:8A:12:AE:2A:A9:E8:FA:AB:6E:6B:F4:AC:2C:93:67:41:B2:73:BF:0A:0A:70:47:2E:4D:35:24:67:26:4E:EF:07:3B:46:B4:B7:C0:B4:78:DC:89:64:5E:51:17:18:F3:5A:44:64:8F:13:15:14:13:65:8E:7C:64:A3:8F:1F:ED:B4:F5:B2:0C:82:F9:12:BF:45:67:6F:1B:32:F9:3E:F7:A9:7A:C7:A5:AC:0A:D5:75:71:3C:C3:11:06:CE:BC:D0:37:D6:F6:16:18:10:81:65:09:2F:87:A3:33:D2:05:93:9D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131821Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:96 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.010) 0:00:21.613 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:104 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.019) 0:00:21.632 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:112 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.010) 0:00:21.643 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:119 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.019) 0:00:21.662 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:130 Saturday 08 June 2024 13:18:23 +0000 (0:00:00.021) 0:00:21.684 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:143 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.020) 0:00:21.705 ********* 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.047351", "end": "2024-06-08 13:18:24.170225", "rc": 0, "start": "2024-06-08 13:18:24.122874" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:152 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.172) 0:00:21.877 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.020) 0:00:21.898 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.008) 0:00:21.907 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.012) 0:00:21.919 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.012) 0:00:21.932 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:28 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.341) 0:00:22.273 ********* 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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:38 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.009) 0:00:22.282 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852702.243364, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "008a63b37bb3a497aa6fef0b724634be437b5fe1", "ctime": 1717852702.239364, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169880, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717852702.239364, "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": "1437396812", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:43 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.130) 0:00:22.413 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:49 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.011) 0:00:22.425 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:59 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.020) 0:00:22.445 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:65 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.019) 0:00:22.465 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717852702.1993637, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cddf13a2c8f2c17a71c72d2b41d17005fd896b24", "ctime": 1717852702.239364, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169879, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717852702.239364, "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": "1437396799", "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-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:70 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.133) 0:00:22.599 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:76 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.011) 0:00:22.610 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:86 Saturday 08 June 2024 13:18:24 +0000 (0:00:00.025) 0:00:22.635 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "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": "A4:FD:26:8C:44:B3:C4:BB:2B:DF:3F:40:4F:E9:09:A9:F2:D6:0C:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2C:56:C8:6A:4E:7F:76:E2:91:A8:E2:94:6A:03:A2:87:29:1E:87:F6:C9:53:A7:5D:72:18:FF:44:BD:00:89:30:71:5C:9E:A0:A0:7B:FD:12:AC:A5:53:BD:5D:D7:E4:7C:40:FF:1E:13:31:60:56:47:51:4D:AC:0B:5D:68:9C:B0:A2:A6:8D:A9:F0:DC:3D:22:AF:5C:5F:79:BF:53:C2:AC:03:73:DE:B7:BC:30:76:B6:27:64:1B:6F:8D:A3:E3:6A:5A:AD:F3:B8:96:CD:EA:89:15:FC:8C:16:C2:5D:ED:DC:A8:98:D0:CD:BD:FD:9A:6E:33:E9:18:53:3C:FA:83:B5:0A:01:30:3E:4E:D9:F3:6D:59:27:D0:CC:EB:41:BA:2C:5E:DA:3D:3E:CC:91:9E:18:CC:0B:D8:60:BF:14:25:3C:96:20:D9:38:F6:C6:D7:01:F7:06:7A:E3:86:08:50:D6:96:36:80:F2:B4:0A:3A:6F:44:94:9D:EE:DD:D6:97:6C:C5:27:1F:9C:22:43:21:6A:C2:2F:95:F5:89:73:BB:82:F2:E4:99:80:54:F1:4E:B3:E7:A8:00:DA:42:4C:50:7F:BF:0C:2B:E6:48:CC:1B:76:54:90:DB:8F:8B:80:2F:45:93:E0:90:5D:04:79:D9:4E:A5:8E:A6:D5:42:CC:EB:FC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131822Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.191) 0:00:22.827 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "67:19:C3:38:6D:4C:6C:2C:C8:D9:7B:6A:6E:6A:A6:8B:B3:6F:72:86" }, "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": "A4:FD:26:8C:44:B3:C4:BB:2B:DF:3F:40:4F:E9:09:A9:F2:D6:0C:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2C:56:C8:6A:4E:7F:76:E2:91:A8:E2:94:6A:03:A2:87:29:1E:87:F6:C9:53:A7:5D:72:18:FF:44:BD:00:89:30:71:5C:9E:A0:A0:7B:FD:12:AC:A5:53:BD:5D:D7:E4:7C:40:FF:1E:13:31:60:56:47:51:4D:AC:0B:5D:68:9C:B0:A2:A6:8D:A9:F0:DC:3D:22:AF:5C:5F:79:BF:53:C2:AC:03:73:DE:B7:BC:30:76:B6:27:64:1B:6F:8D:A3:E3:6A:5A:AD:F3:B8:96:CD:EA:89:15:FC:8C:16:C2:5D:ED:DC:A8:98:D0:CD:BD:FD:9A:6E:33:E9:18:53:3C:FA:83:B5:0A:01:30:3E:4E:D9:F3:6D:59:27:D0:CC:EB:41:BA:2C:5E:DA:3D:3E:CC:91:9E:18:CC:0B:D8:60:BF:14:25:3C:96:20:D9:38:F6:C6:D7:01:F7:06:7A:E3:86:08:50:D6:96:36:80:F2:B4:0A:3A:6F:44:94:9D:EE:DD:D6:97:6C:C5:27:1F:9C:22:43:21:6A:C2:2F:95:F5:89:73:BB:82:F2:E4:99:80:54:F1:4E:B3:E7:A8:00:DA:42:4C:50:7F:BF:0C:2B:E6:48:CC:1B:76:54:90:DB:8F:8B:80:2F:45:93:E0:90:5D:04:79:D9:4E:A5:8E:A6:D5:42:CC:EB:FC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608131814Z", "not_valid_before": "20240608131822Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:96 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.012) 0:00:22.840 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:104 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.020) 0:00:22.860 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:112 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.011) 0:00:22.871 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:119 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.019) 0:00:22.890 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:130 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.020) 0:00:22.911 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:143 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.020) 0:00:22.932 ********* 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.044483", "end": "2024-06-08 13:18:25.390689", "rc": 0, "start": "2024-06-08 13:18:25.346206" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:152 Saturday 08 June 2024 13:18:25 +0000 (0:00:00.165) 0:00:23.098 ********* 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 08 June 2024 13:18:25 +0000 (0:00:00.024) 0:00:23.122 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 6.01s /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.13s /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.20s /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.04s /WORKDIR/git-weekly-ciyfumxhj2/.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.89s /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.87s /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.54s /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.53s /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:85 -------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.47s /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Parse certificate ------------------------------------------------------- 0.40s /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.35s /WORKDIR/git-weekly-ciyfumxhj2/tests/tests_fs_attrs.yml:5 --------------------- Ensure python3 is installed --------------------------------------------- 0.35s /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.34s /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.34s /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.34s /WORKDIR/git-weekly-ciyfumxhj2/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.34s /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:18 Retrieve auto-renew flag ------------------------------------------------ 0.23s /WORKDIR/git-weekly-ciyfumxhj2/tests/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.22s /WORKDIR/git-weekly-ciyfumxhj2/.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. ---^---^---^---^---^---