summaryrefslogtreecommitdiffstats
path: root/bin/ansible-pull
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ansible-pull')
-rwxr-xr-xbin/ansible-pull11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/ansible-pull b/bin/ansible-pull
index 4708498..f369c39 100755
--- a/bin/ansible-pull
+++ b/bin/ansible-pull
@@ -24,7 +24,7 @@ from ansible import constants as C
from ansible import context
from ansible.cli.arguments import option_helpers as opt_help
from ansible.errors import AnsibleOptionsError
-from ansible.module_utils._text import to_native, to_text
+from ansible.module_utils.common.text.converters import to_native, to_text
from ansible.plugins.loader import module_loader
from ansible.utils.cmd_functions import run_cmd
from ansible.utils.display import Display
@@ -81,7 +81,7 @@ class PullCLI(CLI):
super(PullCLI, self).init_parser(
usage='%prog -U <repository> [options] [<playbook.yml>]',
- desc="pulls playbooks from a VCS repo and executes them for the local host")
+ desc="pulls playbooks from a VCS repo and executes them on target host")
# Do not add check_options as there's a conflict with --checkout/-C
opt_help.add_connect_options(self.parser)
@@ -275,8 +275,15 @@ class PullCLI(CLI):
for vault_id in context.CLIARGS['vault_ids']:
cmd += " --vault-id=%s" % vault_id
+ if context.CLIARGS['become_password_file']:
+ cmd += " --become-password-file=%s" % context.CLIARGS['become_password_file']
+
+ if context.CLIARGS['connection_password_file']:
+ cmd += " --connection-password-file=%s" % context.CLIARGS['connection_password_file']
+
for ev in context.CLIARGS['extra_vars']:
cmd += ' -e %s' % shlex.quote(ev)
+
if context.CLIARGS['become_ask_pass']:
cmd += ' --ask-become-pass'
if context.CLIARGS['skip_tags']: