summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Hosiawa <hosiawak@gmail.com>2014-04-28 19:48:52 +0200
committerJames Cammarata <jimi@sngx.net>2014-08-14 15:01:19 -0500
commitcd643f0d324e897a702f71e25df959e5968b4287 (patch)
treed2428dbeaa498822cc45386dc372433d34ae9eb5
parent3cf0f27f7b7c0008f4fcf3fddf7532080250f9ab (diff)
downloadansible-cd643f0d324e897a702f71e25df959e5968b4287.tar.gz
Add validate_certs option to apt_repository
-rw-r--r--library/packaging/apt_repository8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/packaging/apt_repository b/library/packaging/apt_repository
index a9f061ec37..c49b4003f4 100644
--- a/library/packaging/apt_repository
+++ b/library/packaging/apt_repository
@@ -55,6 +55,13 @@ options:
required: false
default: "yes"
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
version_added: "0.7"
requirements: [ python-apt ]
@@ -377,6 +384,7 @@ def main():
update_cache = dict(aliases=['update-cache'], type='bool', default='yes'),
# this should not be needed, but exists as a failsafe
install_python_apt=dict(required=False, default="yes", type='bool'),
+ validate_certs = dict(default='yes', type='bool'),
),
supports_check_mode=True,
)