mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
Document attributes (#497)
* Add 'docker' action group attribute. * Compatibility with older ansible-core releases. * Fix typo. * Docment standard attributes. * Improve docs. * Add shortcuts for common combinations.
This commit is contained in:
parent
7ea99edf07
commit
2261dff49f
@ -6,26 +6,26 @@
|
|||||||
requires_ansible: '>=2.11.0'
|
requires_ansible: '>=2.11.0'
|
||||||
action_groups:
|
action_groups:
|
||||||
docker:
|
docker:
|
||||||
- docker_compose
|
- docker_compose
|
||||||
- docker_config
|
- docker_config
|
||||||
- docker_container
|
- docker_container
|
||||||
- docker_container_exec
|
- docker_container_exec
|
||||||
- docker_container_info
|
- docker_container_info
|
||||||
- docker_host_info
|
- docker_host_info
|
||||||
- docker_image
|
- docker_image
|
||||||
- docker_image_info
|
- docker_image_info
|
||||||
- docker_image_load
|
- docker_image_load
|
||||||
- docker_login
|
- docker_login
|
||||||
- docker_network
|
- docker_network
|
||||||
- docker_network_info
|
- docker_network_info
|
||||||
- docker_node
|
- docker_node
|
||||||
- docker_node_info
|
- docker_node_info
|
||||||
- docker_plugin
|
- docker_plugin
|
||||||
- docker_prune
|
- docker_prune
|
||||||
- docker_secret
|
- docker_secret
|
||||||
- docker_swarm
|
- docker_swarm
|
||||||
- docker_swarm_info
|
- docker_swarm_info
|
||||||
- docker_swarm_service
|
- docker_swarm_service
|
||||||
- docker_swarm_service_info
|
- docker_swarm_service_info
|
||||||
- docker_volume
|
- docker_volume
|
||||||
- docker_volume_info
|
- docker_volume_info
|
||||||
|
|||||||
@ -11,19 +11,19 @@ from __future__ import (absolute_import, division, print_function)
|
|||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
author:
|
author:
|
||||||
- Lorin Hochestein (!UNKNOWN)
|
- Lorin Hochestein (!UNKNOWN)
|
||||||
- Leendert Brouwer (!UNKNOWN)
|
- Leendert Brouwer (!UNKNOWN)
|
||||||
name: docker
|
name: docker
|
||||||
short_description: Run tasks in docker containers
|
short_description: Run tasks in docker containers
|
||||||
description:
|
description:
|
||||||
- Run commands or put/fetch files to an existing docker container.
|
- Run commands or put/fetch files to an existing docker container.
|
||||||
- Uses the Docker CLI to execute commands in the container. If you prefer
|
- Uses the Docker CLI to execute commands in the container. If you prefer
|
||||||
to directly connect to the Docker daemon, use the
|
to directly connect to the Docker daemon, use the
|
||||||
R(community.docker.docker_api,ansible_collections.community.docker.docker_api_connection)
|
R(community.docker.docker_api,ansible_collections.community.docker.docker_api_connection)
|
||||||
connection plugin.
|
connection plugin.
|
||||||
options:
|
options:
|
||||||
remote_addr:
|
remote_addr:
|
||||||
description:
|
description:
|
||||||
- The name of the container you want to access.
|
- The name of the container you want to access.
|
||||||
default: inventory_hostname
|
default: inventory_hostname
|
||||||
@ -31,7 +31,7 @@ DOCUMENTATION = '''
|
|||||||
- name: inventory_hostname
|
- name: inventory_hostname
|
||||||
- name: ansible_host
|
- name: ansible_host
|
||||||
- name: ansible_docker_host
|
- name: ansible_docker_host
|
||||||
remote_user:
|
remote_user:
|
||||||
description:
|
description:
|
||||||
- The user to execute as inside the container.
|
- The user to execute as inside the container.
|
||||||
- If Docker is too old to allow this (< 1.7), the one set by Docker itself will be used.
|
- If Docker is too old to allow this (< 1.7), the one set by Docker itself will be used.
|
||||||
@ -47,7 +47,7 @@ DOCUMENTATION = '''
|
|||||||
- name: user
|
- name: user
|
||||||
keyword:
|
keyword:
|
||||||
- name: remote_user
|
- name: remote_user
|
||||||
docker_extra_args:
|
docker_extra_args:
|
||||||
description:
|
description:
|
||||||
- Extra arguments to pass to the docker command line.
|
- Extra arguments to pass to the docker command line.
|
||||||
default: ''
|
default: ''
|
||||||
@ -56,7 +56,7 @@ DOCUMENTATION = '''
|
|||||||
ini:
|
ini:
|
||||||
- section: docker_connection
|
- section: docker_connection
|
||||||
key: extra_cli_args
|
key: extra_cli_args
|
||||||
container_timeout:
|
container_timeout:
|
||||||
default: 10
|
default: 10
|
||||||
description:
|
description:
|
||||||
- Controls how long we can wait to access reading output from the container once execution started.
|
- Controls how long we can wait to access reading output from the container once execution started.
|
||||||
|
|||||||
@ -17,6 +17,9 @@ description:
|
|||||||
directly with the Docker daemon instead of using the Docker CLI. Use the
|
directly with the Docker daemon instead of using the Docker CLI. Use the
|
||||||
R(community.docker.docker,ansible_collections.community.docker.docker_connection)
|
R(community.docker.docker,ansible_collections.community.docker.docker_connection)
|
||||||
connection plugin if you want to use the Docker CLI.
|
connection plugin if you want to use the Docker CLI.
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.docker.var_names
|
||||||
options:
|
options:
|
||||||
remote_user:
|
remote_user:
|
||||||
type: str
|
type: str
|
||||||
@ -63,10 +66,6 @@ options:
|
|||||||
cli:
|
cli:
|
||||||
- name: timeout
|
- name: timeout
|
||||||
type: integer
|
type: integer
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
- community.docker.docker.var_names
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
|||||||
@ -9,38 +9,38 @@ from __future__ import (absolute_import, division, print_function)
|
|||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
name: nsenter
|
name: nsenter
|
||||||
short_description: execute on host running controller container
|
short_description: execute on host running controller container
|
||||||
version_added: 1.9.0
|
version_added: 1.9.0
|
||||||
description:
|
description:
|
||||||
- This connection plugin allows Ansible, running in a privileged container, to execute tasks on the container
|
- This connection plugin allows Ansible, running in a privileged container, to execute tasks on the container
|
||||||
host instead of in the container itself.
|
host instead of in the container itself.
|
||||||
- This is useful for running Ansible in a pull model, while still keeping the Ansible control node
|
- This is useful for running Ansible in a pull model, while still keeping the Ansible control node
|
||||||
containerized.
|
containerized.
|
||||||
- It relies on having privileged access to run C(nsenter) in the host's PID namespace, allowing it to enter the
|
- It relies on having privileged access to run C(nsenter) in the host's PID namespace, allowing it to enter the
|
||||||
namespaces of the provided PID (default PID 1, or init/systemd).
|
namespaces of the provided PID (default PID 1, or init/systemd).
|
||||||
author: Jeff Goldschrafe (@jgoldschrafe)
|
author: Jeff Goldschrafe (@jgoldschrafe)
|
||||||
options:
|
options:
|
||||||
nsenter_pid:
|
nsenter_pid:
|
||||||
description:
|
description:
|
||||||
- PID to attach with using nsenter.
|
- PID to attach with using nsenter.
|
||||||
- The default should be fine unless you are attaching as a non-root user.
|
- The default should be fine unless you are attaching as a non-root user.
|
||||||
type: int
|
type: int
|
||||||
default: 1
|
default: 1
|
||||||
vars:
|
vars:
|
||||||
- name: ansible_nsenter_pid
|
- name: ansible_nsenter_pid
|
||||||
env:
|
env:
|
||||||
- name: ANSIBLE_NSENTER_PID
|
- name: ANSIBLE_NSENTER_PID
|
||||||
ini:
|
ini:
|
||||||
- section: nsenter_connection
|
- section: nsenter_connection
|
||||||
key: nsenter_pid
|
key: nsenter_pid
|
||||||
notes:
|
notes:
|
||||||
- The remote user is ignored; this plugin always runs as root.
|
- The remote user is ignored; this plugin always runs as root.
|
||||||
- >-
|
- >-
|
||||||
This plugin requires the Ansible controller container to be launched in the following way:
|
This plugin requires the Ansible controller container to be launched in the following way:
|
||||||
(1) The container image contains the C(nsenter) program;
|
(1) The container image contains the C(nsenter) program;
|
||||||
(2) The container is launched in privileged mode;
|
(2) The container is launched in privileged mode;
|
||||||
(3) The container is launched in the host's PID namespace (C(--pid host)).
|
(3) The container is launched in the host's PID namespace (C(--pid host)).
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|||||||
96
plugins/doc_fragments/attributes.py
Normal file
96
plugins/doc_fragments/attributes.py
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright (c) Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
||||||
|
class ModuleDocFragment(object):
|
||||||
|
|
||||||
|
# Standard documentation fragment
|
||||||
|
DOCUMENTATION = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
description: Can run in C(check_mode) and return changed status prediction without modifying target.
|
||||||
|
diff_mode:
|
||||||
|
description: Will return details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
|
||||||
|
'''
|
||||||
|
|
||||||
|
# Should be used together with the standard fragment
|
||||||
|
INFO_MODULE = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
details:
|
||||||
|
- This action does not modify state.
|
||||||
|
diff_mode:
|
||||||
|
support: N/A
|
||||||
|
details:
|
||||||
|
- This action does not modify state.
|
||||||
|
'''
|
||||||
|
|
||||||
|
ACTIONGROUP_DOCKER = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
action_group:
|
||||||
|
description: Use C(group/docker) or C(group/community.docker.docker) in C(module_defaults) to set defaults for this module.
|
||||||
|
support: full
|
||||||
|
membership:
|
||||||
|
- community.docker.docker
|
||||||
|
- docker
|
||||||
|
'''
|
||||||
|
|
||||||
|
CONN = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
become:
|
||||||
|
description: Is usable alongside C(become) keywords.
|
||||||
|
connection:
|
||||||
|
description: Uses the target's configured connection information to execute code on it.
|
||||||
|
delegation:
|
||||||
|
description: Can be used in conjunction with C(delegate_to) and related keywords.
|
||||||
|
'''
|
||||||
|
|
||||||
|
FACTS = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
facts:
|
||||||
|
description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
|
||||||
|
'''
|
||||||
|
|
||||||
|
# Should be used together with the standard fragment and the FACTS fragment
|
||||||
|
FACTS_MODULE = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
details:
|
||||||
|
- This action does not modify state.
|
||||||
|
diff_mode:
|
||||||
|
support: N/A
|
||||||
|
details:
|
||||||
|
- This action does not modify state.
|
||||||
|
facts:
|
||||||
|
support: full
|
||||||
|
'''
|
||||||
|
|
||||||
|
FILES = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
safe_file_operations:
|
||||||
|
description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
|
||||||
|
'''
|
||||||
|
|
||||||
|
FLOW = r'''
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
action:
|
||||||
|
description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
|
||||||
|
async:
|
||||||
|
description: Supports being used with the C(async) keyword.
|
||||||
|
'''
|
||||||
@ -18,6 +18,10 @@ description:
|
|||||||
- Return facts about whether the module runs in a Docker container.
|
- Return facts about whether the module runs in a Docker container.
|
||||||
author:
|
author:
|
||||||
- Felix Fontein (@felixfontein)
|
- Felix Fontein (@felixfontein)
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.facts
|
||||||
|
- community.docker.attributes.facts_module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|||||||
@ -14,7 +14,6 @@ module: docker_compose
|
|||||||
|
|
||||||
short_description: Manage multi-container Docker applications with Docker Compose.
|
short_description: Manage multi-container Docker applications with Docker Compose.
|
||||||
|
|
||||||
|
|
||||||
author: "Chris Houseknecht (@chouseknecht)"
|
author: "Chris Houseknecht (@chouseknecht)"
|
||||||
|
|
||||||
description:
|
description:
|
||||||
@ -24,6 +23,18 @@ description:
|
|||||||
- Supports check mode.
|
- Supports check mode.
|
||||||
- This module was called C(docker_service) before Ansible 2.8. The usage did not change.
|
- This module was called C(docker_service) before Ansible 2.8. The usage did not change.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_1_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
project_src:
|
project_src:
|
||||||
description:
|
description:
|
||||||
@ -172,11 +183,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Currently ignored for this module, but might suddenly be supported later on.
|
- Currently ignored for this module, but might suddenly be supported later on.
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_1_documentation
|
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.8.0"
|
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.8.0"
|
||||||
- "docker-compose >= 1.7.0, < 2.0.0"
|
- "docker-compose >= 1.7.0, < 2.0.0"
|
||||||
|
|||||||
@ -14,13 +14,25 @@ module: docker_config
|
|||||||
|
|
||||||
short_description: Manage docker configs.
|
short_description: Manage docker configs.
|
||||||
|
|
||||||
|
|
||||||
description:
|
description:
|
||||||
- Create and remove Docker configs in a Swarm environment. Similar to C(docker config create) and C(docker config rm).
|
- Create and remove Docker configs in a Swarm environment. Similar to C(docker config create) and C(docker config rm).
|
||||||
- Adds to the metadata of new configs 'ansible_key', an encrypted hash representation of the data, which is then used
|
- Adds to the metadata of new configs 'ansible_key', an encrypted hash representation of the data, which is then used
|
||||||
in future runs to test if a config has changed. If 'ansible_key' is not present, then a config will not be updated
|
in future runs to test if a config has changed. If 'ansible_key' is not present, then a config will not be updated
|
||||||
unless the I(force) option is set.
|
unless the I(force) option is set.
|
||||||
- Updates to configs are performed by removing the config and creating it again.
|
- Updates to configs are performed by removing the config and creating it again.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_2_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
data:
|
data:
|
||||||
description:
|
description:
|
||||||
@ -88,11 +100,6 @@ options:
|
|||||||
- golang
|
- golang
|
||||||
version_added: 2.5.0
|
version_added: 2.5.0
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_2_documentation
|
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.6.0"
|
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.6.0"
|
||||||
- "Docker API >= 1.30"
|
- "Docker API >= 1.30"
|
||||||
|
|||||||
@ -18,7 +18,6 @@ description:
|
|||||||
- Manage the life cycle of Docker containers.
|
- Manage the life cycle of Docker containers.
|
||||||
- Supports check mode. Run with C(--check) and C(--diff) to view config difference and list of actions to be taken.
|
- Supports check mode. Run with C(--check) and C(--diff) to view config difference and list of actions to be taken.
|
||||||
|
|
||||||
|
|
||||||
notes:
|
notes:
|
||||||
- For most config changes, the container needs to be recreated. This means that the existing container has to be destroyed and
|
- For most config changes, the container needs to be recreated. This means that the existing container has to be destroyed and
|
||||||
a new one created. This can cause unexpected data loss and downtime. You can use the I(comparisons) option to
|
a new one created. This can cause unexpected data loss and downtime. You can use the I(comparisons) option to
|
||||||
@ -27,6 +26,20 @@ notes:
|
|||||||
new container (except I(image)). Therefore, always specify B(all) options relevant to the container.
|
new container (except I(image)). Therefore, always specify B(all) options relevant to the container.
|
||||||
- When I(restart) is set to C(true), the module will only restart the container if no config changes are detected.
|
- When I(restart) is set to C(true), the module will only restart the container if no config changes are detected.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_1_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: partial
|
||||||
|
details:
|
||||||
|
- When trying to pull an image, the module assumes this is always changed in check mode.
|
||||||
|
diff_mode:
|
||||||
|
support: full
|
||||||
|
|
||||||
options:
|
options:
|
||||||
auto_remove:
|
auto_remove:
|
||||||
description:
|
description:
|
||||||
@ -929,10 +942,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Path to the working directory.
|
- Path to the working directory.
|
||||||
type: str
|
type: str
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_1_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- "Cove Schneider (@cove)"
|
- "Cove Schneider (@cove)"
|
||||||
|
|||||||
@ -19,6 +19,17 @@ version_added: 1.5.0
|
|||||||
description:
|
description:
|
||||||
- Executes a command in a Docker container.
|
- Executes a command in a Docker container.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: none
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
container:
|
container:
|
||||||
type: str
|
type: str
|
||||||
@ -82,8 +93,6 @@ options:
|
|||||||
type: dict
|
type: dict
|
||||||
version_added: 2.1.0
|
version_added: 2.1.0
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
notes:
|
notes:
|
||||||
- Does not support C(check_mode).
|
- Does not support C(check_mode).
|
||||||
author:
|
author:
|
||||||
|
|||||||
@ -19,6 +19,11 @@ description:
|
|||||||
- Essentially returns the output of C(docker inspect <name>), similar to what M(community.docker.docker_container)
|
- Essentially returns the output of C(docker inspect <name>), similar to what M(community.docker.docker_container)
|
||||||
returns for a non-absent container.
|
returns for a non-absent container.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
- community.docker.attributes.info_module
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
@ -27,9 +32,6 @@ options:
|
|||||||
- When identifying an existing container name may be a name or a long or short container ID.
|
- When identifying an existing container name may be a name or a long or short container ID.
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- "Felix Fontein (@felixfontein)"
|
- "Felix Fontein (@felixfontein)"
|
||||||
|
|||||||
@ -23,6 +23,20 @@ description:
|
|||||||
- If the docker daemon cannot be contacted or does not meet the API version requirements,
|
- If the docker daemon cannot be contacted or does not meet the API version requirements,
|
||||||
the module will fail.
|
the module will fail.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
details:
|
||||||
|
- This action does not modify state.
|
||||||
|
diff_mode:
|
||||||
|
support: N/A
|
||||||
|
details:
|
||||||
|
- This action does not modify state.
|
||||||
|
|
||||||
options:
|
options:
|
||||||
containers:
|
containers:
|
||||||
@ -94,9 +108,6 @@ options:
|
|||||||
for each type of the objects.
|
for each type of the objects.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Piotr Wojciechowski (@WojciechowskiPiotr)
|
- Piotr Wojciechowski (@WojciechowskiPiotr)
|
||||||
|
|||||||
@ -14,7 +14,6 @@ module: docker_image
|
|||||||
|
|
||||||
short_description: Manage docker images
|
short_description: Manage docker images
|
||||||
|
|
||||||
|
|
||||||
description:
|
description:
|
||||||
- Build, load or pull an image, making the image available for creating containers. Also supports tagging
|
- Build, load or pull an image, making the image available for creating containers. Also supports tagging
|
||||||
an image, pushing an image, and archiving an image to a C(.tar) file.
|
an image, pushing an image, and archiving an image to a C(.tar) file.
|
||||||
@ -22,6 +21,19 @@ description:
|
|||||||
notes:
|
notes:
|
||||||
- Building images is done using Docker daemon's API. It is not possible to use BuildKit / buildx this way.
|
- Building images is done using Docker daemon's API. It is not possible to use BuildKit / buildx this way.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: partial
|
||||||
|
details:
|
||||||
|
- When trying to pull an image, the module assumes this is always changed in check mode.
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
source:
|
source:
|
||||||
description:
|
description:
|
||||||
@ -209,10 +221,6 @@ options:
|
|||||||
type: str
|
type: str
|
||||||
default: latest
|
default: latest
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "Docker API >= 1.25"
|
- "Docker API >= 1.25"
|
||||||
|
|
||||||
|
|||||||
@ -14,17 +14,22 @@ module: docker_image_info
|
|||||||
|
|
||||||
short_description: Inspect docker images
|
short_description: Inspect docker images
|
||||||
|
|
||||||
|
|
||||||
description:
|
description:
|
||||||
- Provide one or more image names, and the module will inspect each, returning an array of inspection results.
|
- Provide one or more image names, and the module will inspect each, returning an array of inspection results.
|
||||||
- If an image does not exist locally, it will not appear in the results. If you want to check whether an image exists
|
- If an image does not exist locally, it will not appear in the results. If you want to check whether an image exists
|
||||||
locally, you can call the module with the image name, then check whether the result list is empty (image does not
|
locally, you can call the module with the image name, then check whether the result list is empty (image does not
|
||||||
exist) or has one element (the image exists locally).
|
exist) or has one element (the image exists locally).
|
||||||
- The module will not attempt to pull images from registries. Use M(community.docker.docker_image) with I(source) set to C(pull)
|
- The module will not attempt to pull images from registries. Use M(community.docker.docker_image) with I(source) set to C(pull)
|
||||||
to ensure an image is pulled.
|
to ensure an image is pulled.
|
||||||
|
|
||||||
notes:
|
notes:
|
||||||
- This module was called C(docker_image_facts) before Ansible 2.8. The usage did not change.
|
- This module was called C(docker_image_facts) before Ansible 2.8. The usage did not change.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
- community.docker.attributes.info_module
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
@ -36,10 +41,6 @@ options:
|
|||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "Docker API >= 1.25"
|
- "Docker API >= 1.25"
|
||||||
|
|
||||||
|
|||||||
@ -21,6 +21,17 @@ description:
|
|||||||
- Load one or multiple Docker images from a C(.tar) archive, and return information on
|
- Load one or multiple Docker images from a C(.tar) archive, and return information on
|
||||||
the loaded image(s).
|
the loaded image(s).
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: none
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
@ -28,9 +39,6 @@ options:
|
|||||||
type: path
|
type: path
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
notes:
|
notes:
|
||||||
- Does not support C(check_mode).
|
- Does not support C(check_mode).
|
||||||
|
|
||||||
|
|||||||
@ -16,12 +16,24 @@ DOCUMENTATION = '''
|
|||||||
module: docker_login
|
module: docker_login
|
||||||
short_description: Log into a Docker registry.
|
short_description: Log into a Docker registry.
|
||||||
description:
|
description:
|
||||||
- Provides functionality similar to the C(docker login) command.
|
- Provides functionality similar to the C(docker login) command.
|
||||||
- Authenticate with a docker registry and add the credentials to your local Docker config file respectively the
|
- Authenticate with a docker registry and add the credentials to your local Docker config file respectively the
|
||||||
credentials store associated to the registry. Adding the credentials to the config files resp. the credential
|
credentials store associated to the registry. Adding the credentials to the config files resp. the credential
|
||||||
store allows future connections to the registry using tools such as Ansible's Docker modules, the Docker CLI
|
store allows future connections to the registry using tools such as Ansible's Docker modules, the Docker CLI
|
||||||
and Docker SDK for Python without needing to provide credentials.
|
and Docker SDK for Python without needing to provide credentials.
|
||||||
- Running in check mode will perform the authentication without updating the config file.
|
- Running in check mode will perform the authentication without updating the config file.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
registry_url:
|
registry_url:
|
||||||
description:
|
description:
|
||||||
@ -65,9 +77,6 @@ options:
|
|||||||
default: 'present'
|
default: 'present'
|
||||||
choices: ['present', 'absent']
|
choices: ['present', 'absent']
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "Docker API >= 1.25"
|
- "Docker API >= 1.25"
|
||||||
author:
|
author:
|
||||||
|
|||||||
@ -14,6 +14,18 @@ short_description: Manage Docker networks
|
|||||||
description:
|
description:
|
||||||
- Create/remove Docker networks and connect containers to them.
|
- Create/remove Docker networks and connect containers to them.
|
||||||
- Performs largely the same function as the C(docker network) CLI subcommand.
|
- Performs largely the same function as the C(docker network) CLI subcommand.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: full
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
@ -149,10 +161,6 @@ options:
|
|||||||
- If enabled, and the network is in the global scope, non-service containers on worker nodes will be able to connect to the network.
|
- If enabled, and the network is in the global scope, non-service containers on worker nodes will be able to connect to the network.
|
||||||
type: bool
|
type: bool
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
notes:
|
notes:
|
||||||
- When network options are changed, the module disconnects all containers from the network, deletes the network, and re-creates the network.
|
- When network options are changed, the module disconnects all containers from the network, deletes the network, and re-creates the network.
|
||||||
It does not try to reconnect containers, except the ones listed in (I(connected), and even for these, it does not consider specific
|
It does not try to reconnect containers, except the ones listed in (I(connected), and even for these, it does not consider specific
|
||||||
|
|||||||
@ -19,6 +19,11 @@ description:
|
|||||||
- Essentially returns the output of C(docker network inspect <name>), similar to what M(community.docker.docker_network)
|
- Essentially returns the output of C(docker network inspect <name>), similar to what M(community.docker.docker_network)
|
||||||
returns for a non-absent network.
|
returns for a non-absent network.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
- community.docker.attributes.info_module
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
@ -27,9 +32,6 @@ options:
|
|||||||
- When identifying an existing network name may be a name or a long or short network ID.
|
- When identifying an existing network name may be a name or a long or short network ID.
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- "Dave Bendit (@DBendit)"
|
- "Dave Bendit (@DBendit)"
|
||||||
|
|||||||
@ -15,6 +15,19 @@ short_description: Manage Docker Swarm node
|
|||||||
description:
|
description:
|
||||||
- Manages the Docker nodes via Swarm Manager.
|
- Manages the Docker nodes via Swarm Manager.
|
||||||
- This module allows to change the node's role, its availability, and to modify, add or remove node labels.
|
- This module allows to change the node's role, its availability, and to modify, add or remove node labels.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_1_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
hostname:
|
hostname:
|
||||||
description:
|
description:
|
||||||
@ -69,9 +82,6 @@ options:
|
|||||||
- manager
|
- manager
|
||||||
- worker
|
- worker
|
||||||
type: str
|
type: str
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_1_documentation
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.4.0"
|
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.4.0"
|
||||||
|
|||||||
@ -19,6 +19,12 @@ description:
|
|||||||
- Essentially returns the output of C(docker node inspect <name>).
|
- Essentially returns the output of C(docker node inspect <name>).
|
||||||
- Must be executed on a host running as Swarm Manager, otherwise the module will fail.
|
- Must be executed on a host running as Swarm Manager, otherwise the module will fail.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_1_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
- community.docker.attributes.info_module
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
@ -37,10 +43,6 @@ options:
|
|||||||
- If C(false) then query depends on I(name) presence and value.
|
- If C(false) then query depends on I(name) presence and value.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_1_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Piotr Wojciechowski (@WojciechowskiPiotr)
|
- Piotr Wojciechowski (@WojciechowskiPiotr)
|
||||||
|
|||||||
@ -17,6 +17,18 @@ version_added: 1.3.0
|
|||||||
description:
|
description:
|
||||||
- This module allows to install, delete, enable and disable Docker plugins.
|
- This module allows to install, delete, enable and disable Docker plugins.
|
||||||
- Performs largely the same function as the C(docker plugin) CLI subcommand.
|
- Performs largely the same function as the C(docker plugin) CLI subcommand.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: full
|
||||||
|
|
||||||
options:
|
options:
|
||||||
plugin_name:
|
plugin_name:
|
||||||
description:
|
description:
|
||||||
@ -62,9 +74,6 @@ options:
|
|||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Sakar Mehra (@sakar97)
|
- Sakar Mehra (@sakar97)
|
||||||
- Vladimir Porshkevich (@porshkevich)
|
- Vladimir Porshkevich (@porshkevich)
|
||||||
|
|||||||
@ -18,6 +18,16 @@ description:
|
|||||||
- Allows to run C(docker container prune), C(docker image prune), C(docker network prune)
|
- Allows to run C(docker container prune), C(docker image prune), C(docker network prune)
|
||||||
and C(docker volume prune) via the Docker API.
|
and C(docker volume prune) via the Docker API.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: none
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
containers:
|
containers:
|
||||||
@ -72,10 +82,6 @@ options:
|
|||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- "Felix Fontein (@felixfontein)"
|
- "Felix Fontein (@felixfontein)"
|
||||||
|
|
||||||
|
|||||||
@ -14,13 +14,25 @@ module: docker_secret
|
|||||||
|
|
||||||
short_description: Manage docker secrets.
|
short_description: Manage docker secrets.
|
||||||
|
|
||||||
|
|
||||||
description:
|
description:
|
||||||
- Create and remove Docker secrets in a Swarm environment. Similar to C(docker secret create) and C(docker secret rm).
|
- Create and remove Docker secrets in a Swarm environment. Similar to C(docker secret create) and C(docker secret rm).
|
||||||
- Adds to the metadata of new secrets C(ansible_key), an encrypted hash representation of the data, which is then used
|
- Adds to the metadata of new secrets C(ansible_key), an encrypted hash representation of the data, which is then used
|
||||||
in future runs to test if a secret has changed. If C(ansible_key) is not present, then a secret will not be updated
|
in future runs to test if a secret has changed. If C(ansible_key) is not present, then a secret will not be updated
|
||||||
unless the I(force) option is set.
|
unless the I(force) option is set.
|
||||||
- Updates to secrets are performed by removing the secret and creating it again.
|
- Updates to secrets are performed by removing the secret and creating it again.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_2_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
|
|
||||||
options:
|
options:
|
||||||
data:
|
data:
|
||||||
description:
|
description:
|
||||||
@ -81,11 +93,6 @@ options:
|
|||||||
- absent
|
- absent
|
||||||
- present
|
- present
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_2_documentation
|
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.1.0"
|
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.1.0"
|
||||||
- "Docker API >= 1.25"
|
- "Docker API >= 1.25"
|
||||||
|
|||||||
@ -17,6 +17,13 @@ short_description: docker stack module
|
|||||||
description:
|
description:
|
||||||
- Manage docker stacks using the C(docker stack) command
|
- Manage docker stacks using the C(docker stack) command
|
||||||
on the target node (see examples).
|
on the target node (see examples).
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.attributes
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: none
|
||||||
|
diff_mode:
|
||||||
|
support: none
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -17,6 +17,9 @@ short_description: Return information on a docker stack
|
|||||||
description:
|
description:
|
||||||
- Retrieve information on docker stacks using the C(docker stack) command
|
- Retrieve information on docker stacks using the C(docker stack) command
|
||||||
on the target node (see examples).
|
on the target node (see examples).
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.info_module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|||||||
@ -17,6 +17,9 @@ short_description: Return information of the tasks on a docker stack
|
|||||||
description:
|
description:
|
||||||
- Retrieve information on docker stacks tasks using the C(docker stack) command
|
- Retrieve information on docker stacks tasks using the C(docker stack) command
|
||||||
on the target node (see examples).
|
on the target node (see examples).
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.info_module
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -14,6 +14,19 @@ short_description: Manage Swarm cluster
|
|||||||
description:
|
description:
|
||||||
- Create a new Swarm cluster.
|
- Create a new Swarm cluster.
|
||||||
- Add/Remove nodes or managers to an existing cluster.
|
- Add/Remove nodes or managers to an existing cluster.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_1_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: full
|
||||||
|
|
||||||
options:
|
options:
|
||||||
advertise_addr:
|
advertise_addr:
|
||||||
description:
|
description:
|
||||||
@ -193,9 +206,6 @@ options:
|
|||||||
considered for idempotency checking.
|
considered for idempotency checking.
|
||||||
type: int
|
type: int
|
||||||
version_added: 3.1.0
|
version_added: 3.1.0
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_1_documentation
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.10.0"
|
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.10.0"
|
||||||
|
|||||||
@ -23,9 +23,15 @@ description:
|
|||||||
the docker daemon can be communicated with, whether it is in Swarm mode, and
|
the docker daemon can be communicated with, whether it is in Swarm mode, and
|
||||||
whether it is a Swarm Manager node.
|
whether it is a Swarm Manager node.
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Piotr Wojciechowski (@WojciechowskiPiotr)
|
- Piotr Wojciechowski (@WojciechowskiPiotr)
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_1_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
- community.docker.attributes.info_module
|
||||||
|
|
||||||
options:
|
options:
|
||||||
nodes:
|
nodes:
|
||||||
@ -78,10 +84,6 @@ options:
|
|||||||
for each type of the objects.
|
for each type of the objects.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_1_documentation
|
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.10.0"
|
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.10.0"
|
||||||
|
|||||||
@ -19,6 +19,19 @@ short_description: docker swarm service
|
|||||||
description:
|
description:
|
||||||
- Manages docker services via a swarm manager node.
|
- Manages docker services via a swarm manager node.
|
||||||
- This modules does not support updating services in a stack.
|
- This modules does not support updating services in a stack.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_2_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: full
|
||||||
|
|
||||||
options:
|
options:
|
||||||
args:
|
args:
|
||||||
description:
|
description:
|
||||||
@ -629,9 +642,6 @@ options:
|
|||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
version_added: 2.2.0
|
version_added: 2.2.0
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_2_documentation
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.0.2"
|
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.0.2"
|
||||||
|
|||||||
@ -19,6 +19,12 @@ description:
|
|||||||
- Essentially returns the output of C(docker service inspect <name>).
|
- Essentially returns the output of C(docker service inspect <name>).
|
||||||
- Must be executed on a host running as Swarm Manager, otherwise the module will fail.
|
- Must be executed on a host running as Swarm Manager, otherwise the module will fail.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker
|
||||||
|
- community.docker.docker.docker_py_1_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
- community.docker.attributes.info_module
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
@ -26,10 +32,6 @@ options:
|
|||||||
- The name of the service to inspect.
|
- The name of the service to inspect.
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker
|
|
||||||
- community.docker.docker.docker_py_1_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Hannes Ljungberg (@hannseman)
|
- Hannes Ljungberg (@hannseman)
|
||||||
|
|||||||
@ -15,6 +15,18 @@ short_description: Manage Docker volumes
|
|||||||
description:
|
description:
|
||||||
- Create/remove Docker volumes.
|
- Create/remove Docker volumes.
|
||||||
- Performs largely the same function as the C(docker volume) CLI subcommand.
|
- Performs largely the same function as the C(docker volume) CLI subcommand.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
check_mode:
|
||||||
|
support: full
|
||||||
|
diff_mode:
|
||||||
|
support: full
|
||||||
|
|
||||||
options:
|
options:
|
||||||
volume_name:
|
volume_name:
|
||||||
description:
|
description:
|
||||||
@ -69,10 +81,6 @@ options:
|
|||||||
- absent
|
- absent
|
||||||
- present
|
- present
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Alex Grönholm (@agronholm)
|
- Alex Grönholm (@agronholm)
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,13 @@ module: docker_volume_info
|
|||||||
short_description: Retrieve facts about Docker volumes
|
short_description: Retrieve facts about Docker volumes
|
||||||
description:
|
description:
|
||||||
- Performs largely the same function as the C(docker volume inspect) CLI subcommand.
|
- Performs largely the same function as the C(docker volume inspect) CLI subcommand.
|
||||||
|
|
||||||
|
extends_documentation_fragment:
|
||||||
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.attributes
|
||||||
|
- community.docker.attributes.actiongroup_docker
|
||||||
|
- community.docker.attributes.info_module
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
@ -23,10 +30,6 @@ options:
|
|||||||
aliases:
|
aliases:
|
||||||
- volume_name
|
- volume_name
|
||||||
|
|
||||||
extends_documentation_fragment:
|
|
||||||
- community.docker.docker.api_documentation
|
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Felix Fontein (@felixfontein)
|
- Felix Fontein (@felixfontein)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user