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:
Thibaud Leprêtre 2017-07-20 09:04:08 +02:00
parent e7ff2b8657
commit df3fb0a528
No known key found for this signature in database
GPG Key ID: 38ACBC2EB3FCB561
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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: