From ec4cf26d6061b3b8e2bd3e38925c5955276f8b8e Mon Sep 17 00:00:00 2001 From: Piotr Wojciechowski <23406016+WojciechowskiPiotr@users.noreply.github.com> Date: Thu, 28 Feb 2019 20:08:35 +0100 Subject: [PATCH] Documentation update for labels operations on swarm/node (#53083) * Update lib/ansible/modules/cloud/docker/docker_node.py * Update lib/ansible/modules/cloud/docker/docker_swarm.py Co-Authored-By: WojciechowskiPiotr <23406016+WojciechowskiPiotr@users.noreply.github.com> --- lib/ansible/modules/cloud/docker/docker_node.py | 2 ++ lib/ansible/modules/cloud/docker/docker_swarm.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/ansible/modules/cloud/docker/docker_node.py b/lib/ansible/modules/cloud/docker/docker_node.py index 147f5c4f22c..589cd8a4496 100644 --- a/lib/ansible/modules/cloud/docker/docker_node.py +++ b/lib/ansible/modules/cloud/docker/docker_node.py @@ -30,6 +30,8 @@ options: labels: description: - User-defined key/value metadata that will be assigned as node attribute. + - Label operations in this module apply to the docker swarm node specified by I(hostname). + Use M(docker_swarm) module to add/modify/remove swarm cluster labels. - The actual state of labels assigned to the node when module completes its work depends on I(labels_state) and I(labels_to_remove) parameters values. See description below. type: dict diff --git a/lib/ansible/modules/cloud/docker/docker_swarm.py b/lib/ansible/modules/cloud/docker/docker_swarm.py index 18325f06c8e..e55b647b2a3 100644 --- a/lib/ansible/modules/cloud/docker/docker_swarm.py +++ b/lib/ansible/modules/cloud/docker/docker_swarm.py @@ -123,6 +123,8 @@ options: labels: description: - User-defined key/value metadata. + - Label operations in this module apply to the docker swarm cluster. + Use M(docker_node) module to add/modify/remove swarm node labels. type: dict signing_ca_cert: description: