added group support
This commit is contained in:
@@ -1,18 +1,9 @@
|
||||
---
|
||||
# ansible-playbook /etc/ansible/Playbooks/new_ldap_user.yml -K --ask-vault-pass
|
||||
# --extra-vars="file=account.csv"
|
||||
- name: set some vars
|
||||
ansible.builtin.set_fact:
|
||||
binddn: "{{ lookup( 'viczem.keepass.keepass', 'opendoor/collidine_ldap_password', 'username' ) }}"
|
||||
bindpwd: "{{ lookup( 'viczem.keepass.keepass', 'opendoor/collidine_ldap_password', 'password' ) }}"
|
||||
tags: always
|
||||
when: binddn is not defined
|
||||
|
||||
- name: "add ldap ou ou={{ org }},{{ ldap_base }}"
|
||||
community.general.ldap_entry:
|
||||
dn: "ou={{ org }},{{ ldap_base }}"
|
||||
bind_dn: "{{ binddn }}"
|
||||
bind_pw: "{{ bindpwd }}"
|
||||
bind_dn: "{{ ldap_binddn }}"
|
||||
bind_pw: "{{ ldap_bindpwd }}"
|
||||
objectClass:
|
||||
- organizationalUnit
|
||||
- top
|
||||
|
||||
Reference in New Issue
Block a user