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
daf5ecc7
Commit
daf5ecc7
authored
Aug 01, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3684 from stoned/fix-3668
Add extra module path early during playbook parsing.
parents
83481b32
84109392
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
lib/ansible/playbook/__init__.py
+3
-0
lib/ansible/utils/plugins.py
+2
-1
No files found.
lib/ansible/playbook/__init__.py
View file @
daf5ecc7
...
@@ -132,6 +132,9 @@ class PlayBook(object):
...
@@ -132,6 +132,9 @@ class PlayBook(object):
else
:
else
:
self
.
inventory
=
inventory
self
.
inventory
=
inventory
if
self
.
module_path
is
not
None
:
utils
.
plugins
.
module_finder
.
add_directory
(
self
.
module_path
)
self
.
basedir
=
os
.
path
.
dirname
(
playbook
)
or
'.'
self
.
basedir
=
os
.
path
.
dirname
(
playbook
)
or
'.'
utils
.
plugins
.
push_basedir
(
self
.
basedir
)
utils
.
plugins
.
push_basedir
(
self
.
basedir
)
vars
=
extra_vars
.
copy
()
vars
=
extra_vars
.
copy
()
...
...
lib/ansible/utils/plugins.py
View file @
daf5ecc7
...
@@ -132,7 +132,8 @@ class PluginLoader(object):
...
@@ -132,7 +132,8 @@ class PluginLoader(object):
if
directory
is
not
None
:
if
directory
is
not
None
:
if
with_subdir
:
if
with_subdir
:
directory
=
os
.
path
.
join
(
directory
,
self
.
subdir
)
directory
=
os
.
path
.
join
(
directory
,
self
.
subdir
)
self
.
_extra_dirs
.
append
(
directory
)
if
directory
not
in
self
.
_extra_dirs
:
self
.
_extra_dirs
.
append
(
directory
)
def
find_plugin
(
self
,
name
):
def
find_plugin
(
self
,
name
):
''' Find a plugin named name '''
''' Find a plugin named name '''
...
...
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