disabled user ansible

This commit is contained in:
rene
2022-04-21 14:00:08 +02:00
parent 83e13d8922
commit d77e4a2391
2 changed files with 4 additions and 4 deletions

View File

@@ -8,6 +8,6 @@
loop:
- root
- rene
- ansible
#- ansible
loop_control:
loop_var: user

View File

@@ -1,3 +1,6 @@
- name: users | {{ user }} | include user specific parts
include_tasks: "{{ user }}.yml"
- name: users | {{ user }} | getent user home directory
getent:
database: passwd
@@ -5,9 +8,6 @@
split: ":"
fail_key: no # not required. If a supplied key is missing this will make the task fail if C(yes).
- name: users | {{ user }} | include user specific parts
include_tasks: "{{ user }}.yml"
- name: users | {{ user }} | install public ssh keys
authorized_key:
user: '{{ user }}'