mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
PR #370: Style cleanup.
This commit is contained in:
parent
9f8ea35051
commit
928fe893e9
@ -6,6 +6,5 @@
|
|||||||
append: true
|
append: true
|
||||||
with_items: "{{ docker_users }}"
|
with_items: "{{ docker_users }}"
|
||||||
|
|
||||||
- name: Reset ssh connection to apply users changes
|
- name: Reset ssh connection to apply user changes.
|
||||||
meta:
|
meta: reset_connection
|
||||||
reset_connection
|
|
||||||
|
@ -79,14 +79,14 @@
|
|||||||
- include_tasks: docker-compose.yml
|
- include_tasks: docker-compose.yml
|
||||||
when: docker_install_compose | bool
|
when: docker_install_compose | bool
|
||||||
|
|
||||||
- name: Get all docker group infos
|
- name: Get docker group info using getent.
|
||||||
getent:
|
getent:
|
||||||
database: group
|
database: group
|
||||||
key: docker
|
key: docker
|
||||||
split: ':'
|
split: ':'
|
||||||
when: docker_users | length > 0
|
when: docker_users | length > 0
|
||||||
|
|
||||||
- name: Check there is at least one user to add to docker group
|
- name: Check if there are any users to add to the docker group.
|
||||||
set_fact:
|
set_fact:
|
||||||
at_least_one_user_to_modify: true
|
at_least_one_user_to_modify: true
|
||||||
when:
|
when:
|
||||||
|
Loading…
Reference in New Issue
Block a user