ldap_server: Add support for Rocky Linux
This commit is contained in:
parent
78fa1bd9ca
commit
98ecd89b68
1 changed files with 20 additions and 0 deletions
|
@ -176,6 +176,25 @@
|
||||||
follow: false
|
follow: false
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
|
- name: create slapd service drop-in directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/systemd/system/slapd.service.d
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
when: ansible_distribution == "Rocky"
|
||||||
|
|
||||||
|
- name: create slapd service drop-in file
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: /etc/systemd/system/slapd.service.d/local.conf
|
||||||
|
src: slapd.service
|
||||||
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
notify: restart slapd
|
||||||
|
when: ansible_distribution == "Rocky"
|
||||||
|
|
||||||
- name: create slapd sysconfig file
|
- name: create slapd sysconfig file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/sysconfig/slapd
|
dest: /etc/sysconfig/slapd
|
||||||
|
@ -184,6 +203,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
notify: restart slapd
|
notify: restart slapd
|
||||||
|
when: ansible_distribution != "Rocky"
|
||||||
|
|
||||||
- name: add custom schema files
|
- name: add custom schema files
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue