From 7bc7f13856e78d0c07b88dba432c322c3d054a0c Mon Sep 17 00:00:00 2001 From: Aliaksandr Kharkevich Date: Mon, 20 Feb 2017 12:43:36 +0300 Subject: [PATCH] Add validate_certs options to gitlab_user and gitlab_group modules (#21415) --- lib/ansible/modules/source_control/gitlab_group.py | 2 +- lib/ansible/modules/source_control/gitlab_user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/source_control/gitlab_group.py b/lib/ansible/modules/source_control/gitlab_group.py index 5684f63e44a..ff19771abc4 100644 --- a/lib/ansible/modules/source_control/gitlab_group.py +++ b/lib/ansible/modules/source_control/gitlab_group.py @@ -191,7 +191,7 @@ def main(): # or with login_token try: if use_credentials: - git = gitlab.Gitlab(host=server_url) + git = gitlab.Gitlab(host=server_url, verify_ssl=verify_ssl) git.login(user=login_user, password=login_password) else: git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl) diff --git a/lib/ansible/modules/source_control/gitlab_user.py b/lib/ansible/modules/source_control/gitlab_user.py index 6a611553752..b136d1ea615 100644 --- a/lib/ansible/modules/source_control/gitlab_user.py +++ b/lib/ansible/modules/source_control/gitlab_user.py @@ -331,7 +331,7 @@ def main(): # or with login_token try: if use_credentials: - git = gitlab.Gitlab(host=server_url) + git = gitlab.Gitlab(host=server_url, verify_ssl=verify_ssl) git.login(user=login_user, password=login_password) else: git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)