2023-05-25 16:19:02 +10:00

36 lines
835 B
YAML

---
- name: Openldap is installed and up to date (rhel)
ansible.builtin.yum:
name: "{{ item }}"
state: latest
loop:
- openldap
- openldap-clients
- nss-pam-ldapd
tags:
- setup
when: ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat' or ansible_distribution == 'AlmaLinux'
- name: Openldap is installed and up to date (debian)
ansible.builtin.apt:
name: "{{ item }}"
state: present
update_cache: true
loop:
- openldap
- nss-pam-ldapd
tags:
- setup
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: Openldap is installed and up to date (arch)
community.general.pacman:
name: "{{ item }}"
state: present
loop:
- openldap
- nss-pam-ldapd
tags:
- setup
when: ansible_distribution == 'Archlinux'