#2073 - Support setting to prevent Tower from pulling from requirements.yml files for an SCM project

This commit is contained in:
John Westcott IV
2018-07-17 13:03:47 -04:00
parent f0707ad701
commit 0ba8022eac
6 changed files with 26 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
# scm_accept_hostkey: true/false (only for git, set automatically)
# scm_revision: current revision in tower
# scm_revision_output: where to store gathered revision (temporary file)
# roles_enabled: Allow us to pull roles from a requirements.yml file
- hosts: all
connection: local
@@ -152,4 +153,4 @@
chdir: "{{project_path|quote}}/roles"
when: doesRequirementsExist.stat.exists and scm_result is defined
when: scm_full_checkout|bool
when: scm_full_checkout|bool and roles_enabled|bool