Browse Source

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).
pull/9165/head
Alessio Greggi 2 years ago
committed by GitHub
parent
commit
86d05ac180
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/adduser/tasks/main.yml

2
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"
Loading…
Cancel
Save