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
a4d01b08
Commit
a4d01b08
authored
Mar 06, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also search .json filenames
parent
79799f68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lib/ansible/constants.py
+2
-2
lib/ansible/playbook/play.py
+1
-0
No files found.
lib/ansible/constants.py
View file @
a4d01b08
...
@@ -93,8 +93,8 @@ else:
...
@@ -93,8 +93,8 @@ else:
DIST_MODULE_PATH
=
'/usr/share/ansible/'
DIST_MODULE_PATH
=
'/usr/share/ansible/'
# check all of these extensions when looking for yaml files for things like
# check all of these extensions when looking for yaml files for things like
# group variables
# group variables
-- really anything we can load
YAML_FILENAME_EXTENSIONS
=
[
""
,
".yml"
,
".yaml"
]
YAML_FILENAME_EXTENSIONS
=
[
""
,
".yml"
,
".yaml"
,
".json"
]
# sections in config file
# sections in config file
DEFAULTS
=
'defaults'
DEFAULTS
=
'defaults'
...
...
lib/ansible/playbook/play.py
View file @
a4d01b08
...
@@ -448,6 +448,7 @@ class Play(object):
...
@@ -448,6 +448,7 @@ class Play(object):
os
.
path
.
join
(
basepath
,
'main'
),
os
.
path
.
join
(
basepath
,
'main'
),
os
.
path
.
join
(
basepath
,
'main.yml'
),
os
.
path
.
join
(
basepath
,
'main.yml'
),
os
.
path
.
join
(
basepath
,
'main.yaml'
),
os
.
path
.
join
(
basepath
,
'main.yaml'
),
os
.
path
.
join
(
basepath
,
'main.json'
),
)
)
if
sum
([
os
.
path
.
isfile
(
x
)
for
x
in
mains
])
>
1
:
if
sum
([
os
.
path
.
isfile
(
x
)
for
x
in
mains
])
>
1
:
raise
errors
.
AnsibleError
(
"found multiple main files at
%
s, only one allowed"
%
(
basepath
))
raise
errors
.
AnsibleError
(
"found multiple main files at
%
s, only one allowed"
%
(
basepath
))
...
...
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