Files @ da53a3aa5208
Branch filter:

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

branko
MAR-218: Fix the test run logic in test runner script:

- Linter tests should _always_ be run.
- Test report files should be appended to when using tee.
- Get rid of excess molecule destroy (probably not required any
longer). This will reduce the output and speed up things a little
bit.
---

- name: Deploy LDAP server
  hosts: ldap
  remote_user: ansible
  become: true
  roles:
    - common
    - mail_forwarder
    - ldap_client
    - ldap_server

- name: Create data on LDAP server
  hosts: ldap
  remote_user: ansible
  become: true
  tasks:

    - name: Add users to mail LDAP group
      community.general.ldap_attrs:
        dn: "cn=mail,ou=groups,{{ testsite_ldap_base }}"
        attributes:
          uniqueMember:
            - "uid=johndoe,ou=people,{{ testsite_ldap_base }}"
            - "uid=janedoe,ou=people,{{ testsite_ldap_base }}"
        state: present

    - name: Add user to XMPP LDAP group
      community.general.ldap_attrs:
        dn: "cn=xmpp,ou=groups,{{ testsite_ldap_base }}"
        attributes:
          uniqueMember:
            - "uid=johndoe,ou=people,{{ testsite_ldap_base }}"
            - "uid=janedoe,ou=people,{{ testsite_ldap_base }}"
        state: present