2019-10-06 20:55:56 +00:00
|
|
|
---
|
|
|
|
# Server/Docker: Install Docker and Docker-Compose
|
2019-10-27 15:25:33 +00:00
|
|
|
# Variables:
|
2021-09-25 21:39:19 +00:00
|
|
|
# - none
|
2019-10-06 20:55:56 +00:00
|
|
|
|
2023-04-28 21:25:21 +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
|
2023-04-28 21:25:21 +00:00
|
|
|
- name: Docker - Add standard user to docker group
|
|
|
|
become: true
|
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
|
2023-04-28 21:25:21 +00:00
|
|
|
append: true
|