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
7da94e03
Commit
7da94e03
authored
Oct 15, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1334 from bcoca/cowsay4bsd
cowsay for BSD!
parents
036f853d
e98153d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lib/ansible/callbacks.py
+6
-5
No files found.
lib/ansible/callbacks.py
View file @
7da94e03
...
...
@@ -28,15 +28,16 @@ callbacks = utils.import_plugins(os.path.join(dirname, 'callback_plugins'))
callbacks
=
[
c
.
CallbackModule
()
for
c
in
callbacks
.
values
()
]
cowsay
=
None
if
os
.
path
.
exists
(
"/usr/bin/cowsay"
):
cowsay
=
"/usr/bin/cowsay"
elif
os
.
path
.
exists
(
"/usr/games/cowsay"
):
cowsay
=
"/usr/games/cowsay"
if
os
.
getenv
(
"ANSIBLE_NOCOWS"
)
is
not
None
:
cowsay
=
None
elif
os
.
path
.
exists
(
"/usr/games/cowsay"
):
cowsay
=
"/usr/games/cowsay"
elif
os
.
path
.
exists
(
"/usr/local/bin/cowsay"
):
# BSD path for cowsay
cowsay
=
"/usr/local/bin/cowsay"
def
call_callback_module
(
method_name
,
*
args
,
**
kwargs
):
for
callback_plugin
in
callbacks
:
methods
=
[
getattr
(
callback_plugin
,
method_name
,
None
),
...
...
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