mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
(cherry picked from commit d17ee667ce)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
ad3ed495fd
commit
27366f4926
@ -73,9 +73,7 @@ options:
|
|||||||
|
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
- With state V(absent) forces disconnecting all containers from the
|
- With state V(present) will disconnect all containers for existing networks, delete the network and re-create the
|
||||||
network prior to deleting the network. With state V(present) will
|
|
||||||
disconnect all containers, delete the network and re-create the
|
|
||||||
network.
|
network.
|
||||||
- This option is required if you have changed the IPAM or driver options
|
- This option is required if you have changed the IPAM or driver options
|
||||||
and want an existing network to be updated to use the new options.
|
and want an existing network to be updated to use the new options.
|
||||||
@ -133,9 +131,8 @@ options:
|
|||||||
|
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- V(absent) deletes the network. If a network has connected containers, it
|
- V(absent) deletes the network. If a network has connected containers, these will be
|
||||||
cannot be deleted. Use the O(force) option to disconnect all containers
|
detached from the network.
|
||||||
and delete the network.
|
|
||||||
- V(present) creates the network, if it does not already exist with the
|
- V(present) creates the network, if it does not already exist with the
|
||||||
specified parameters, and connects the list of containers provided via
|
specified parameters, and connects the list of containers provided via
|
||||||
the connected parameter. Containers not on the list will be disconnected.
|
the connected parameter. Containers not on the list will be disconnected.
|
||||||
@ -259,7 +256,6 @@ EXAMPLES = '''
|
|||||||
community.docker.docker_network:
|
community.docker.docker_network:
|
||||||
name: network_one
|
name: network_one
|
||||||
state: absent
|
state: absent
|
||||||
force: true
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user