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
c09e4651
Commit
c09e4651
authored
Mar 17, 2014
by
James Tanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5864 from stevetjoa/ansible
adding -K flag for ask-sudo-pass to ansible-pull
parents
70f4e080
335bc1ee
Show 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 @
c09e4651
...
@@ -132,6 +132,8 @@ def main(args):
...
@@ -132,6 +132,8 @@ def main(args):
'Default is
%
s.'
%
DEFAULT_REPO_TYPE
)
'Default is
%
s.'
%
DEFAULT_REPO_TYPE
)
parser
.
add_option
(
'--vault-password-file'
,
dest
=
'vault_password_file'
,
parser
.
add_option
(
'--vault-password-file'
,
dest
=
'vault_password_file'
,
help
=
"vault password file"
)
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'
)
options
,
args
=
parser
.
parse_args
(
args
)
options
,
args
=
parser
.
parse_args
(
args
)
hostname
=
socket
.
getfqdn
()
hostname
=
socket
.
getfqdn
()
...
@@ -204,6 +206,8 @@ def main(args):
...
@@ -204,6 +206,8 @@ def main(args):
cmd
+=
' -i "
%
s"'
%
options
.
inventory
cmd
+=
' -i "
%
s"'
%
options
.
inventory
for
ev
in
options
.
extra_vars
:
for
ev
in
options
.
extra_vars
:
cmd
+=
' -e "
%
s"'
%
ev
cmd
+=
' -e "
%
s"'
%
ev
if
options
.
ask_sudo_pass
:
cmd
+=
' -K'
os
.
chdir
(
options
.
dest
)
os
.
chdir
(
options
.
dest
)
# RUN THE PLAYBOOK COMMAND
# 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