Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
a33dccfa
Commit
a33dccfa
authored
Nov 10, 2014
by
mmicael1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tags options
Add -t OR --tags options to pass to ansible-playbook
parent
6a85f3eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bin/ansible-pull
+4
-0
No files found.
bin/ansible-pull
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment