mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 05:00:07 -03:30
AC-1060 Add API support for vault password.
This commit is contained in:
@@ -176,9 +176,13 @@ class ProjectOptions(models.Model):
|
||||
# show up.
|
||||
matched = False
|
||||
try:
|
||||
for line in file(playbook):
|
||||
for n, line in enumerate(file(playbook)):
|
||||
if valid_re.match(line):
|
||||
matched = True
|
||||
# Any YAML file can also be encrypted with vault;
|
||||
# allow these to be used as the main playbook.
|
||||
elif n == 0 and line.startswith('$ANSIBLE_VAULT;'):
|
||||
matched = True
|
||||
except IOError:
|
||||
continue
|
||||
if not matched:
|
||||
|
||||
Reference in New Issue
Block a user