org not needed in account.csv
create tmp password recap file upon account creation
This commit is contained in:
@@ -27,7 +27,12 @@
|
||||
userPassword: "{{ password }}"
|
||||
register: result
|
||||
|
||||
- name: display
|
||||
debug:
|
||||
msg: "{{ firstname }} created with password >{{ password }}<"
|
||||
- name: "account recap"
|
||||
ansible.builtin.lineinfile:
|
||||
path: "tmppassword.csv"
|
||||
state: present
|
||||
create: true
|
||||
line: "{{ firstname | lower }},{{ password }}"
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
when: result.changed
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
tags: always
|
||||
when: binddn is not defined
|
||||
|
||||
- name: add ldap ou
|
||||
- name: "add ldap ou ou={{ org }},{{ ldap_base }}"
|
||||
community.general.ldap_entry:
|
||||
dn: "ou={{ org }},{{ ldap_base }}"
|
||||
bind_dn: "{{ binddn }}"
|
||||
|
||||
Reference in New Issue
Block a user