mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
(cherry picked from commit fbbc0898ed)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
f4d3188199
commit
fd81f1d008
@ -139,7 +139,7 @@ keyed_groups:
|
|||||||
- prefix: os
|
- prefix: os
|
||||||
key: docker_platform
|
key: docker_platform
|
||||||
|
|
||||||
# Example using SSH connection with an explicit fallback for when port 22 hasn't been
|
# Example using SSH connection with an explicit fallback for when port 22 has not been
|
||||||
# exported: use container name as ansible_ssh_host and 22 as ansible_ssh_port
|
# exported: use container name as ansible_ssh_host and 22 as ansible_ssh_port
|
||||||
plugin: community.docker.docker_containers
|
plugin: community.docker.docker_containers
|
||||||
connection_type: ssh
|
connection_type: ssh
|
||||||
|
|||||||
@ -84,7 +84,7 @@ options:
|
|||||||
specified for lists or sets, the container will only be updated or restarted if
|
specified for lists or sets, the container will only be updated or restarted if
|
||||||
the module option contains a value which is not present in the container's
|
the module option contains a value which is not present in the container's
|
||||||
options. If the option is specified for a dict, the container will only be updated
|
options. If the option is specified for a dict, the container will only be updated
|
||||||
or restarted if the module option contains a key which isn't present in the
|
or restarted if the module option contains a key which is not present in the
|
||||||
container's option, or if the value of a key present differs.
|
container's option, or if the value of a key present differs.
|
||||||
- The wildcard option C(*) can be used to set one of the default values C(strict)
|
- The wildcard option C(*) can be used to set one of the default values C(strict)
|
||||||
or C(ignore) to I(all) comparisons which are not explicitly set to other values.
|
or C(ignore) to I(all) comparisons which are not explicitly set to other values.
|
||||||
@ -1075,7 +1075,7 @@ EXAMPLES = '''
|
|||||||
volumes:
|
volumes:
|
||||||
- /tmp:/tmp
|
- /tmp:/tmp
|
||||||
comparisons:
|
comparisons:
|
||||||
image: ignore # don't restart containers with older versions of the image
|
image: ignore # do not restart containers with older versions of the image
|
||||||
env: strict # we want precisely this environment
|
env: strict # we want precisely this environment
|
||||||
volumes: allow_more_present # if there are more volumes, that's ok, as long as `/tmp:/tmp` is there
|
volumes: allow_more_present # if there are more volumes, that's ok, as long as `/tmp:/tmp` is there
|
||||||
|
|
||||||
|
|||||||
@ -78,7 +78,7 @@ nodes:
|
|||||||
- Facts representing the current state of the nodes. Matches the C(docker node inspect) output.
|
- Facts representing the current state of the nodes. Matches the C(docker node inspect) output.
|
||||||
- Can contain multiple entries if more than one node provided in I(name), or I(name) is not provided.
|
- Can contain multiple entries if more than one node provided in I(name), or I(name) is not provided.
|
||||||
- If I(name) contains a list of nodes, the output will provide information on all nodes registered
|
- If I(name) contains a list of nodes, the output will provide information on all nodes registered
|
||||||
at the swarm, including nodes that left the swarm but haven't been removed from the cluster on swarm
|
at the swarm, including nodes that left the swarm but have not been removed from the cluster on swarm
|
||||||
managers and nodes that are unreachable.
|
managers and nodes that are unreachable.
|
||||||
returned: always
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user