docker/tasks/main.yml

22 lines
397 B
YAML
Raw Normal View History

2019-10-06 15:31:59 +00:00
- name: Install Docker.
package:
name:
- docker
- docker-compose
state: present
notify: restart docker
2020-07-05 10:12:10 +00:00
become: true
2019-10-06 15:31:59 +00:00
- name: Ensure Docker is started and enabled at boot.
service:
name: docker
state: "{{ docker_service_state }}"
enabled: "{{ docker_service_enabled }}"
2020-07-05 10:12:10 +00:00
become: true
2019-10-06 15:31:59 +00:00
- include_tasks: docker-users.yml
when: docker_users | length > 0
2020-07-05 10:12:10 +00:00