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
2b24131b
Commit
2b24131b
authored
Sep 12, 2012
by
Matthew Johnson
Committed by
Stephen Fromm
Oct 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fetch the git repo before trying to find a playbook
parent
788e11f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
bin/ansible-pull
+7
-8
No files found.
bin/ansible-pull
View file @
2b24131b
...
...
@@ -78,6 +78,13 @@ def main(args):
now
=
datetime
.
datetime
.
now
()
print
now
.
strftime
(
"ansible-pull_started:
%
Y
%
m
%
d-
%
H
%
M-
%
S"
),
"
\n
"
git_opts
=
"repo=
%
s dest=
%
s version=
%
s"
%
(
options
.
url
,
options
.
dest
,
options
.
checkout
)
cmd
=
'ansible all -c local -m git -a "
%
s"'
%
git_opts
print
"cmd=
%
s"
%
cmd
,
"
\n
"
rc
=
_run
(
cmd
)
if
rc
!=
0
:
return
rc
hostname
=
"
%
s.yml"
%
platform
.
node
()
if
not
args
:
...
...
@@ -117,14 +124,6 @@ def main(args):
print
git_opts
=
"repo=
%
s dest=
%
s version=
%
s"
%
(
options
.
url
,
options
.
dest
,
options
.
checkout
)
cmd
=
'ansible all -c local -m git -a "
%
s"'
%
git_opts
print
"cmd=
%
s"
%
cmd
,
"
\n
"
rc
=
_run
(
cmd
)
if
rc
!=
0
:
return
rc
cmd
=
'ansible-playbook -c local
%
s'
%
playbook
print
"cmd=
%
s"
%
cmd
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