# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* Thursday 18 August 2022 22:11:47 +0000 (0:00:00.019) 0:00:00.019 ******* ok: [sut] TASK [Ensure user exists] ****************************************************** Thursday 18 August 2022 22:11:48 +0000 (0:00:01.040) 0:00:01.059 ******* 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] ***************************************** Thursday 18 August 2022 22:11:49 +0000 (0:00:00.664) 0:00:01.724 ******* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* Thursday 18 August 2022 22:11:49 +0000 (0:00:00.565) 0:00:02.289 ******* ok: [sut] TASK [linux-system-roles.certificate : Set version specific variables] ********* Thursday 18 August 2022 22:11:50 +0000 (0:00:00.686) 0:00:02.976 ******* included: /WORKDIR/dist-git-certificate-use_distro_python_cryptography-AzisEh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** Thursday 18 August 2022 22:11:50 +0000 (0:00:00.037) 0:00:03.014 ******* ok: [sut] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** Thursday 18 August 2022 22:11:50 +0000 (0:00:00.449) 0:00:03.463 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** Thursday 18 August 2022 22:11:51 +0000 (0:00:00.070) 0:00:03.533 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-7.fc35.noarch" ] } TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** Thursday 18 August 2022 22:11:54 +0000 (0:00:03.889) 0:00:07.422 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.15-2.fc35.x86_64", "Installed: dbus-tools-1:1.12.22-1.fc35.x86_64" ] } TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** Thursday 18 August 2022 22:11:59 +0000 (0:00:04.527) 0:00:11.950 ******* 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 [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** Thursday 18 August 2022 22:11:59 +0000 (0:00:00.464) 0:00:12.415 ******* 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 [linux-system-roles.certificate : Ensure provider service is running] ***** Thursday 18 August 2022 22:12:00 +0000 (0:00:00.305) 0:00:12.720 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "n/a", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestamp": "n/a", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus-broker.service basic.target systemd-journald.socket network.target dbus.socket sysinit.target syslog.target system.slice", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestamp": "n/a", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestamp": "n/a", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestamp": "n/a", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestamp": "n/a", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "n/a", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "n/a", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14799", "LimitNPROCSoft": "14799", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14799", "LimitSIGPENDINGSoft": "14799", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "n/a", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4439", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestamp": "n/a", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ Thursday 18 August 2022 22:12:01 +0000 (0:00:01.193) 0:00:13.914 ******* 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. PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* Thursday 18 August 2022 22:12:03 +0000 (0:00:02.006) 0:00:15.920 ******* ok: [sut] TASK [Verify each certificate] ************************************************* Thursday 18 August 2022 22:12:04 +0000 (0:00:00.690) 0:00:16.611 ******* included: /WORKDIR/dist-git-certificate-use_distro_python_cryptography-AzisEh/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/dist-git-certificate-use_distro_python_cryptography-AzisEh/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] ***************************************************** Thursday 18 August 2022 22:12:04 +0000 (0:00:00.064) 0:00:16.676 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* Thursday 18 August 2022 22:12:04 +0000 (0:00:00.068) 0:00:16.744 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** Thursday 18 August 2022 22:12:06 +0000 (0:00:02.739) 0:00:19.484 ******* changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (21.2.3) Collecting pip Downloading pip-22.2.2-py3-none-any.whl (2.0 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 21.2.3 Uninstalling pip-21.2.3: Successfully uninstalled pip-21.2.3 Successfully installed pip-22.2.2 TASK [Ensure Python's cryptography is installed] ******************************* Thursday 18 August 2022 22:12:13 +0000 (0:00:06.431) 0:00:25.915 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install certreader] ****************************************************** Thursday 18 August 2022 22:12:16 +0000 (0:00:02.750) 0:00:28.666 ******* changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "certreader>=0.1.1" ], "name": [ "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Collecting certreader>=0.1.1 Downloading certreader-0.1.1.tar.gz (4.4 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting cryptography Downloading cryptography-37.0.4-cp36-abi3-manylinux_2_24_x86_64.whl (4.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.1/4.1 MB 28.4 MB/s eta 0:00:00 Collecting pyasn1 Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 kB 8.2 MB/s eta 0:00:00 Collecting pyyaml Downloading PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 682.2/682.2 kB 38.5 MB/s eta 0:00:00 Collecting cffi>=1.12 Downloading cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 kB 37.1 MB/s eta 0:00:00 Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 15.2 MB/s eta 0:00:00 Using legacy 'setup.py install' for certreader, since package 'wheel' is not installed. Installing collected packages: pyasn1, pyyaml, pycparser, cffi, cryptography, certreader Running setup.py install for certreader: started Running setup.py install for certreader: finished with status 'done' Successfully installed certreader-0.1.1 cffi-1.15.1 cryptography-37.0.4 pyasn1-0.4.8 pycparser-2.21 pyyaml-6.0 TASK [Retrieve certificate file stats] ***************************************** Thursday 18 August 2022 22:12:19 +0000 (0:00:03.333) 0:00:31.999 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1660860722.2568653, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "573a01e73b4c4fd71df61dc3c1bd1d996a55a897", "ctime": 1660860722.3958619, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 156837, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1660860722.2508655, "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": "2349192909", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** Thursday 18 August 2022 22:12:19 +0000 (0:00:00.433) 0:00:32.433 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* Thursday 18 August 2022 22:12:20 +0000 (0:00:00.091) 0:00:32.524 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** Thursday 18 August 2022 22:12:20 +0000 (0:00:00.119) 0:00:32.644 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* Thursday 18 August 2022 22:12:20 +0000 (0:00:00.135) 0:00:32.780 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1660860722.195867, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "28d4ff96262cac958a1f02634a0b7f8a5ea86b36", "ctime": 1660860722.3968618, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 156836, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1660860722.2508655, "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": "1892456798", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** Thursday 18 August 2022 22:12:20 +0000 (0:00:00.276) 0:00:33.056 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** Thursday 18 August 2022 22:12:20 +0000 (0:00:00.051) 0:00:33.107 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* Thursday 18 August 2022 22:12:20 +0000 (0:00:00.071) 0:00:33.179 ******* ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_fs_attrs.crt" ], "delta": "0:00:00.274275", "end": "2022-08-18 22:12:21.368503", "rc": 0, "start": "2022-08-18 22:12:21.094228" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "5A:05:94:9B:49:79:75:96:90:0C:C6:84:08:DF:39:7A:61:94:38:E0", "critical": false }, "authorityKeyIdentifier": { "value": "94:59:E7:C4:B0:45:00:9C:35:49:2A:26:DC:54:D9:67:67:68:9B:E1", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "74:A9:AA:A9:1B:71:37:BB:DE:9B:F9:EB:74:29:76:75:F0:12:60:BE:7B:07:C2:48:48:42:5D:00:46:32:49:54:3B:A0:B8:61:E3:6F:7E:17:5D:D7:D4:E8:B7:42:A8:96:BF:88:C0:62:EC:12:75:D0:44:E2:23:3B:0A:EE:BF:D2:EF:50:BE:C1:AE:E3:91:8E:1D:31:1D:E9:27:BC:7A:5C:21:1F:F7:C0:DF:E0:20:B5:3D:58:C2:14:A7:3D:1C:4D:C1:89:C3:AF:01:E1:A6:62:E7:0C:70:76:99:0E:E5:F8:47:1D:4C:E5:4A:8C:B0:14:47:59:DF:4B:FF:86:E0:26:EC:54:8E:3E:98:3A:47:22:FA:54:C9:C7:B5:E7:48:88:5B:D7:FB:06:5B:17:EA:26:32:C2:D9:42:2B:E4:FA:8D:60:98:AC:8D:7D:E2:42:21:81:75:1B:1D:84:F3:DF:5B:83:F0:C2:E7:AF:0E:DE:B9:71:B1:63:3E:EC:33:03:F3:C9:D5:8E:BE:D3:2C:84:1B:C0:FC:98:15:9E:D3:22:6A:DC:B2:CA:B5:11:D6:EF:DA:D1:83:F3:24:09:15:9F:61:A1:E9:0E:D2:E5:48:FC:E3:3D:7E:07:70:6E:41:59:09:E7:2E:9D:D8:80:C9:96:EF:93:6D:73:DB:E8:D3:AF:77" }, "key_size": 2048, "validity": { "not_valid_after": "2023-08-18 22:12:01", "not_valid_before": "2022-08-18 22:12:02" } } TASK [Load certificate YAML to cert_issued variable] *************************** Thursday 18 August 2022 22:12:21 +0000 (0:00:00.710) 0:00:33.889 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "94:59:E7:C4:B0:45:00:9C:35:49:2A:26:DC:54:D9:67:67:68:9B:E1" }, "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": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "5A:05:94:9B:49:79:75:96:90:0C:C6:84:08:DF:39:7A:61:94:38:E0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "74:A9:AA:A9:1B:71:37:BB:DE:9B:F9:EB:74:29:76:75:F0:12:60:BE:7B:07:C2:48:48:42:5D:00:46:32:49:54:3B:A0:B8:61:E3:6F:7E:17:5D:D7:D4:E8:B7:42:A8:96:BF:88:C0:62:EC:12:75:D0:44:E2:23:3B:0A:EE:BF:D2:EF:50:BE:C1:AE:E3:91:8E:1D:31:1D:E9:27:BC:7A:5C:21:1F:F7:C0:DF:E0:20:B5:3D:58:C2:14:A7:3D:1C:4D:C1:89:C3:AF:01:E1:A6:62:E7:0C:70:76:99:0E:E5:F8:47:1D:4C:E5:4A:8C:B0:14:47:59:DF:4B:FF:86:E0:26:EC:54:8E:3E:98:3A:47:22:FA:54:C9:C7:B5:E7:48:88:5B:D7:FB:06:5B:17:EA:26:32:C2:D9:42:2B:E4:FA:8D:60:98:AC:8D:7D:E2:42:21:81:75:1B:1D:84:F3:DF:5B:83:F0:C2:E7:AF:0E:DE:B9:71:B1:63:3E:EC:33:03:F3:C9:D5:8E:BE:D3:2C:84:1B:C0:FC:98:15:9E:D3:22:6A:DC:B2:CA:B5:11:D6:EF:DA:D1:83:F3:24:09:15:9F:61:A1:E9:0E:D2:E5:48:FC:E3:3D:7E:07:70:6E:41:59:09:E7:2E:9D:D8:80:C9:96:EF:93:6D:73:DB:E8:D3:AF:77" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-08-18 22:12:01", "not_valid_before": "2022-08-18 22:12:02" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** Thursday 18 August 2022 22:12:21 +0000 (0:00:00.062) 0:00:33.952 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** Thursday 18 August 2022 22:12:21 +0000 (0:00:00.067) 0:00:34.019 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* Thursday 18 August 2022 22:12:21 +0000 (0:00:00.050) 0:00:34.070 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** Thursday 18 August 2022 22:12:21 +0000 (0:00:00.074) 0:00:34.144 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** Thursday 18 August 2022 22:12:21 +0000 (0:00:00.072) 0:00:34.217 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ Thursday 18 August 2022 22:12:21 +0000 (0:00:00.074) 0:00:34.292 ******* 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.054418", "end": "2022-08-18 22:12:22.103902", "rc": 0, "start": "2022-08-18 22:12:22.049484" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** Thursday 18 August 2022 22:12:22 +0000 (0:00:00.333) 0:00:34.626 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** Thursday 18 August 2022 22:12:22 +0000 (0:00:00.068) 0:00:34.694 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* Thursday 18 August 2022 22:12:22 +0000 (0:00:00.041) 0:00:34.736 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** Thursday 18 August 2022 22:12:24 +0000 (0:00:02.692) 0:00:37.428 ******* ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.2.2) TASK [Ensure Python's cryptography is installed] ******************************* Thursday 18 August 2022 22:12:25 +0000 (0:00:00.992) 0:00:38.421 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install certreader] ****************************************************** Thursday 18 August 2022 22:12:28 +0000 (0:00:02.691) 0:00:41.112 ******* ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "certreader>=0.1.1" ], "name": [ "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cryptography in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (37.0.4) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography->certreader>=0.1.1) (1.15.1) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography->certreader>=0.1.1) (2.21) TASK [Retrieve certificate file stats] ***************************************** Thursday 18 August 2022 22:12:29 +0000 (0:00:00.882) 0:00:41.995 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1660860723.2438397, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3c4a476ab7226c7a85f7d1fe43c0680925cd4ba1", "ctime": 1660860723.3528368, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 156839, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1660860723.2388399, "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": "873815884", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** Thursday 18 August 2022 22:12:29 +0000 (0:00:00.271) 0:00:42.266 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* Thursday 18 August 2022 22:12:29 +0000 (0:00:00.048) 0:00:42.314 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** Thursday 18 August 2022 22:12:29 +0000 (0:00:00.071) 0:00:42.386 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* Thursday 18 August 2022 22:12:29 +0000 (0:00:00.067) 0:00:42.454 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1660860723.1828413, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9ce22a4ef23a8120ebd85bd70904a66b6da133b8", "ctime": 1660860723.3538368, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 156838, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1660860723.2388399, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "1077157221", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** Thursday 18 August 2022 22:12:30 +0000 (0:00:00.271) 0:00:42.725 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** Thursday 18 August 2022 22:12:30 +0000 (0:00:00.047) 0:00:42.772 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* Thursday 18 August 2022 22:12:30 +0000 (0:00:00.072) 0:00:42.844 ******* ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/certid.crt" ], "delta": "0:00:00.274287", "end": "2022-08-18 22:12:30.856575", "rc": 0, "start": "2022-08-18 22:12:30.582288" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "41:3A:99:70:6A:57:DD:44:DD:04:4B:E3:E4:3F:0B:F9:9B:8B:FD:74", "critical": false }, "authorityKeyIdentifier": { "value": "94:59:E7:C4:B0:45:00:9C:35:49:2A:26:DC:54:D9:67:67:68:9B:E1", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2C:94:44:AE:C7:18:08:9F:B2:1B:1E:13:AA:C3:B2:6C:27:C7:73:E3:F5:BF:DE:E5:66:65:50:9B:AF:81:2F:7A:B9:C3:D9:4F:DD:EB:D5:01:D5:09:04:B2:53:BB:AA:0B:06:20:1B:91:2A:0B:30:6E:E5:56:F6:E3:95:33:11:D2:8B:AF:8D:EC:E9:5D:5B:9E:E4:F9:71:B5:77:C2:C2:36:3D:9D:27:4F:96:48:2D:BA:B9:58:CD:A1:FC:CB:1A:0D:08:BA:90:6F:2C:72:8D:F1:52:5F:C1:4D:2B:90:B3:F5:76:29:10:B1:4C:E9:2C:55:43:38:5F:C7:41:CD:A6:CD:44:D9:C9:57:DD:B2:C5:19:7E:15:31:07:10:EC:FA:55:D4:B9:FD:E1:90:2C:38:31:AF:62:95:6C:F6:20:49:CD:F8:DB:9C:7A:2D:39:9B:10:87:CC:1A:2D:EA:60:A4:4A:04:E1:5B:71:AA:53:A2:6B:4F:90:CF:D3:26:00:A6:EA:82:EF:8A:47:D0:72:AC:C8:E9:44:EF:E6:05:DE:C0:A3:DC:2B:24:20:60:4A:FF:A3:60:56:28:DE:16:98:6D:4B:06:30:8C:F8:8C:F1:B7:66:C7:B6:64:B1:AF:79:1E:4A:85:E3:72:FD:84:F6:15:DE:F8:B8:17:54:55:C5:24:D9" }, "key_size": 2048, "validity": { "not_valid_after": "2023-08-18 22:12:01", "not_valid_before": "2022-08-18 22:12:03" } } TASK [Load certificate YAML to cert_issued variable] *************************** Thursday 18 August 2022 22:12:30 +0000 (0:00:00.535) 0:00:43.380 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "94:59:E7:C4:B0:45:00:9C:35:49:2A:26:DC:54:D9:67:67:68:9B:E1" }, "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": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "41:3A:99:70:6A:57:DD:44:DD:04:4B:E3:E4:3F:0B:F9:9B:8B:FD:74" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2C:94:44:AE:C7:18:08:9F:B2:1B:1E:13:AA:C3:B2:6C:27:C7:73:E3:F5:BF:DE:E5:66:65:50:9B:AF:81:2F:7A:B9:C3:D9:4F:DD:EB:D5:01:D5:09:04:B2:53:BB:AA:0B:06:20:1B:91:2A:0B:30:6E:E5:56:F6:E3:95:33:11:D2:8B:AF:8D:EC:E9:5D:5B:9E:E4:F9:71:B5:77:C2:C2:36:3D:9D:27:4F:96:48:2D:BA:B9:58:CD:A1:FC:CB:1A:0D:08:BA:90:6F:2C:72:8D:F1:52:5F:C1:4D:2B:90:B3:F5:76:29:10:B1:4C:E9:2C:55:43:38:5F:C7:41:CD:A6:CD:44:D9:C9:57:DD:B2:C5:19:7E:15:31:07:10:EC:FA:55:D4:B9:FD:E1:90:2C:38:31:AF:62:95:6C:F6:20:49:CD:F8:DB:9C:7A:2D:39:9B:10:87:CC:1A:2D:EA:60:A4:4A:04:E1:5B:71:AA:53:A2:6B:4F:90:CF:D3:26:00:A6:EA:82:EF:8A:47:D0:72:AC:C8:E9:44:EF:E6:05:DE:C0:A3:DC:2B:24:20:60:4A:FF:A3:60:56:28:DE:16:98:6D:4B:06:30:8C:F8:8C:F1:B7:66:C7:B6:64:B1:AF:79:1E:4A:85:E3:72:FD:84:F6:15:DE:F8:B8:17:54:55:C5:24:D9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-08-18 22:12:01", "not_valid_before": "2022-08-18 22:12:03" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** Thursday 18 August 2022 22:12:30 +0000 (0:00:00.065) 0:00:43.446 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** Thursday 18 August 2022 22:12:31 +0000 (0:00:00.069) 0:00:43.515 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* Thursday 18 August 2022 22:12:31 +0000 (0:00:00.050) 0:00:43.565 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** Thursday 18 August 2022 22:12:31 +0000 (0:00:00.065) 0:00:43.631 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** Thursday 18 August 2022 22:12:31 +0000 (0:00:00.066) 0:00:43.697 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ Thursday 18 August 2022 22:12:31 +0000 (0:00:00.067) 0:00:43.764 ******* 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.054754", "end": "2022-08-18 22:12:31.559552", "rc": 0, "start": "2022-08-18 22:12:31.504798" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** Thursday 18 August 2022 22:12:31 +0000 (0:00:00.315) 0:00:44.079 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=57 changed=10 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Thursday 18 August 2022 22:12:31 +0000 (0:00:00.078) 0:00:44.158 ******* =============================================================================== Install the package, force upgrade -------------------------------------- 6.43s linux-system-roles.certificate : Ensure provider packages are installed --- 4.53s linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 3.89s Install certreader ------------------------------------------------------ 3.33s Ensure Python's cryptography is installed ------------------------------- 2.75s Ensure python3 is installed --------------------------------------------- 2.74s Ensure python3 is installed --------------------------------------------- 2.69s Ensure Python's cryptography is installed ------------------------------- 2.69s linux-system-roles.certificate : Ensure certificate requests ------------ 2.01s linux-system-roles.certificate : Ensure provider service is running ----- 1.19s Gathering Facts --------------------------------------------------------- 1.04s Install the package, force upgrade -------------------------------------- 0.99s Install certreader ------------------------------------------------------ 0.88s Parse certificate ------------------------------------------------------- 0.71s Gathering Facts --------------------------------------------------------- 0.69s Gathering Facts --------------------------------------------------------- 0.69s Ensure user exists ------------------------------------------------------ 0.66s Ensure group "somegroup" exists ----------------------------------------- 0.57s Parse certificate ------------------------------------------------------- 0.54s linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.46s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---