ldap_server: Fix install on Rocky Linux 8
This commit is contained in:
parent
49244231ed
commit
47fccafdcb
1 changed files with 24 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue