mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
docker modules: add missing option types (#52422)
* Add missing option types for docker modules. * Reorder argument_spec. * First part of option reordering/reformatting. * Second part of option reordering/reformatting. * Forgot two required: false. * Normalize booleans. * Added missing period.
This commit is contained in:
parent
0e9ff44df1
commit
8388c89a29
18 changed files with 647 additions and 561 deletions
|
@ -30,7 +30,6 @@ options:
|
|||
data:
|
||||
description:
|
||||
- The value of the config. Required when state is C(present).
|
||||
required: false
|
||||
type: str
|
||||
data_is_b64:
|
||||
description:
|
||||
|
@ -38,29 +37,28 @@ options:
|
|||
decoded before being used.
|
||||
- To use binary C(data), it is better to keep it Base64 encoded and let it
|
||||
be decoded by this option.
|
||||
default: false
|
||||
type: bool
|
||||
default: no
|
||||
labels:
|
||||
description:
|
||||
- "A map of key:value meta data, where both the I(key) and I(value) are expected to be a string."
|
||||
- If new meta data is provided, or existing meta data is modified, the config will be updated by removing it and creating it again.
|
||||
required: false
|
||||
type: dict
|
||||
force:
|
||||
description:
|
||||
- Use with state C(present) to always remove and recreate an existing config.
|
||||
- If I(true), an existing config will be replaced, even if it has not been changed.
|
||||
default: false
|
||||
type: bool
|
||||
default: no
|
||||
name:
|
||||
description:
|
||||
- The name of the config.
|
||||
required: true
|
||||
type: str
|
||||
required: yes
|
||||
state:
|
||||
description:
|
||||
- Set to C(present), if the config should exist, and C(absent), if it should not.
|
||||
required: false
|
||||
type: str
|
||||
default: present
|
||||
choices:
|
||||
- absent
|
||||
|
@ -264,7 +262,7 @@ class ConfigManager(DockerBaseClass):
|
|||
def main():
|
||||
argument_spec = dict(
|
||||
name=dict(type='str', required=True),
|
||||
state=dict(type='str', choices=['absent', 'present'], default='present'),
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
data=dict(type='str'),
|
||||
data_is_b64=dict(type='bool', default=False),
|
||||
labels=dict(type='dict'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue