Debian Codegraph @

lib/ansible/plugins/doc_fragments/validate.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright: (c) 2015, Ansible, Inc
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 # Standard documentation fragment
10 DOCUMENTATION = r"""
11 options:
12 validate:
13 description:
14 - The validation command to run before copying the updated file into the final destination.
15 - A temporary file path is used to validate, passed in through C(%s) which must be present as in the examples below.
16 - Also, the command is passed securely so shell features such as expansion and pipes will not work.
17 - For an example on how to handle more complex validation than what this
18 option provides, see R(handling complex validation,complex_configuration_validation).
19 type: str
20 """