2021-08-07 13:02:21 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2022-08-05 20:12:10 +00:00
|
|
|
# Copyright (c) 2017 Ansible Project
|
2022-08-05 10:28:29 +00:00
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-03-09 09:11:07 +00:00
|
|
|
|
|
|
|
# Make coding more python3-ish
|
2025-01-20 18:36:21 +00:00
|
|
|
from __future__ import annotations
|
2020-03-09 09:11:07 +00:00
|
|
|
|
2024-12-29 19:31:59 +00:00
|
|
|
DOCUMENTATION = r"""
|
|
|
|
author: Unknown (!UNKNOWN)
|
|
|
|
name: 'null'
|
|
|
|
type: stdout
|
|
|
|
requirements:
|
|
|
|
- set as main display callback
|
|
|
|
short_description: do not display stuff to screen
|
|
|
|
description:
|
|
|
|
- This callback prevents outputting events to screen.
|
|
|
|
"""
|
2020-03-09 09:11:07 +00:00
|
|
|
|
|
|
|
from ansible.plugins.callback import CallbackBase
|
|
|
|
|
|
|
|
|
|
|
|
class CallbackModule(CallbackBase):
|
|
|
|
|
|
|
|
'''
|
2023-10-29 17:04:44 +00:00
|
|
|
This callback won't print messages to stdout when new callback events are received.
|
2020-03-09 09:11:07 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
CALLBACK_VERSION = 2.0
|
|
|
|
CALLBACK_TYPE = 'stdout'
|
|
|
|
CALLBACK_NAME = 'community.general.null'
|