refactored user creation tasks
parent
e72efe774f
commit
59ead99f51
|
@ -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:
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue