Files @ c8d4251a6ea5
Branch filter:

Location: majic-ansible-roles/testsite/playbooks/ldap.yml - annotation

branko
MAR-131: Added support for specifying Python version in wsgi_website role:

- Introduced additional role parameter for specifying the Python
version.
- Updated tests to verify new functionality.
- Fixed existing tests to account for differences between Python 2 and
Python 3 - including changes to WSGI test applications.
- Updated documentation, documenting new parameter and fixing one
minor typo.
- Updated release notes.
- Bumped default version of Gunicorn/futures used.
---

- hosts: ldap
  remote_user: ansible
  become: true
  roles:
    - common
    - 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