mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
[PR #9388/6aadcc72 backport][stable-10] [mem ... n]*.py: normalize docs (#9406)
[mem ... n]*.py: normalize docs (#9388)
* [mem ... n]*.py: normalize docs
* Update plugins/modules/netcup_dns.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* netcup_dns: change type of RV(records)
From complex to list of dicts.
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 6aadcc72d1
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
03f3b74934
commit
7732d64abb
25 changed files with 2245 additions and 2342 deletions
|
@ -8,8 +8,7 @@
|
|||
from __future__ import absolute_import, division, print_function
|
||||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: nomad_job
|
||||
author: FERREIRA Christophe (@chris93111)
|
||||
version_added: "1.3.0"
|
||||
|
@ -17,53 +16,53 @@ short_description: Launch a Nomad Job
|
|||
description:
|
||||
- Launch a Nomad job.
|
||||
- Stop a Nomad job.
|
||||
- Force start a Nomad job
|
||||
- Force start a Nomad job.
|
||||
requirements:
|
||||
- python-nomad
|
||||
extends_documentation_fragment:
|
||||
- community.general.nomad
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
- Name of job for delete, stop and start job without source.
|
||||
- Name of job for delete, stop and start job without source.
|
||||
- Either this or O(content) must be specified.
|
||||
type: str
|
||||
state:
|
||||
description:
|
||||
- Deploy or remove job.
|
||||
choices: ["present", "absent"]
|
||||
required: true
|
||||
type: str
|
||||
force_start:
|
||||
description:
|
||||
- Force job to started.
|
||||
type: bool
|
||||
default: false
|
||||
content:
|
||||
description:
|
||||
- Content of Nomad job.
|
||||
- Either this or O(name) must be specified.
|
||||
type: str
|
||||
content_format:
|
||||
description:
|
||||
- Type of content of Nomad job.
|
||||
choices: ["hcl", "json"]
|
||||
default: hcl
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- Name of job for delete, stop and start job without source.
|
||||
- Name of job for delete, stop and start job without source.
|
||||
- Either this or O(content) must be specified.
|
||||
type: str
|
||||
state:
|
||||
description:
|
||||
- Deploy or remove job.
|
||||
choices: ["present", "absent"]
|
||||
required: true
|
||||
type: str
|
||||
force_start:
|
||||
description:
|
||||
- Force job to started.
|
||||
type: bool
|
||||
default: false
|
||||
content:
|
||||
description:
|
||||
- Content of Nomad job.
|
||||
- Either this or O(name) must be specified.
|
||||
type: str
|
||||
content_format:
|
||||
description:
|
||||
- Type of content of Nomad job.
|
||||
choices: ["hcl", "json"]
|
||||
default: hcl
|
||||
type: str
|
||||
seealso:
|
||||
- name: Nomad jobs documentation
|
||||
description: Complete documentation for Nomad API jobs.
|
||||
link: https://www.nomadproject.io/api-docs/jobs/
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = r"""
|
||||
- name: Create job
|
||||
community.general.nomad_job:
|
||||
host: localhost
|
||||
|
@ -92,7 +91,7 @@ EXAMPLES = '''
|
|||
name: api
|
||||
timeout: 120
|
||||
force_start: true
|
||||
'''
|
||||
"""
|
||||
|
||||
import json
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue