Merge pull request #15 from kakawait/package-state-var

Add var to customize docker pkg state
This commit is contained in:
Jeff Geerling 2017-07-31 21:15:37 -05:00 committed by GitHub
commit 8a86f88b97
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). # Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition).
docker_edition: 'ce' docker_edition: 'ce'
docker_package: "docker-{{ docker_edition }}" docker_package: "docker-{{ docker_edition }}"
docker_package_state: present
# Docker Compose options. # Docker Compose options.
docker_install_compose: true docker_install_compose: true

View File

@ -6,7 +6,7 @@
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: Install Docker. - 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. - name: Ensure Docker is started and enabled at boot.
service: service: