docker_network
Collection: community.general
Full Name: parallax.community.general.docker_network
Aliases: community.general.docker_network, docker_network
Synopsis
Manage docker network
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | yes | Name of the Docker network | |
| state | string | present | State of the network Choices: present, absent | |
| driver | string | bridge | Network driver to use | |
| driver_options | string | Driver options as key=value pairs separated by commas | ||
| ipam_driver | string | IPAM driver to use | ||
| ipam_config | string | IPAM configuration as subnet=x,gateway=y | ||
| ipam_options | string | IPAM driver options as key=value pairs | ||
| enable_ipv6 | bool | false | Enable IPv6 networking | |
| internal | bool | false | Restrict external access to the network | |
| force | bool | false | Force removal of network | |
| labels | string | Labels as key=value pairs separated by commas | ||
| scope | string | Network scope (local, global, swarm) | ||
| attachable | bool | false | Enable manual container attachment |
Example
- name: Example docker_network task
docker_network:
name: <your_name>