From b74105c689cc5770512d222c789af1699ecea37e Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 26 Feb 2014 14:52:57 -0500 Subject: [PATCH] Add --vault-password-file to bin/ansible-pull --- bin/ansible-pull | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ansible-pull b/bin/ansible-pull index 3253ced80c9..917c878d49b 100755 --- a/bin/ansible-pull +++ b/bin/ansible-pull @@ -46,6 +46,7 @@ import datetime import socket from ansible import utils from ansible.utils import cmd_functions +from ansible import errors DEFAULT_REPO_TYPE = 'git' DEFAULT_PLAYBOOK = 'local.yml' @@ -123,6 +124,8 @@ def main(args): default=DEFAULT_REPO_TYPE, help='Module name used to check out repository. ' 'Default is %s.' % DEFAULT_REPO_TYPE) + parser.add_option('--vault-password-file', dest='vault_password_file', + help="vault password file") options, args = parser.parse_args(args) hostname = socket.getfqdn() @@ -178,6 +181,9 @@ def main(args): return 1 cmd = 'ansible-playbook %s %s' % (base_opts, playbook) + import epdb; epdb.st() + if options.vault_password_file: + cmd += " --vault-password-file=%s" % options.vault_password_file if options.inventory: cmd += ' -i "%s"' % options.inventory os.chdir(options.dest)