docker_volume
Collection: community.general
Full Name: parallax.community.general.docker_volume
Aliases: community.general.docker_volume, docker_volume
Synopsis
Manage docker volume
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | yes | Name of the Docker volume | |
| state | string | present | State of the volume Choices: present, absent | |
| driver | string | local | Volume driver to use | |
| driver_options | string | Driver options as key=value pairs separated by commas | ||
| labels | string | Labels as key=value pairs separated by commas | ||
| recreate | string | never | When to recreate the volume Choices: never, options-changed, always | |
| force | bool | false | Force removal of volume even if in use |
Example
- name: Example docker_volume task
docker_volume:
name: <your_name>