Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Updating callback plugins to support new Ansible version.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmkraus committed Jul 1, 2021
1 parent 572d780 commit fa8fe48
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ filter_plugins=/app/lib/ansible/filter

# configure output
stdout_callback=my_dense
callback_enabled=timer,post_message,save_stats



[inventory]
enable_plugins=script
Expand Down
2 changes: 1 addition & 1 deletion app/lib/ansible/callback/post_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CallbackModule(CallbackBase):
CALLBACK_VERSION = 2.0
CALLBACK_TYPE = 'aggregate'
CALLBACK_NAME = 'post_message'
CALLBACK_NEEDS_WHITELIST = True
CALLBACK_NEEDS_WHITELIST = False

def playbook_on_stats(self, stats):
self.v2_playbook_on_stats(stats)
Expand Down
2 changes: 1 addition & 1 deletion app/lib/ansible/callback/save_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CallbackModule(CallbackBase):
CALLBACK_VERSION = 2.0
CALLBACK_TYPE = 'aggregate'
CALLBACK_NAME = 'save_stats'
CALLBACK_NEEDS_WHITELIST = True
CALLBACK_NEEDS_WHITELIST = False

def playbook_on_stats(self, stats):
self.v2_playbook_on_stats(stats)
Expand Down

0 comments on commit fa8fe48

Please sign in to comment.