ldap_server: Fix install on Rocky Linux 8

This commit is contained in:
Timo Makinen 2022-02-24 22:31:18 +00:00
parent 49244231ed
commit 47fccafdcb

View file

@ -1,4 +1,28 @@
---
- name: check if plus repository is enabled
ansible.builtin.command:
argv:
- dnf
- config-manager
- --dump
- plus
warn: false
changed_when: false
register: result
when: ansible_distribution == "Rocky"
- name: enable plus repository
ansible.builtin.command:
argv:
- dnf
- config-manager
- --set-enabled
- plus
warn: false
when:
- ansible_distribution == "Rocky"
- "'enabled = 1' not in result.stdout_lines"
- name: install packages
ansible.builtin.package:
name: "{{ item }}"