ldap_server: Migrate to use backup_base

This commit is contained in:
Timo Makinen 2024-06-22 19:25:22 +00:00
parent 849b4ab887
commit e60c786b76
2 changed files with 1 additions and 22 deletions

View file

@ -1,5 +1,6 @@
---
dependencies:
- {role: backup_base}
- {role: kerberos}
- {role: ldap}
- {role: saslauthd}

View file

@ -55,28 +55,6 @@
follow: false
when: ldap_datadir != "/srv/ldap"
- name: Import sftpuser role
ansible.builtin.import_role:
name: sftpuser
- name: Create backup directory
ansible.builtin.file:
path: "{{ ldap_backupdir }}"
state: directory
mode: "0750"
owner: root
group: backup
- name: Link backup directory
ansible.builtin.file:
path: /srv/backup
src: /export/backup
state: link
owner: root
group: "{{ ansible_wheel }}"
follow: false
when: ldap_backupdir != "/srv/backup"
- name: Copy backup script
ansible.builtin.copy:
dest: /usr/local/sbin/ldap-backup