summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/callback/default.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/callback/default.py')
-rw-r--r--lib/ansible/plugins/callback/default.py44
1 files changed, 28 insertions, 16 deletions
diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py
index 238608f646..34f4180f54 100644
--- a/lib/ansible/plugins/callback/default.py
+++ b/lib/ansible/plugins/callback/default.py
@@ -1,28 +1,40 @@
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
-#
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
+# (c) 2017 Ansible Project
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
'''
DOCUMENTATION:
callback: default
+ type: stdout
short_description: default Ansible screen output
version_added: historical
description:
- This is the default output callback for ansible-playbook.
+ options:
+ show_skipped_hosts:
+ name: Show skipped hosts
+ description: "Toggle to control displaying skipped task/host results in a task"
+ env:
+ - name: DISPLAY_SKIPPED_HOSTS
+ ini:
+ - key: display_skipped_hosts
+ section: defaults
+ type: boolean
+ default: True
+ show_custom_stats:
+ name: Show custom stats
+ default: False
+ description: 'This adds the custom stats set via the set_stats plugin to the play recap'
+ env:
+ - name: ANSIBLE_SHOW_CUSTOM_STATS
+ ini:
+ - key: show_custom_stats
+ section: defaults
+ type: bool
+ requirements:
+ - set as stdout in configuration
'''
-# Make coding more python3-ish
+
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type