ansible-borgbackup/molecule/mgt/tests/test_mgt.yml

17 lines
372 B
YAML
Raw Normal View History

2018-08-30 21:34:04 +00:00
# Molecule managed
---
file:
/root/prune.sh:
exists: true
owner: root
group: root
mode: "0700"
contains:
{% for host in groups.all|difference(groups.borgbackup_servers) %}
- "Host: {{ host }}"
- "export BORG_PASSPHRASE={{ borgbackup_passphrase }}"
- ":/var/backup/repos/{{ host }}"
{% endfor %}
- "/usr/local/bin/borg prune"