mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add validate_certs option to apt_repository
This commit is contained in:
parent
053019c439
commit
60ff1c572e
1 changed files with 8 additions and 0 deletions
|
@ -55,6 +55,13 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: "yes"
|
default: "yes"
|
||||||
choices: [ "yes", "no" ]
|
choices: [ "yes", "no" ]
|
||||||
|
validate_certs:
|
||||||
|
description:
|
||||||
|
- If C(no), SSL certificates for the target repo will not be validated. This should only be used
|
||||||
|
on personally controlled sites using self-signed certificates.
|
||||||
|
required: false
|
||||||
|
default: 'yes'
|
||||||
|
choices: ['yes', 'no']
|
||||||
author: Alexander Saltanov
|
author: Alexander Saltanov
|
||||||
version_added: "0.7"
|
version_added: "0.7"
|
||||||
requirements: [ python-apt ]
|
requirements: [ python-apt ]
|
||||||
|
@ -377,6 +384,7 @@ def main():
|
||||||
update_cache = dict(aliases=['update-cache'], type='bool', default='yes'),
|
update_cache = dict(aliases=['update-cache'], type='bool', default='yes'),
|
||||||
# this should not be needed, but exists as a failsafe
|
# this should not be needed, but exists as a failsafe
|
||||||
install_python_apt=dict(required=False, default="yes", type='bool'),
|
install_python_apt=dict(required=False, default="yes", type='bool'),
|
||||||
|
validate_certs = dict(default='yes', type='bool'),
|
||||||
),
|
),
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue