From fd81f1d008c8bc93c6ba81ddaf81e81652a7a85b Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 10 Jan 2022 08:27:12 +0100 Subject: [PATCH] More small docs fixes. (#281) (#282) (cherry picked from commit fbbc0898eddcfccb8b9813f8a9bd6256e4a1488e) Co-authored-by: Felix Fontein --- plugins/inventory/docker_containers.py | 2 +- plugins/modules/docker_container.py | 4 ++-- plugins/modules/docker_node_info.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/inventory/docker_containers.py b/plugins/inventory/docker_containers.py index 662ca1e2..23574624 100644 --- a/plugins/inventory/docker_containers.py +++ b/plugins/inventory/docker_containers.py @@ -139,7 +139,7 @@ keyed_groups: - prefix: os 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 plugin: community.docker.docker_containers connection_type: ssh diff --git a/plugins/modules/docker_container.py b/plugins/modules/docker_container.py index adb7bdb4..16807117 100644 --- a/plugins/modules/docker_container.py +++ b/plugins/modules/docker_container.py @@ -84,7 +84,7 @@ options: 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 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. - 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. @@ -1075,7 +1075,7 @@ EXAMPLES = ''' volumes: - /tmp:/tmp 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 volumes: allow_more_present # if there are more volumes, that's ok, as long as `/tmp:/tmp` is there diff --git a/plugins/modules/docker_node_info.py b/plugins/modules/docker_node_info.py index 4fcd8d5a..fdce4a53 100644 --- a/plugins/modules/docker_node_info.py +++ b/plugins/modules/docker_node_info.py @@ -78,7 +78,7 @@ nodes: - 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. - 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. returned: always type: list