ansible-role-server/tasks/docker.yml

21 lines
568 B
YAML

---
# 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