Files @ b171f6203e40
Branch filter:

Location: majic-ansible-roles/roles/ldap_client/tasks/main.yml

branko
MAR-241: Implemented connection rate limit tests for the common role:

- Tweak some test machine parameters to have better test
sample representation.
- Tests heavily rely not being laggy to get the expected output. Tests
may need to get reworked a bit if they end up failing repeatedly
during test runs.
---

- name: Install OpenLDAP client tools
  ansible.builtin.apt:
    name: ldap-utils
    state: present

- name: Set-up LDAP client configuration directory
  ansible.builtin.file:
    path: /etc/ldap/
    state: directory
    owner: root
    group: root
    mode: "0755"

- name: Deploy LDAP client configuration file
  ansible.builtin.template:
    src: ldap.conf.j2
    dest: /etc/ldap/ldap.conf
    owner: root
    group: root
    mode: "0644"

- name: Explicitly run all handlers
  ansible.builtin.import_tasks: ../handlers/main.yml
  when: "run_handlers | default(False) | bool()"
  tags:
    - handlers