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
1787c293
Commit
1787c293
authored
Aug 01, 2014
by
Will Thames
Committed by
Michael DeHaan
Aug 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved inventory handling when inventory does not yet exist
Fixes #8324 Improves #7667
parent
b0e863b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
bin/ansible-pull
+4
-1
No files found.
bin/ansible-pull
View file @
1787c293
...
...
@@ -49,6 +49,7 @@ import time
from
ansible
import
utils
from
ansible.utils
import
cmd_functions
from
ansible
import
errors
from
ansible
import
inventory
DEFAULT_REPO_TYPE
=
'git'
DEFAULT_PLAYBOOK
=
'local.yml'
...
...
@@ -150,7 +151,9 @@ def main(args):
now
=
datetime
.
datetime
.
now
()
print
>>
sys
.
stderr
,
now
.
strftime
(
"Starting ansible-pull at
%
F
%
T"
)
if
not
options
.
inventory
:
# Attempt to use the inventory passed in as an argument
# It might not yet have been downloaded so use localhost if note
if
not
options
.
inventory
or
not
os
.
path
.
exists
(
options
.
inventory
):
inv_opts
=
'localhost,'
else
:
inv_opts
=
options
.
inventory
...
...
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