File diff 10d5a1e15c30 → f4ac7ec4ad7f
testsite/playbooks/ldap.yml
Show inline comments
 
@@ -8,3 +8,26 @@
 
    - mail_forwarder
 
    - ldap_client
 
    - ldap_server
 

	
 
- hosts: ldap
 
  remote_user: ansible
 
  become: true
 
  tasks:
 

	
 
    - name: Add users to mail LDAP group
 
      ldap_attr:
 
        dn: "cn=mail,ou=groups,{{ testsite_ldap_base }}"
 
        name: uniqueMember
 
        values:
 
          - "uid=johndoe,ou=people,{{ testsite_ldap_base }}"
 
          - "uid=janedoe,ou=people,{{ testsite_ldap_base }}"
 
        state: present
 

	
 
    - name: Add user to XMPP LDAP group
 
      ldap_attr:
 
        dn: "cn=xmpp,ou=groups,{{ testsite_ldap_base }}"
 
        name: uniqueMember
 
        values:
 
          - "uid=johndoe,ou=people,{{ testsite_ldap_base }}"
 
          - "uid=janedoe,ou=people,{{ testsite_ldap_base }}"
 
        state: present