Files @ b55cb83f8342
Branch filter:

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

branko
Noticket: Added workaround to development process for outdated Molecule version:

- Unfortunately, the Molecule version used for running tests does not
generate valid Ruby 3.x code. For now just work around the way Hash
is unpacked in function calls to optional arguments (until the test
stack gets a revamp).
---

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

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

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

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