From 928fe893e941b35f36effb1c911b2e0eed7c6214 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 5 Sep 2022 21:32:10 -0500 Subject: [PATCH] PR #370: Style cleanup. --- tasks/docker-users.yml | 5 ++--- tasks/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tasks/docker-users.yml b/tasks/docker-users.yml index c6a0e41..6e387e6 100644 --- a/tasks/docker-users.yml +++ b/tasks/docker-users.yml @@ -6,6 +6,5 @@ append: true with_items: "{{ docker_users }}" -- name: Reset ssh connection to apply users changes - meta: - reset_connection +- name: Reset ssh connection to apply user changes. + meta: reset_connection diff --git a/tasks/main.yml b/tasks/main.yml index 5a7aa65..dcd47de 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -79,14 +79,14 @@ - include_tasks: docker-compose.yml when: docker_install_compose | bool -- name: Get all docker group infos +- name: Get docker group info using getent. getent: database: group key: docker split: ':' 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: at_least_one_user_to_modify: true when: