add duplicityls alias
This commit is contained in:
parent
d42a2640c1
commit
bcbcc6ae59
@ -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
8
tasks/tools.yml
Normal 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
|
3
templates/profile-backup.sh.j2
Normal file
3
templates/profile-backup.sh.j2
Normal file
@ -0,0 +1,3 @@
|
||||
{% if 'duplicity' in backup_services %}
|
||||
alias duplicityls='source /etc/duplicity/duplicity.cnf && duplicity collection-status "{{ duplicity_s3_path }}"'
|
||||
{% endif %}
|
Loading…
x
Reference in New Issue
Block a user