# 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-cipp1edu3c/.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-cipp1edu3c/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:2 Saturday 27 July 2024 13:17:18 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:5 Saturday 27 July 2024 13:17:19 +0000 (0:00:01.030) 0:00:01.041 ********* 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-cipp1edu3c/tests/tests_fs_attrs.yml:9 Saturday 27 July 2024 13:17:19 +0000 (0:00:00.358) 0:00:01.400 ********* 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-cipp1edu3c/tests/tests_fs_attrs.yml:14 Saturday 27 July 2024 13:17:19 +0000 (0:00:00.223) 0:00:01.623 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 July 2024 13:17:20 +0000 (0:00:00.519) 0:00:02.143 ********* included: /WORKDIR/git-weekly-cipp1edu3c/.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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 13:17:20 +0000 (0:00:00.011) 0:00:02.154 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 27 July 2024 13:17:20 +0000 (0:00:00.017) 0:00:02.172 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 27 July 2024 13:17:20 +0000 (0:00:00.185) 0:00:02.358 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 27 July 2024 13:17:20 +0000 (0:00:00.015) 0:00:02.373 ********* 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-cipp1edu3c/.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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 July 2024 13:17:20 +0000 (0:00:00.022) 0:00:02.395 ********* 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\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 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-enum34 noarch 1.0.4-1.el7 base 52 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 (+5 Dependent packages)\n\nTotal download size: 1.2 M\nInstalled size: 6.1 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 3.4 MB/s | 1.2 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/7 \n Installing : python-enum34-1.0.4-1.el7.noarch 2/7 \n Installing : python-ply-3.4-11.el7.noarch 3/7 \n Installing : python-pycparser-2.14-1.el7.noarch 4/7 \n Installing : python-cffi-1.6.0-5.el7.x86_64 5/7 \n Installing : python-idna-2.4-1.el7.noarch 6/7 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n Verifying : python-idna-2.4-1.el7.noarch 1/7 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/7 \n Verifying : python-ply-3.4-11.el7.noarch 3/7 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/7 \n Verifying : python-enum34-1.0.4-1.el7.noarch 5/7 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 6/7 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-enum34.noarch 0:1.0.4-1.el7 \n python-idna.noarch 0:2.4-1.el7 python-ply.noarch 0:3.4-11.el7 \n python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 27 July 2024 13:17:27 +0000 (0:00:07.107) 0:00:09.503 ********* 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\nResolving Dependencies\n--> Running transaction check\n---> Package certmonger.x86_64 0:0.78.4-17.el7_9 will be installed\n--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_util.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_client.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Running transaction check\n---> Package libtalloc.x86_64 0:2.1.16-1.el7 will be installed\n---> Package libtevent.x86_64 0:0.9.39-1.el7 will be installed\n---> Package xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n---> Package xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n certmonger x86_64 0.78.4-17.el7_9 updates 608 k\nInstalling for dependencies:\n libtalloc x86_64 2.1.16-1.el7 base 33 k\n libtevent x86_64 0.9.39-1.el7 base 41 k\n xmlrpc-c x86_64 1.32.5-1905.svn2451.el7 base 130 k\n xmlrpc-c-client x86_64 1.32.5-1905.svn2451.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+4 Dependent packages)\n\nTotal download size: 843 k\nInstalled size: 3.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 2.2 MB/s | 843 kB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtalloc-2.1.16-1.el7.x86_64 1/5 \n Installing : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 2/5 \n Installing : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 3/5 \n Installing : libtevent-0.9.39-1.el7.x86_64 4/5 \n Installing : certmonger-0.78.4-17.el7_9.x86_64 5/5 \n Verifying : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 1/5 \n Verifying : libtalloc-2.1.16-1.el7.x86_64 2/5 \n Verifying : certmonger-0.78.4-17.el7_9.x86_64 3/5 \n Verifying : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 4/5 \n Verifying : libtevent-0.9.39-1.el7.x86_64 5/5 \n\nInstalled:\n certmonger.x86_64 0:0.78.4-17.el7_9 \n\nDependency Installed:\n libtalloc.x86_64 0:2.1.16-1.el7 \n libtevent.x86_64 0:0.9.39-1.el7 \n xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 \n xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 \n\nComplete!\n" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 27 July 2024 13:17:33 +0000 (0:00:05.792) 0:00:15.296 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 27 July 2024 13:17:33 +0000 (0:00:00.219) 0:00:15.515 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 27 July 2024 13:17:33 +0000 (0:00:00.156) 0:00:15.672 ********* 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": "syslog.target dbus.service network.target basic.target systemd-journald.socket system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 27 July 2024 13:17:34 +0000 (0:00:00.498) 0:00:16.171 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 27 July 2024 13:17:35 +0000 (0:00:01.184) 0:00:17.356 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 27 July 2024 13:17:35 +0000 (0:00:00.031) 0:00:17.387 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 27 July 2024 13:17:35 +0000 (0:00:00.018) 0:00:17.406 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 27 July 2024 13:17:35 +0000 (0:00:00.019) 0:00:17.426 ********* 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-cipp1edu3c/tests/tests_fs_attrs.yml:32 Saturday 27 July 2024 13:17:35 +0000 (0:00:00.028) 0:00:17.454 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:61 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.552) 0:00:18.006 ********* included: /WORKDIR/git-weekly-cipp1edu3c/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-cipp1edu3c/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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.023) 0:00:18.030 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.008) 0:00:18.038 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.012) 0:00:18.051 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.010) 0:00:18.061 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.370) 0:00:18.432 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.009) 0:00:18.441 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086254.9467685, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4b9807d217fd840b9e6b01c8d0a33e62390dcf0e", "ctime": 1722086254.979768, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172756, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722086254.9427686, "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": "1518981285", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.140) 0:00:18.582 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.012) 0:00:18.595 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.025) 0:00:18.620 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.020) 0:00:18.640 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086254.899769, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2221898a4b3b6fa19ae0a2b31635ce2e94e21fe9", "ctime": 1722086254.980768, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172755, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722086254.9427686, "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": "1518981272", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.146) 0:00:18.787 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:17:36 +0000 (0:00:00.013) 0:00:18.800 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.025) 0:00:18.825 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "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": "B8:5E:A5:D1:77:CB:6A:D0:22:D0:E1:9E:EA:DD:5A:E7:D1:F5:39:E8" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "76:24:E4:04:4C:E9:CF:F7:F6:15:91:8F:3C:AE:8F:7A:84:B7:81:15:90:30:C8:2E:39:4D:B4:CB:55:72:38:9D:F0:FB:C3:B1:E1:4B:11:84:A5:D7:97:5A:1E:7A:6E:AA:C9:AA:E4:B3:FD:B6:E7:DD:7C:87:E9:E6:67:6D:3A:64:66:07:BF:17:D8:C0:16:AA:A9:0D:4F:89:94:BC:75:92:03:26:DF:47:2E:AA:B2:05:3B:D6:87:84:C6:9C:47:1A:68:A8:95:0A:E6:ED:8E:D9:0B:16:8F:70:18:CD:8D:C2:C3:50:A5:46:D6:F0:5A:51:06:20:8C:9B:F2:E7:60:83:D9:E7:D2:C1:DE:09:9D:D9:9C:49:13:ED:FA:B7:44:BB:96:3B:D4:58:DB:75:55:43:9F:71:B8:6E:88:11:16:9C:FC:2A:2A:8C:CF:F2:51:01:B6:EB:30:0E:E9:D7:5B:84:CF:6D:FC:3F:DC:5F:F7:26:6B:46:5C:96:FD:1F:65:5C:82:73:06:9C:27:37:71:77:6C:09:98:16:2C:13:42:9C:AC:99:C6:52:9B:3D:EC:3D:73:F5:4D:DE:73:D0:29:1B:5D:20:D4:B5:49:8E:EE:0E:DA:51:51:8E:8A:06:C5:86:2B:4B:AD:BC:5B:82:AF:9E:6C:39:41:BE:2F:84:0B:63" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131734Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.395) 0:00:19.221 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "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": "B8:5E:A5:D1:77:CB:6A:D0:22:D0:E1:9E:EA:DD:5A:E7:D1:F5:39:E8" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "76:24:E4:04:4C:E9:CF:F7:F6:15:91:8F:3C:AE:8F:7A:84:B7:81:15:90:30:C8:2E:39:4D:B4:CB:55:72:38:9D:F0:FB:C3:B1:E1:4B:11:84:A5:D7:97:5A:1E:7A:6E:AA:C9:AA:E4:B3:FD:B6:E7:DD:7C:87:E9:E6:67:6D:3A:64:66:07:BF:17:D8:C0:16:AA:A9:0D:4F:89:94:BC:75:92:03:26:DF:47:2E:AA:B2:05:3B:D6:87:84:C6:9C:47:1A:68:A8:95:0A:E6:ED:8E:D9:0B:16:8F:70:18:CD:8D:C2:C3:50:A5:46:D6:F0:5A:51:06:20:8C:9B:F2:E7:60:83:D9:E7:D2:C1:DE:09:9D:D9:9C:49:13:ED:FA:B7:44:BB:96:3B:D4:58:DB:75:55:43:9F:71:B8:6E:88:11:16:9C:FC:2A:2A:8C:CF:F2:51:01:B6:EB:30:0E:E9:D7:5B:84:CF:6D:FC:3F:DC:5F:F7:26:6B:46:5C:96:FD:1F:65:5C:82:73:06:9C:27:37:71:77:6C:09:98:16:2C:13:42:9C:AC:99:C6:52:9B:3D:EC:3D:73:F5:4D:DE:73:D0:29:1B:5D:20:D4:B5:49:8E:EE:0E:DA:51:51:8E:8A:06:C5:86:2B:4B:AD:BC:5B:82:AF:9E:6C:39:41:BE:2F:84:0B:63" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131734Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.011) 0:00:19.233 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.020) 0:00:19.253 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.012) 0:00:19.265 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.023) 0:00:19.288 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.022) 0:00:19.311 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.028) 0:00:19.340 ********* 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.052073", "end": "2024-07-27 13:17:37.762785", "rc": 0, "start": "2024-07-27 13:17:37.710712" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.260) 0:00:19.601 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.019) 0:00:19.620 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.008) 0:00:19.629 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.010) 0:00:19.639 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:17:37 +0000 (0:00:00.012) 0:00:19.652 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.377) 0:00:20.030 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.016) 0:00:20.047 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086255.470761, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c4d59fc42e38f1a52f0083b7130e2341df7b0ec", "ctime": 1722086255.5097604, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172758, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722086255.466761, "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": "1518981321", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.149) 0:00:20.197 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.010) 0:00:20.208 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.021) 0:00:20.229 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.021) 0:00:20.251 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086255.4227617, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b3371828fada1f98ea026a8c7b00b78b5ce18ae7", "ctime": 1722086255.5097604, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172757, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722086255.466761, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 1040, "version": "1518981308", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.138) 0:00:20.389 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.013) 0:00:20.402 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.025) 0:00:20.428 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "42:E5:F0:6C:53:26:B6:68:DC:D0:0D:F9:EC:30:D8:7E:AC:01:FC:53" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CE:21:8D:EA:61:56:19:63:D7:DF:4B:FB:72:AB:EC:0D:2D:D7:10:40:CB:DF:01:E8:B0:EC:DD:B4:F8:52:55:06:22:80:95:71:7F:08:B1:15:6D:0C:2A:24:1C:9F:60:D2:F1:20:B5:FA:23:45:6B:3D:67:4A:23:17:6F:6A:2C:2F:A4:58:15:FD:32:B2:96:57:85:71:BC:2F:2C:4C:27:36:BF:B0:74:C4:D1:C8:7F:FF:00:07:02:76:BB:FF:02:93:62:F6:60:50:D8:87:59:0D:DB:52:61:D0:44:78:78:5F:3D:7D:96:B2:55:C6:C0:3D:0F:20:62:3F:CA:E9:20:88:56:CA:37:19:96:D7:C5:90:89:F5:1F:A0:45:06:DD:7B:1D:25:F4:5B:88:40:5A:39:28:B3:E2:65:F8:B0:22:81:3F:9E:91:DF:B3:D4:B0:7E:8C:4A:BD:3F:5A:7F:32:D7:6D:37:BA:B4:9B:80:FD:C1:59:BB:51:1B:50:EA:A9:D3:E6:B6:9E:79:F0:A8:2A:2B:99:D1:A9:AF:EF:AB:FF:8C:CA:08:E3:AC:1B:A4:92:E6:41:E1:86:9D:B3:33:71:CD:DE:5E:01:C8:A0:84:6B:6D:0F:7D:23:0D:ED:DF:85:FD:51:B4:75:B9:49:B3:3A:2B:50:7D:26:EF:04:B9:A8:13" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131735Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.211) 0:00:20.639 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "42:E5:F0:6C:53:26:B6:68:DC:D0:0D:F9:EC:30:D8:7E:AC:01:FC:53" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CE:21:8D:EA:61:56:19:63:D7:DF:4B:FB:72:AB:EC:0D:2D:D7:10:40:CB:DF:01:E8:B0:EC:DD:B4:F8:52:55:06:22:80:95:71:7F:08:B1:15:6D:0C:2A:24:1C:9F:60:D2:F1:20:B5:FA:23:45:6B:3D:67:4A:23:17:6F:6A:2C:2F:A4:58:15:FD:32:B2:96:57:85:71:BC:2F:2C:4C:27:36:BF:B0:74:C4:D1:C8:7F:FF:00:07:02:76:BB:FF:02:93:62:F6:60:50:D8:87:59:0D:DB:52:61:D0:44:78:78:5F:3D:7D:96:B2:55:C6:C0:3D:0F:20:62:3F:CA:E9:20:88:56:CA:37:19:96:D7:C5:90:89:F5:1F:A0:45:06:DD:7B:1D:25:F4:5B:88:40:5A:39:28:B3:E2:65:F8:B0:22:81:3F:9E:91:DF:B3:D4:B0:7E:8C:4A:BD:3F:5A:7F:32:D7:6D:37:BA:B4:9B:80:FD:C1:59:BB:51:1B:50:EA:A9:D3:E6:B6:9E:79:F0:A8:2A:2B:99:D1:A9:AF:EF:AB:FF:8C:CA:08:E3:AC:1B:A4:92:E6:41:E1:86:9D:B3:33:71:CD:DE:5E:01:C8:A0:84:6B:6D:0F:7D:23:0D:ED:DF:85:FD:51:B4:75:B9:49:B3:3A:2B:50:7D:26:EF:04:B9:A8:13" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131735Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.012) 0:00:20.652 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.022) 0:00:20.674 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.014) 0:00:20.689 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.022) 0:00:20.712 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.032) 0:00:20.744 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:17:38 +0000 (0:00:00.021) 0:00:20.765 ********* 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.051897", "end": "2024-07-27 13:17:39.125472", "rc": 0, "start": "2024-07-27 13:17:39.073575" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.209) 0:00:20.975 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:67 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.031) 0:00:21.006 ********* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.503) 0:00:21.509 ********* included: /WORKDIR/git-weekly-cipp1edu3c/.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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.011) 0:00:21.520 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.022) 0:00:21.543 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.011) 0:00:21.554 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.011) 0:00:21.565 ********* 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-cipp1edu3c/.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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 July 2024 13:17:39 +0000 (0:00:00.022) 0:00:21.588 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 27 July 2024 13:17:40 +0000 (0:00:00.909) 0:00:22.498 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 27 July 2024 13:17:41 +0000 (0:00:00.379) 0:00:22.878 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 27 July 2024 13:17:41 +0000 (0:00:00.157) 0:00:23.035 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 27 July 2024 13:17:41 +0000 (0:00:00.154) 0:00:23.190 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-07-27 13:17:34 UTC", "ActiveEnterTimestampMonotonic": "1286588624", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice systemd-journald.socket basic.target network.target dbus.service syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-27 13:17:34 UTC", "AssertTimestampMonotonic": "1286557906", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-07-27 13:17:34 UTC", "ConditionTimestampMonotonic": "1286557905", "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": "27387", "ExecMainStartTimestamp": "Sat 2024-07-27 13:17:34 UTC", "ExecMainStartTimestampMonotonic": "1286558719", "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-07-27 13:17:34 UTC] ; stop_time=[n/a] ; pid=27387 ; 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-07-27 13:17:34 UTC", "InactiveExitTimestampMonotonic": "1286558763", "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": "27387", "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-07-27 13:17:34 UTC", "WatchdogTimestampMonotonic": "1286588564", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 27 July 2024 13:17:41 +0000 (0:00:00.231) 0:00:23.422 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 27 July 2024 13:17:42 +0000 (0:00:01.118) 0:00:24.541 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 27 July 2024 13:17:42 +0000 (0:00:00.029) 0:00:24.571 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 27 July 2024 13:17:42 +0000 (0:00:00.019) 0:00:24.590 ********* 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-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 27 July 2024 13:17:42 +0000 (0:00:00.019) 0:00:24.609 ********* 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-cipp1edu3c/tests/tests_fs_attrs.yml:85 Saturday 27 July 2024 13:17:42 +0000 (0:00:00.043) 0:00:24.653 ********* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:112 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.512) 0:00:25.165 ********* included: /WORKDIR/git-weekly-cipp1edu3c/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-cipp1edu3c/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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.021) 0:00:25.187 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.010) 0:00:25.198 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.014) 0:00:25.213 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.031) 0:00:25.245 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.410) 0:00:25.655 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.009) 0:00:25.664 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086262.0136683, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a27fc8e7946c46d33b59f29289fa5e91116d94ee", "ctime": 1722086262.1256666, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172760, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722086262.0086682, "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": "1518981410", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.140) 0:00:25.805 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:17:43 +0000 (0:00:00.011) 0:00:25.816 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.020) 0:00:25.836 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.018) 0:00:25.855 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086261.9636688, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c569cf8cd27fef0d5cfdba1b4ce2dcfb273016b7", "ctime": 1722086262.1266665, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172759, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722086262.0086682, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "1518981397", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.149) 0:00:26.004 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.010) 0:00:26.015 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.020) 0:00:26.035 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "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": "9C:F4:18:D3:F8:77:50:6A:34:72:BD:56:8A:CD:BD:8D:A7:8C:D5:69" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A3:6B:8A:8A:60:71:16:C7:49:DE:15:75:F5:0D:92:45:36:9F:5D:B2:7A:35:58:C2:33:B1:5E:81:75:63:1A:67:E7:EA:77:01:6B:A4:7C:D0:82:B2:AA:A1:D0:45:4B:33:DB:98:F6:51:A6:32:F2:61:BE:55:AF:C8:B7:1F:4F:F7:1A:D9:98:4C:46:23:5A:7E:B8:01:35:21:0C:16:DE:8C:8F:1D:CC:4A:BE:C4:FF:9F:F3:E1:2B:66:A3:3C:B8:6B:34:8E:BC:32:E7:EB:CA:A9:50:30:3E:03:DA:F8:FC:DD:55:EE:B0:EB:EF:D6:11:BC:07:7F:B5:27:6B:59:CD:17:A3:58:1F:FA:7B:BA:A2:C5:EE:25:23:C1:1D:82:88:20:A8:41:1D:B2:18:D9:E2:86:94:3D:D2:17:49:98:C7:96:92:71:F7:40:AB:0D:85:EB:1B:53:B8:17:D9:93:B3:8C:50:51:FC:EE:E1:BE:CC:35:4A:DF:B6:0F:C2:E6:2E:56:7C:25:07:01:6B:83:07:CA:3E:FF:07:BF:65:0B:6D:0D:78:B6:4B:B8:E4:9F:17:51:91:46:1E:56:4A:40:81:4E:44:F5:53:9F:F1:20:DC:D9:C3:1C:09:3B:09:DF:E7:6F:BB:A1:09:65:5B:7E:03:B3:C5:B0:A5:0D:B9:BE:61:50" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131742Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.204) 0:00:26.240 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "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": "9C:F4:18:D3:F8:77:50:6A:34:72:BD:56:8A:CD:BD:8D:A7:8C:D5:69" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A3:6B:8A:8A:60:71:16:C7:49:DE:15:75:F5:0D:92:45:36:9F:5D:B2:7A:35:58:C2:33:B1:5E:81:75:63:1A:67:E7:EA:77:01:6B:A4:7C:D0:82:B2:AA:A1:D0:45:4B:33:DB:98:F6:51:A6:32:F2:61:BE:55:AF:C8:B7:1F:4F:F7:1A:D9:98:4C:46:23:5A:7E:B8:01:35:21:0C:16:DE:8C:8F:1D:CC:4A:BE:C4:FF:9F:F3:E1:2B:66:A3:3C:B8:6B:34:8E:BC:32:E7:EB:CA:A9:50:30:3E:03:DA:F8:FC:DD:55:EE:B0:EB:EF:D6:11:BC:07:7F:B5:27:6B:59:CD:17:A3:58:1F:FA:7B:BA:A2:C5:EE:25:23:C1:1D:82:88:20:A8:41:1D:B2:18:D9:E2:86:94:3D:D2:17:49:98:C7:96:92:71:F7:40:AB:0D:85:EB:1B:53:B8:17:D9:93:B3:8C:50:51:FC:EE:E1:BE:CC:35:4A:DF:B6:0F:C2:E6:2E:56:7C:25:07:01:6B:83:07:CA:3E:FF:07:BF:65:0B:6D:0D:78:B6:4B:B8:E4:9F:17:51:91:46:1E:56:4A:40:81:4E:44:F5:53:9F:F1:20:DC:D9:C3:1C:09:3B:09:DF:E7:6F:BB:A1:09:65:5B:7E:03:B3:C5:B0:A5:0D:B9:BE:61:50" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131742Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.012) 0:00:26.252 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.019) 0:00:26.271 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.010) 0:00:26.282 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.018) 0:00:26.301 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.020) 0:00:26.322 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.020) 0:00:26.343 ********* 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.057149", "end": "2024-07-27 13:17:44.690765", "rc": 0, "start": "2024-07-27 13:17:44.633616" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.185) 0:00:26.529 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.019) 0:00:26.548 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.008) 0:00:26.557 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.010) 0:00:26.567 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 13:17:44 +0000 (0:00:00.010) 0:00:26.578 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.370) 0:00:26.949 ********* 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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.008) 0:00:26.957 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086262.5546606, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "38d8892d684b6d8009ce0a6b28886ec4eb718973", "ctime": 1722086262.5506606, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172762, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722086262.5506606, "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": "1518981446", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.138) 0:00:27.095 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.012) 0:00:27.108 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.028) 0:00:27.137 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.022) 0:00:27.159 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1722086262.5066612, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b57e25cf088b0d42c30877505cdbb4e6a2fa2c5f", "ctime": 1722086262.5506606, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172761, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722086262.5506606, "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": "1518981433", "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-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.140) 0:00:27.299 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.012) 0:00:27.312 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.020) 0:00:27.333 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "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": "AA:44:2D:EE:8D:F2:F7:AC:FC:C5:51:DE:29:2C:26:6D:91:A5:82:39" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "99:AE:48:43:EF:3F:08:DC:67:F0:6D:D4:2C:D5:16:E3:0C:BB:40:73:60:8C:BA:AB:73:50:1D:E6:56:91:FC:F4:70:5F:61:73:CD:41:C1:8C:89:CF:0F:BB:C7:A6:15:EF:AF:0C:B8:81:6C:D7:76:56:BC:93:28:07:E8:5B:21:03:C5:46:79:20:4A:DA:88:78:F8:37:53:10:D9:18:D4:25:A7:3C:3B:3B:73:EE:EF:BF:4C:54:AF:4D:37:D8:68:31:B1:27:64:E5:24:0A:21:77:EE:6A:AF:22:64:4B:50:85:4F:6C:B4:70:74:28:A2:02:7C:64:7E:89:B6:38:48:44:9E:71:2F:4B:41:EA:EE:2B:7D:11:BC:7E:C0:6E:B1:00:46:70:9E:CD:4D:CE:97:25:3A:17:E4:9F:42:D4:88:20:2B:4F:71:23:42:B8:72:99:5B:77:D9:4A:2E:B3:4A:1F:CB:97:FA:8D:BC:45:04:3E:3D:D2:A9:6F:33:F2:1A:11:E6:C0:34:A8:17:51:8E:F8:65:33:0D:7A:92:A6:3F:EE:8B:01:E6:62:E8:F6:4D:33:E0:23:0C:31:60:A4:43:ED:C5:23:E2:AA:76:8B:CE:BF:A6:16:F3:25:7F:0F:27:1B:6C:79:79:62:81:35:17:41:ED:78:08:4B:22:2C:B0:06" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131742Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.208) 0:00:27.542 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:3B:DD:1E:38:8B:CE:DB:5C:04:3C:48:3A:B3:CE:7C:78:6D:66:8C" }, "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": "AA:44:2D:EE:8D:F2:F7:AC:FC:C5:51:DE:29:2C:26:6D:91:A5:82:39" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "99:AE:48:43:EF:3F:08:DC:67:F0:6D:D4:2C:D5:16:E3:0C:BB:40:73:60:8C:BA:AB:73:50:1D:E6:56:91:FC:F4:70:5F:61:73:CD:41:C1:8C:89:CF:0F:BB:C7:A6:15:EF:AF:0C:B8:81:6C:D7:76:56:BC:93:28:07:E8:5B:21:03:C5:46:79:20:4A:DA:88:78:F8:37:53:10:D9:18:D4:25:A7:3C:3B:3B:73:EE:EF:BF:4C:54:AF:4D:37:D8:68:31:B1:27:64:E5:24:0A:21:77:EE:6A:AF:22:64:4B:50:85:4F:6C:B4:70:74:28:A2:02:7C:64:7E:89:B6:38:48:44:9E:71:2F:4B:41:EA:EE:2B:7D:11:BC:7E:C0:6E:B1:00:46:70:9E:CD:4D:CE:97:25:3A:17:E4:9F:42:D4:88:20:2B:4F:71:23:42:B8:72:99:5B:77:D9:4A:2E:B3:4A:1F:CB:97:FA:8D:BC:45:04:3E:3D:D2:A9:6F:33:F2:1A:11:E6:C0:34:A8:17:51:8E:F8:65:33:0D:7A:92:A6:3F:EE:8B:01:E6:62:E8:F6:4D:33:E0:23:0C:31:60:A4:43:ED:C5:23:E2:AA:76:8B:CE:BF:A6:16:F3:25:7F:0F:27:1B:6C:79:79:62:81:35:17:41:ED:78:08:4B:22:2C:B0:06" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727131734Z", "not_valid_before": "20240727131742Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.012) 0:00:27.554 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.020) 0:00:27.574 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.012) 0:00:27.587 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.019) 0:00:27.606 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.023) 0:00:27.630 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 13:17:45 +0000 (0:00:00.024) 0:00:27.655 ********* 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.056789", "end": "2024-07-27 13:17:46.002110", "rc": 0, "start": "2024-07-27 13:17:45.945321" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 13:17:46 +0000 (0:00:00.185) 0:00:27.841 ********* 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 27 July 2024 13:17:46 +0000 (0:00:00.024) 0:00:27.865 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 7.11s /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 5.79s /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.18s /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.12s /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.03s /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:2 --------------------- fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.91s /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.55s /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.52s /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.51s /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:67 -------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.50s /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure python3 is installed --------------------------------------------- 0.41s /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Parse certificate ------------------------------------------------------- 0.40s /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.38s /WORKDIR/git-weekly-cipp1edu3c/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.37s /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.37s /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:18 Ensure user exists ------------------------------------------------------ 0.36s /WORKDIR/git-weekly-cipp1edu3c/tests/tests_fs_attrs.yml:5 --------------------- Retrieve auto-renew flag ------------------------------------------------ 0.26s /WORKDIR/git-weekly-cipp1edu3c/tests/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.23s /WORKDIR/git-weekly-cipp1edu3c/.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. ---^---^---^---^---^---