ansible-role-server/tasks/docker.yml

20 lines
567 B
YAML
Raw Normal View History

---
# Server/Docker: Install Docker and Docker-Compose
# Variables:
# - dockercompose_use_pip: boolean to use pip instead of manual download (default: false)
- name: docker - Install
include_tasks: "{{ item }}"
with_first_found:
- "docker-{{ ansible_distribution }}.{{ ansible_distribution_release }}.yml"
- "docker-{{ ansible_distribution }}.yml"
- "docker-{{ ansible_os_family }}.yml"
# Other setup tasks
- name: docker - Add standard user to docker group
become: yes
user:
name: "{{ ansible_user_id }}"
groups: docker
append: yes