aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-02-13 20:56:47 -0500
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-02-13 20:56:47 -0500
commit48f820b60f284b2bb9aea5c35b580b2148c1b37f (patch)
treeb2cbd0e6241398c4062fb301c8d7c97164faa80d /playbooks
parentf3b29d35db446739323bb641bbcd2de23b23f981 (diff)
downloadselfhosted-48f820b60f284b2bb9aea5c35b580b2148c1b37f.tar.gz
selfhosted-48f820b60f284b2bb9aea5c35b580b2148c1b37f.zip
move freeipa and asterisk archive commands to role vars
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/asterisk.yml5
-rw-r--r--playbooks/freeipa.yml7
2 files changed, 2 insertions, 10 deletions
diff --git a/playbooks/asterisk.yml b/playbooks/asterisk.yml
index 0d4bb24..5dce703 100644
--- a/playbooks/asterisk.yml
+++ b/playbooks/asterisk.yml
@@ -10,8 +10,5 @@
- role: archive_job
archive_name: asterisk
archive_user: asterisk
- archive_shell: >-
- TIMESTAMP=$(date +%Y%m%d%H%M%S);
- tar czf "asterisk-${TIMESTAMP}.tar.gz"
- --transform "s|^\.|asterisk-${TIMESTAMP}|" -C {{ asterisk_data_dir }} .
+ archive_shell: '{{ asterisk_archive_shell }}'
tags: archive
diff --git a/playbooks/freeipa.yml b/playbooks/freeipa.yml
index 77ba9b3..78e85e1 100644
--- a/playbooks/freeipa.yml
+++ b/playbooks/freeipa.yml
@@ -13,12 +13,7 @@
- role: archive_job
archive_name: ipa
archive_on_calendar: 'Sat *-*-* 02:00:00'
- archive_shell: >-
- 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 {} +
+ archive_shell: '{{ freeipa_archive_shell }}'
tags: archive
- name: configure freeipa replicas