feat: add docker_service_enabled variable
This commit is contained in:
parent
29cd642f94
commit
0f64f55954
3 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ Install and configure docker service
|
||||||
|
|
||||||
* `docker_repo_distribution` - set the distribution for docker repository (default: `ansible_distribution_release`)
|
* `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_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
|
* `docker_networks` - array with the docker networks
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
docker_service_enabled: yes
|
||||||
docker_repo_distribution: '{{ ansible_distribution_release }}'
|
docker_repo_distribution: '{{ ansible_distribution_release }}'
|
||||||
docker_compose_version: 1.23.2
|
docker_compose_version: 1.23.2
|
||||||
docker_compose_url: "https://github.com/docker/compose/releases/download/\
|
docker_compose_url: "https://github.com/docker/compose/releases/download/\
|
||||||
|
|
|
@ -34,6 +34,6 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: 'docker-compose@{{ item }}'
|
name: 'docker-compose@{{ item }}'
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: '{{ docker_service_enabled }}'
|
||||||
loop: '{{ docker_services|list }}'
|
loop: '{{ docker_services|list }}'
|
||||||
tags: docker
|
tags: docker
|
||||||
|
|
Loading…
Reference in a new issue