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 <felix@fontein.de>
This commit is contained in:
Drew 2019-08-08 10:25:13 -05:00 committed by Felix Fontein
parent c2e7683926
commit 6932a5b357
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- docker_swarm_service - Add ``npipe`` mount support.

View file

@ -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'),