fb41492e4a
The role variables were making generalizations on distro package and installation methods. This change further breaks things out, now explicitly supporting ubuntu, debian, fedora, and redhat(centos). Change-Id: Ib1749721b32b21ba1ab661a64097d79037e416f3 Signed-off-by: Kevin Carter <kecarter@redhat.com>
16 lines
309 B
YAML
16 lines
309 B
YAML
---
|
|
|
|
- name: Ensure "docker" group exists
|
|
group:
|
|
name: "{{ docker_group }}"
|
|
state: present
|
|
|
|
- name: Add user to docker group
|
|
user:
|
|
name: "{{ ansible_user }}"
|
|
groups:
|
|
- "{{ docker_group }}"
|
|
append: yes
|
|
|
|
- name: Reset ssh connection to pick up docker group
|
|
meta: reset_connection |