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
79d91e02
Commit
79d91e02
authored
Feb 28, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates to ansible-playbook helper program
parent
42767b30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
bin/ans-playbook
+8
-4
No files found.
bin/ans-playbook
View file @
79d91e02
...
...
@@ -19,11 +19,16 @@
import
sys
import
ansible.playbook
from
ansible.scripts
import
base_ans_parser
,
error_print
import
ansible.constants
as
C
from
optparse
import
OptionParser
def
main
(
args
):
parser
=
base_ans_parser
(
output_path
=
False
)
parser
.
usage
=
"ans-playbook playbook.yml"
parser
=
OptionParser
()
parser
.
usage
=
"ans-playbook playbook.yml ..."
parser
.
add_option
(
'-f'
,
'--forks'
,
dest
=
'forks'
,
default
=
C
.
DEFAULT_FORKS
,
type
=
'int'
,
help
=
'set the number of forks to start up'
)
parser
.
add_option
(
"-L"
,
"--library"
,
dest
=
"module_path"
,
help
=
"path to module library"
,
default
=
C
.
DEFAULT_MODULE_PATH
)
options
,
args
=
parser
.
parse_args
(
args
)
if
len
(
args
)
==
0
:
...
...
@@ -34,7 +39,6 @@ def main(args):
pb
=
ansible
.
playbook
.
PlayBook
(
playbook
=
playbook
,
module_path
=
options
.
module_path
,
remote_user
=
options
.
remote_user
,
forks
=
options
.
forks
,
verbose
=
True
)
...
...
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