| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
# Copyright: (c) 2017, Ansible Project |
| 4 |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 5 |
from __future__ import annotations |
| 6 |
|
| 7 |
|
| 8 |
class ModuleDocFragment(object): |
| 9 |
|
| 10 |
DOCUMENTATION = r""" |
| 11 |
options: |
| 12 |
display_skipped_hosts: |
| 13 |
name: Show skipped hosts |
| 14 |
description: "Toggle to control displaying skipped task/host results in a task." |
| 15 |
type: bool |
| 16 |
default: yes |
| 17 |
env: |
| 18 |
- name: ANSIBLE_DISPLAY_SKIPPED_HOSTS |
| 19 |
ini: |
| 20 |
- key: display_skipped_hosts |
| 21 |
section: defaults |
| 22 |
vars: |
| 23 |
- name: ansible_display_skipped_hosts |
| 24 |
version_added: "2.21" |
| 25 |
display_ok_hosts: |
| 26 |
name: Show 'ok' hosts |
| 27 |
description: "Toggle to control displaying 'ok' task/host results in a task." |
| 28 |
type: bool |
| 29 |
default: yes |
| 30 |
env: |
| 31 |
- name: ANSIBLE_DISPLAY_OK_HOSTS |
| 32 |
ini: |
| 33 |
- key: display_ok_hosts |
| 34 |
section: defaults |
| 35 |
version_added: '2.7' |
| 36 |
display_failed_stderr: |
| 37 |
name: Use STDERR for failed and unreachable tasks |
| 38 |
description: "Toggle to control whether failed and unreachable tasks are displayed to STDERR rather than STDOUT." |
| 39 |
type: bool |
| 40 |
default: no |
| 41 |
env: |
| 42 |
- name: ANSIBLE_DISPLAY_FAILED_STDERR |
| 43 |
ini: |
| 44 |
- key: display_failed_stderr |
| 45 |
section: defaults |
| 46 |
version_added: '2.7' |
| 47 |
display_included_hosts: |
| 48 |
name: Show included hosts |
| 49 |
description: "Toggle to control displaying included task/host results in a task." |
| 50 |
type: bool |
| 51 |
default: yes |
| 52 |
env: |
| 53 |
- name: ANSIBLE_DISPLAY_INCLUDED_HOSTS |
| 54 |
ini: |
| 55 |
- key: display_included_hosts |
| 56 |
section: defaults |
| 57 |
version_added: '2.21' |
| 58 |
show_custom_stats: |
| 59 |
name: Show custom stats |
| 60 |
description: 'This adds the custom stats set via the set_stats plugin to the play recap.' |
| 61 |
type: bool |
| 62 |
default: no |
| 63 |
env: |
| 64 |
- name: ANSIBLE_SHOW_CUSTOM_STATS |
| 65 |
ini: |
| 66 |
- key: show_custom_stats |
| 67 |
section: defaults |
| 68 |
show_per_host_start: |
| 69 |
name: Show per host task start |
| 70 |
description: 'This adds output that shows when a task starts to execute for each host.' |
| 71 |
type: bool |
| 72 |
default: no |
| 73 |
env: |
| 74 |
- name: ANSIBLE_SHOW_PER_HOST_START |
| 75 |
ini: |
| 76 |
- key: show_per_host_start |
| 77 |
section: defaults |
| 78 |
version_added: '2.9' |
| 79 |
check_mode_markers: |
| 80 |
name: Show markers when running in check mode |
| 81 |
description: |
| 82 |
- Toggle to control displaying markers when running in check mode. |
| 83 |
- "The markers are C(DRY RUN) at the beginning and ending of playbook execution (when calling C(ansible-playbook --check)) |
| 84 |
and C(CHECK MODE) as a suffix at every play and task that is run in check mode." |
| 85 |
type: bool |
| 86 |
default: no |
| 87 |
version_added: '2.9' |
| 88 |
env: |
| 89 |
- name: ANSIBLE_CHECK_MODE_MARKERS |
| 90 |
ini: |
| 91 |
- key: check_mode_markers |
| 92 |
section: defaults |
| 93 |
show_task_path_on_failure: |
| 94 |
name: Show file path on failed tasks |
| 95 |
description: |
| 96 |
- When a task fails, display the path to the file containing the failed task and the line number. |
| 97 |
This information is displayed automatically for every task when running with C(-vv) or greater verbosity. |
| 98 |
type: bool |
| 99 |
default: no |
| 100 |
env: |
| 101 |
- name: ANSIBLE_SHOW_TASK_PATH_ON_FAILURE |
| 102 |
ini: |
| 103 |
- key: show_task_path_on_failure |
| 104 |
section: defaults |
| 105 |
version_added: '2.11' |
| 106 |
""" |