geerlingguy.ansible-role-do.../tasks/main.yml

16 lines
362 B
YAML

---
- name: OS specific setup
include: include: "setup-{{ ansible_os_family }}.yml"
- 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