Files @ 5eb7821a1e4d
Branch filter:

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

branko
MAR-218: Switch to using ldap_attrs module:

- Update invocations and syntax.
- Drop the workaround for configuring TLS on the LDAP server (should
be possible to set all relevant attributes at the same time at this
point).
- Group some invocations where it makes sense.
---

- 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.include_tasks: ../handlers/main.yml
  when: "run_handlers | default(False) | bool()"
  tags:
    - handlers