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
1f0cdc5e
Commit
1f0cdc5e
authored
Feb 05, 2014
by
Ingmar Hupp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ansible-pull support for -e (--extra-vars) option (same as ansible-playbook) #5707
parent
77d5a183
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 @
1f0cdc5e
...
...
@@ -116,6 +116,8 @@ def main(args):
'Defaults to behavior of repository module.'
)
parser
.
add_option
(
'-i'
,
'--inventory-file'
,
dest
=
'inventory'
,
help
=
"location of the inventory host file"
)
parser
.
add_option
(
'-e'
,
'--extra-vars'
,
dest
=
"extra_vars"
,
action
=
"append"
,
help
=
"set additional variables as key=value or YAML/JSON"
,
default
=
[])
parser
.
add_option
(
'-v'
,
'--verbose'
,
default
=
False
,
action
=
"callback"
,
callback
=
increment_debug
,
help
=
'Pass -vvvv to ansible-playbook'
)
...
...
@@ -180,6 +182,8 @@ def main(args):
cmd
=
'ansible-playbook
%
s
%
s'
%
(
base_opts
,
playbook
)
if
options
.
inventory
:
cmd
+=
' -i "
%
s"'
%
options
.
inventory
for
ev
in
options
.
extra_vars
:
cmd
+=
' -e "
%
s"'
%
ev
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