refactored user creation tasks

main
Ricard Illa 2022-08-30 15:52:14 +02:00
parent e72efe774f
commit 59ead99f51
2 changed files with 9 additions and 8 deletions

View File

@ -6,6 +6,10 @@
- basic
- users
- sshd
vars:
users:
- rilla
- ansible
post_tasks:
- name: lbu commit
lbu:

View File

@ -1,8 +1,5 @@
- name: setup user 'rilla'
include_tasks: rilla.yml
- name: setup user 'ansible'
include_tasks: ansible.yml
- name: setup user 'woodpecker'
include_tasks: woodpecker.yml
- name: create users
include_tasks: "{{ username }}.yml"
loop: "{{ users }}"
loop_control:
loop_var: username