Only turn off Galaxy cert verification via toggle (#3933)

This commit is contained in:
Alan Rominger
2019-10-31 22:56:48 -04:00
committed by Ryan Petrello
parent c7cabfa785
commit 8e7d607a47
3 changed files with 16 additions and 1 deletions

View File

@@ -1938,7 +1938,8 @@ class RunProjectUpdate(BaseTask):
env['TMP'] = settings.AWX_PROOT_BASE_PATH
env['PROJECT_UPDATE_ID'] = str(project_update.pk)
env['ANSIBLE_CALLBACK_PLUGINS'] = self.get_path_to('..', 'plugins', 'callback')
env['ANSIBLE_GALAXY_IGNORE'] = True
if settings.GALAXY_IGNORE_CERTS:
env['ANSIBLE_GALAXY_IGNORE'] = True
# Set up the public Galaxy server, if enabled
if settings.PUBLIC_GALAXY_ENABLED:
galaxy_servers = [settings.PUBLIC_GALAXY_SERVER]