Skip to content

Commit

Permalink
Move user info to a fact (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
MAHDTech authored Nov 30, 2021
1 parent af5657b commit 95fc8f1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
include_vars:
file: "{{ job.path }}"

- name: "Add User to removal queue"
- name: Set fact with user information
set_fact:
users_remove: "{{ (users_remove | default([])) + [ user_info ] }}"
vars:
user_info:
first_name: "{{ first_name | trim }}"
last_name: "{{ last_name | trim }}"
email: "{{ email | trim }}"
user_name: "{{ email.split('@')[0] | trim }}"
state: "absent"

- name: "Add User to removal queue"
set_fact:
users_remove: "{{ (users_remove | default([])) + [ user_info ] }}"

0 comments on commit 95fc8f1

Please sign in to comment.