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
8250dba0
Commit
8250dba0
authored
Nov 18, 2014
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9534 from mmicael1/devel
Add tags options [to ansible pull - ed]
parents
25607e5c
a33dccfa
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 @
8250dba0
...
...
@@ -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