mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-24 00:33:04 +03:00
Merge pull request #15 from kakawait/package-state-var
Add var to customize docker pkg state
This commit is contained in:
commit
8a86f88b97
@ -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