From 6932a5b3570ea8a41e055a864f38f6d60155db05 Mon Sep 17 00:00:00 2001 From: Drew Date: Thu, 8 Aug 2019 10:25:13 -0500 Subject: [PATCH] add npipe support to docker_swarm_service (#60073) * add npipe support to docker_swarm_service * add changelog fragment * tweak changelog fragment formatting * Update lib/ansible/modules/cloud/docker/docker_swarm_service.py Co-Authored-By: Felix Fontein --- changelogs/fragments/60073-docker_swarm_service_add_npipe.yml | 2 ++ lib/ansible/modules/cloud/docker/docker_swarm_service.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/60073-docker_swarm_service_add_npipe.yml diff --git a/changelogs/fragments/60073-docker_swarm_service_add_npipe.yml b/changelogs/fragments/60073-docker_swarm_service_add_npipe.yml new file mode 100644 index 00000000000..03ac3931cec --- /dev/null +++ b/changelogs/fragments/60073-docker_swarm_service_add_npipe.yml @@ -0,0 +1,2 @@ +minor_changes: +- docker_swarm_service - Add ``npipe`` mount support. \ No newline at end of file diff --git a/lib/ansible/modules/cloud/docker/docker_swarm_service.py b/lib/ansible/modules/cloud/docker/docker_swarm_service.py index 08b24df5475..9188fe24898 100644 --- a/lib/ansible/modules/cloud/docker/docker_swarm_service.py +++ b/lib/ansible/modules/cloud/docker/docker_swarm_service.py @@ -285,12 +285,14 @@ options: type: description: - The mount type. + - Note that C(npipe) is only supported by Docker for Windows. Also note that C(npipe) was added in Ansible 2.9. type: str default: bind choices: - bind - volume - tmpfs + - npipe readonly: description: - Whether the mount should be read-only. @@ -2535,7 +2537,7 @@ def main(): type=dict( type='str', default='bind', - choices=['bind', 'volume', 'tmpfs'], + choices=['bind', 'volume', 'tmpfs', 'npipe'], ), readonly=dict(type='bool'), labels=dict(type='dict'),