add duplicityls alias

This commit is contained in:
camille 2023-01-04 11:34:47 +01:00
parent d42a2640c1
commit bcbcc6ae59
3 changed files with 16 additions and 0 deletions

View File

@ -10,3 +10,8 @@
- backup_duplicity
with_items:
- "{{ backup_services }}"
- name: tools
include_tasks: "tools.yml"
tags:
- backup_duplicity

8
tasks/tools.yml Normal file
View File

@ -0,0 +1,8 @@
---
- name: backup | add command aliases
template:
src: profile-backup.sh.j2
dest: /etc/profile.d/backup.sh
owner: root
group: root
mode: 0640

View File

@ -0,0 +1,3 @@
{% if 'duplicity' in backup_services %}
alias duplicityls='source /etc/duplicity/duplicity.cnf && duplicity collection-status "{{ duplicity_s3_path }}"'
{% endif %}