ansible-role-server/tasks/docker.yml

20 lines
520 B
YAML
Raw Normal View History

---
# Server/Docker: Install Docker and Docker-Compose
# Variables:
# - none
- name: Docker - Install
ansible.builtin.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: true
ansible.builtin.user:
name: "{{ ansible_user_id }}"
groups: docker
append: true