diff --git a/roles/borgbackup-client/tasks/main.yml b/roles/borgbackup-client/tasks/main.yml index f71fce33..2325ea27 100644 --- a/roles/borgbackup-client/tasks/main.yml +++ b/roles/borgbackup-client/tasks/main.yml @@ -53,3 +53,8 @@ dest: "/etc/cron.d/borg" notify: restart cron +- name: Indicate role in motd + template: + src: update-motd.d/04-service.j2 + dest: /etc/update-motd.d/04-borgbackup + mode: 0755 diff --git a/roles/borgbackup-client/templates/update-motd.d/04-service.j2 b/roles/borgbackup-client/templates/update-motd.d/04-service.j2 new file mode 100755 index 00000000..c9e0066a --- /dev/null +++ b/roles/borgbackup-client/templates/update-motd.d/04-service.j2 @@ -0,0 +1,4 @@ +#!/usr/bin/tail +14 +{{ ansible_header | comment }} +> Borgbackup (Client) a été déployé sur cette machine. +