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
afbc7f8a
Commit
afbc7f8a
authored
Jul 01, 2014
by
Chris Church
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change parameter from pattern to name for playbook_on_play_start in example callback plugins.
parent
955dadf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
plugins/callbacks/hipchat.py
+2
-2
plugins/callbacks/log_plays.py
+1
-1
plugins/callbacks/osx_say.py
+2
-2
No files found.
plugins/callbacks/hipchat.py
View file @
afbc7f8a
...
@@ -138,7 +138,7 @@ class CallbackModule(object):
...
@@ -138,7 +138,7 @@ class CallbackModule(object):
def
playbook_on_not_import_for_host
(
self
,
host
,
missing_file
):
def
playbook_on_not_import_for_host
(
self
,
host
,
missing_file
):
pass
pass
def
playbook_on_play_start
(
self
,
pattern
):
def
playbook_on_play_start
(
self
,
name
):
"""Display Playbook and play start messages"""
"""Display Playbook and play start messages"""
# This block sends information about a playbook when it starts
# This block sends information about a playbook when it starts
...
@@ -167,7 +167,7 @@ class CallbackModule(object):
...
@@ -167,7 +167,7 @@ class CallbackModule(object):
# This is where we actually say we are starting a play
# This is where we actually say we are starting a play
self
.
send_msg
(
"
%
s: Starting play:
%
s"
%
self
.
send_msg
(
"
%
s: Starting play:
%
s"
%
(
self
.
playbook_name
,
pattern
))
(
self
.
playbook_name
,
name
))
def
playbook_on_stats
(
self
,
stats
):
def
playbook_on_stats
(
self
,
stats
):
"""Display info about playbook statistics"""
"""Display info about playbook statistics"""
...
...
plugins/callbacks/log_plays.py
View file @
afbc7f8a
...
@@ -108,7 +108,7 @@ class CallbackModule(object):
...
@@ -108,7 +108,7 @@ class CallbackModule(object):
def
playbook_on_not_import_for_host
(
self
,
host
,
missing_file
):
def
playbook_on_not_import_for_host
(
self
,
host
,
missing_file
):
log
(
host
,
'NOTIMPORTED'
,
missing_file
)
log
(
host
,
'NOTIMPORTED'
,
missing_file
)
def
playbook_on_play_start
(
self
,
pattern
):
def
playbook_on_play_start
(
self
,
name
):
pass
pass
def
playbook_on_stats
(
self
,
stats
):
def
playbook_on_stats
(
self
,
stats
):
...
...
plugins/callbacks/osx_say.py
View file @
afbc7f8a
...
@@ -97,8 +97,8 @@ class CallbackModule(object):
...
@@ -97,8 +97,8 @@ class CallbackModule(object):
def
playbook_on_not_import_for_host
(
self
,
host
,
missing_file
):
def
playbook_on_not_import_for_host
(
self
,
host
,
missing_file
):
pass
pass
def
playbook_on_play_start
(
self
,
pattern
):
def
playbook_on_play_start
(
self
,
name
):
say
(
"Starting play:
%
s"
%
pattern
,
HAPPY_VOICE
)
say
(
"Starting play:
%
s"
%
name
,
HAPPY_VOICE
)
def
playbook_on_stats
(
self
,
stats
):
def
playbook_on_stats
(
self
,
stats
):
say
(
"Play complete"
,
HAPPY_VOICE
)
say
(
"Play complete"
,
HAPPY_VOICE
)
...
...
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