Commit 8250dba0 by Brian Coca

Merge pull request #9534 from mmicael1/devel

Add tags options [to ansible pull - ed]
parents 25607e5c a33dccfa
......@@ -135,6 +135,8 @@ def main(args):
help="vault password file")
parser.add_option('-K', '--ask-sudo-pass', default=False, dest='ask_sudo_pass', action='store_true',
help='ask for sudo password')
parser.add_option('-t', '--tags', dest='tags', default=False,
help='only run plays and tasks tagged with these values')
options, args = parser.parse_args(args)
hostname = socket.getfqdn()
......@@ -214,6 +216,8 @@ def main(args):
cmd += ' -e "%s"' % ev
if options.ask_sudo_pass:
cmd += ' -K'
if options.tags:
cmd += ' -t "%s"' % options.tags
os.chdir(options.dest)
# RUN THE PLAYBOOK COMMAND
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment