ansible-role-docker/tasks/main.yml
Thibaud Leprêtre df3fb0a528
Add var to customize docker pkg state
By default var will be `present` to do not break legacy.

Fixes #14
2017-07-20 09:04:08 +02:00

19 lines
413 B
YAML

---
- include: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
- name: Install Docker.
package: name={{ docker_package }} state={{ docker_package_state }}
- name: Ensure Docker is started and enabled at boot.
service:
name: docker
state: started
enabled: yes
- include: docker-compose.yml
when: docker_install_compose