diff --git a/testsite/playbooks/ldap.yml b/testsite/playbooks/ldap.yml index b2e4fc51576d2f3cb8e1be5390ea9c0b97b21eb0..f923015cc8679d05c30b168b71925da4394e2835 100644 --- a/testsite/playbooks/ldap.yml +++ b/testsite/playbooks/ldap.yml @@ -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