feat: add docker_service_enabled variable

This commit is contained in:
Adrien Waksberg 2019-03-18 19:14:40 +01:00
parent 29cd642f94
commit 0f64f55954
3 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,7 @@ Install and configure docker service
* `docker_repo_distribution` - set the distribution for docker repository (default: `ansible_distribution_release`)
* `docker_compose_version` - set the docker-compose version to install (default: `1.23.2`)
* `docker_service_enabled` - enable systemd service (default: `yes`)
* `docker_networks` - array with the docker networks
```

View file

@ -1,4 +1,5 @@
---
docker_service_enabled: yes
docker_repo_distribution: '{{ ansible_distribution_release }}'
docker_compose_version: 1.23.2
docker_compose_url: "https://github.com/docker/compose/releases/download/\

View file

@ -34,6 +34,6 @@
systemd:
name: 'docker-compose@{{ item }}'
state: started
enabled: yes
enabled: '{{ docker_service_enabled }}'
loop: '{{ docker_services|list }}'
tags: docker