[backuppc] Initial role

certbot_on_virtu
Alexandre Iooss 2020-04-29 12:15:12 +02:00
parent 48c33326c5
commit a10fda1b19
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,20 @@
---
- name: Install backuppc
apt:
update_cache: true
name: backuppc
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Disable mlocate indexation of backup files
lineinfile:
path: /etc/updatedb.conf
regexp: '^PRUNEPATHS'
line: PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph /var/lib/backuppc /backup"
- name: Indicate role in motd
template:
src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-backuppc
mode: 0755

View File

@ -0,0 +1,3 @@
#!/usr/bin/tail +14
{{ ansible_header | comment }}
> BackupPC a été déployé sur cette machine. Voir /etc/backuppc/ et /var/lib/backuppc/.

View File

@ -114,3 +114,7 @@
- ftpsync
- rsync-mirror
- nginx-pubftp
- hosts: zephir.adm.crans.org
roles:
- backuppc