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 - basic
- users - users
- sshd - sshd
vars:
users:
- rilla
- ansible
post_tasks: post_tasks:
- name: lbu commit - name: lbu commit
lbu: lbu:

View File

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