summaryrefslogtreecommitdiff
path: root/docs/proposals/docker/docker_volume_facts.md
blob: 119df27e33750dedc9a7b6fce40481e23e0811ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

# Docker_Volume_Facts Module Proposal

## Purpose and Scope

Docker_volume_facts will inspect volumes.

Docker_volume_facts will use docker-py to communicate with either a local or remote API. It will
support API versions >= 1.14. API connection details will be handled externally in a shared utility module similar
to how other cloud modules operate.

## Parameters

Docker_volume_facts will accept the parameters listed below. API connection parameters will be part of a shared
utility module as mentioned above.


```
name:
  description:
    - Volume name or list of volume names. 
  default: null
```


## Examples

```
- name: Inspect all volumes
  docker_volume_facts
  register: volume_facts
  
- name: Inspect a specific volume
  docker_volume_facts:
    name: data
  register: data_vol_facts
```

# Returns

```
{
   changed: False
   failed: False
   rc: 0
   results: [ < output from volume inspection  > ]
}
```