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
b74105c6
Commit
b74105c6
authored
Feb 26, 2014
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --vault-password-file to bin/ansible-pull
parent
d6b912c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
bin/ansible-pull
+6
-0
No files found.
bin/ansible-pull
View file @
b74105c6
...
...
@@ -46,6 +46,7 @@ import datetime
import
socket
from
ansible
import
utils
from
ansible.utils
import
cmd_functions
from
ansible
import
errors
DEFAULT_REPO_TYPE
=
'git'
DEFAULT_PLAYBOOK
=
'local.yml'
...
...
@@ -123,6 +124,8 @@ def main(args):
default
=
DEFAULT_REPO_TYPE
,
help
=
'Module name used to check out repository. '
'Default is
%
s.'
%
DEFAULT_REPO_TYPE
)
parser
.
add_option
(
'--vault-password-file'
,
dest
=
'vault_password_file'
,
help
=
"vault password file"
)
options
,
args
=
parser
.
parse_args
(
args
)
hostname
=
socket
.
getfqdn
()
...
...
@@ -178,6 +181,9 @@ def main(args):
return
1
cmd
=
'ansible-playbook
%
s
%
s'
%
(
base_opts
,
playbook
)
import
epdb
;
epdb
.
st
()
if
options
.
vault_password_file
:
cmd
+=
" --vault-password-file=
%
s"
%
options
.
vault_password_file
if
options
.
inventory
:
cmd
+=
' -i "
%
s"'
%
options
.
inventory
os
.
chdir
(
options
.
dest
)
...
...
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