2019-10-06 20:55:56 +00:00
|
|
|
---
|
|
|
|
# Server/Docker: Install Docker and Docker-Compose
|
2019-10-27 15:25:33 +00:00
|
|
|
# Variables:
|
|
|
|
# - dockercompose_use_pip: boolean to use pip instead of manual download (default: false)
|
2019-10-06 20:55:56 +00:00
|
|
|
|
2019-10-27 15:25:33 +00:00
|
|
|
- name: docker - Install
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.include_tasks: "{{ item }}"
|
2019-10-27 15:25:33 +00:00
|
|
|
with_first_found:
|
|
|
|
- "docker-{{ ansible_distribution }}.{{ ansible_distribution_release }}.yml"
|
|
|
|
- "docker-{{ ansible_distribution }}.yml"
|
|
|
|
- "docker-{{ ansible_os_family }}.yml"
|
2019-10-06 20:55:56 +00:00
|
|
|
|
|
|
|
# Other setup tasks
|
|
|
|
- name: docker - Add standard user to docker group
|
|
|
|
become: yes
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.user:
|
2019-10-06 20:55:56 +00:00
|
|
|
name: "{{ ansible_user_id }}"
|
|
|
|
groups: docker
|
|
|
|
append: yes
|