From 30cfa92e90b3778b4edb6a8828f0b5f0e1b6356f Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Piedehierro Date: Sun, 29 Dec 2019 21:18:46 +0100 Subject: [PATCH] docker_swarm_service: Fix description of limits.memory (#66078) This option corresponds to the '--limit-memory' option. Also fix other mentions memory reservation instead of limit. --- lib/ansible/modules/cloud/docker/docker_swarm_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/docker/docker_swarm_service.py b/lib/ansible/modules/cloud/docker/docker_swarm_service.py index a1fd366558f..e4d2f3f100d 100644 --- a/lib/ansible/modules/cloud/docker/docker_swarm_service.py +++ b/lib/ansible/modules/cloud/docker/docker_swarm_service.py @@ -209,12 +209,12 @@ options: type: float memory: description: - - "Service memory reservation in format C([]). Number is a positive integer. + - "Service memory limit in format C([]). Number is a positive integer. Unit can be C(B) (byte), C(K) (kibibyte, 1024B), C(M) (mebibyte), C(G) (gibibyte), C(T) (tebibyte), or C(P) (pebibyte)." - - C(0) equals no reservation. + - C(0) equals no limit. - Omitting the unit defaults to bytes. - - Corresponds to the C(--reserve-memory) option of C(docker service create). + - Corresponds to the C(--limit-memory) option of C(docker service create). type: str type: dict version_added: "2.8"