aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/freeipa.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/freeipa.yml')
-rw-r--r--playbooks/freeipa.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/playbooks/freeipa.yml b/playbooks/freeipa.yml
index b8ecc85..ede053b 100644
--- a/playbooks/freeipa.yml
+++ b/playbooks/freeipa.yml
@@ -12,8 +12,11 @@
archive_on_calendar: 'Sat *-*-* 02:00:00'
archive_shell: >-
ipa-backup &&
- mv -v /var/lib/ipa/backup/* . &&
+ find {{ freeipa_backup_dir | quote }} -mindepth 1 -maxdepth 1 -type d
+ -exec cp --preserve=timestamps -vr {} . \;
+ -exec rm -vrf {} \; &&
find . -mindepth 1 -type d -exec chmod -v 770 {} +
+
tags: archive
- name: configure freeipa replicas