From 86d05ac180f08a47a6f3b5d57a88264b684b5af8 Mon Sep 17 00:00:00 2001
From: Alessio Greggi <ale_grey_91@hotmail.it>
Date: Tue, 16 Aug 2022 08:55:07 +0200
Subject: [PATCH] fix: remove condition for user creation (#9125)

This condition blocks the creation of the `etcd` user in certain conditions.
Specifically, when you have a `etcd_deployment_type: kubeadm` and `kube_owner: root`.
Being the `root` user already present on the system, this will not be a problem (due to the idempotency of ansible).
---
 roles/adduser/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/adduser/tasks/main.yml b/roles/adduser/tasks/main.yml
index a36467977..45b2de9b8 100644
--- a/roles/adduser/tasks/main.yml
+++ b/roles/adduser/tasks/main.yml
@@ -13,4 +13,4 @@
     shell: "{{ user.shell|default(omit) }}"
     name: "{{ user.name }}"
     system: "{{ user.system|default(omit) }}"
-  when: kube_owner != "root"
+  when: user.name != "root"
-- 
GitLab