@@ -6,13 +6,15 @@ Ansible Role: Docker
6
6
[ ![ Ansible Role] ( http://img.shields.io/badge/galaxy-atosatto.docker--swarm-blue.svg?style=flat-square )] ( https://galaxy.ansible.com/atosatto/docker-swarm )
7
7
[ ![ GitHub tag] ( https://img.shields.io/github/tag/atosatto/ansible-dockerswarm.svg )] ( https://github.com/atosatto/ansible-dockerswarm/tags )
8
8
9
- Setup Docker on RHEL/CentOS and Debian/Ubuntu servers.
9
+ Setup Docker on RHEL/CentOS and Debian/Ubuntu servers. < br />
10
10
The role supports Docker Engine's "Swarm Mode" (https://docs.docker.com/engine/swarm/ ) to create a cluster of Docker nodes.
11
11
12
12
Requirements
13
13
------------
14
14
15
15
An Ansible 2.7 or higher installation.
16
+ This role makes use of the Ansible ` json_filter ` that requires ` jmespath ` to be installed on the Ansible machine.
17
+ See the ` requirements.txt ` file for further details on the specific version of ` jmespath ` required by the role.
16
18
17
19
Dependencies
18
20
------------
@@ -34,12 +36,12 @@ To skip the configuration of the repository and use the system repositories set
34
36
35
37
Name of the package providing the Docker daemon.
36
38
37
- docker_package_version: ""
39
+ docker_package_version: ""
38
40
39
41
Version of the Docker package to be installed on the target hosts.
40
42
When set to ` "" ` the latest available version will be installed.
41
43
42
- docker_package_state: present
44
+ docker_package_state: present
43
45
44
46
Set it to ` latest ` to force the upgrade of the installed Docker packages.
45
47
@@ -92,6 +94,11 @@ the default containerd service definition.
92
94
93
95
State of the containerd service.
94
96
97
+ docker_compose_version: ""
98
+
99
+ Version of docker-compose to be installed via python-pip.
100
+ When set to ` "" ` the latest available version will be installed.
101
+
95
102
docker_group_name: "docker"
96
103
docker_group_users:
97
104
- "{{ ansible_user }}"
@@ -118,6 +125,7 @@ Listen port for the Swarm raft API.
118
125
skip_group: false
119
126
skip_swarm: false
120
127
skip_docker_py: false
128
+ skip_docker_compose: false
121
129
122
130
Switches allowing to disable specific functionalities of the role.
123
131
If you want to use this role to install ` docker-engine ` without enabling ` swarm-mode ` set ` skip_swarm: true ` .
0 commit comments