mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
Add var to customize docker pkg state
By default var will be `present` to do not break legacy. Fixes #14
This commit is contained in:
parent
e7ff2b8657
commit
df3fb0a528
@ -2,6 +2,7 @@
|
||||
# Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition).
|
||||
docker_edition: 'ce'
|
||||
docker_package: "docker-{{ docker_edition }}"
|
||||
docker_package_state: present
|
||||
|
||||
# Docker Compose options.
|
||||
docker_install_compose: true
|
||||
|
@ -6,7 +6,7 @@
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Install Docker.
|
||||
package: name={{ docker_package }} state=present
|
||||
package: name={{ docker_package }} state={{ docker_package_state }}
|
||||
|
||||
- name: Ensure Docker is started and enabled at boot.
|
||||
service:
|
||||
|
Loading…
Reference in New Issue
Block a user