Skip to content

Commit 95fc8f1

Browse files
author
MAHDTech
authored
Move user info to a fact (#91)
1 parent af5657b commit 95fc8f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

inventory-generation/identity-management/queue/user-management.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
include_vars:
55
file: "{{ job.path }}"
66

7-
- name: "Add User to removal queue"
7+
- name: Set fact with user information
88
set_fact:
9-
users_remove: "{{ (users_remove | default([])) + [ user_info ] }}"
10-
vars:
119
user_info:
1210
first_name: "{{ first_name | trim }}"
1311
last_name: "{{ last_name | trim }}"
1412
email: "{{ email | trim }}"
1513
user_name: "{{ email.split('@')[0] | trim }}"
1614
state: "absent"
15+
16+
- name: "Add User to removal queue"
17+
set_fact:
18+
users_remove: "{{ (users_remove | default([])) + [ user_info ] }}"

0 commit comments

Comments
 (0)