diff --git a/roles/rsync-mirror/tasks/main.yml b/roles/rsync-mirror/tasks/main.yml index 75c8cb06..52be85b7 100644 --- a/roles/rsync-mirror/tasks/main.yml +++ b/roles/rsync-mirror/tasks/main.yml @@ -10,3 +10,9 @@ template: src: rsync-mirror-cron.j2 dest: /etc/cron.d/rsync-mirror + +- name: Indicate role in motd + template: + src: update-motd.d/05-service.j2 + dest: /etc/update-motd.d/05-rsync-mirror + mode: 0755 diff --git a/roles/rsync-mirror/templates/update-motd.d/05-service.j2 b/roles/rsync-mirror/templates/update-motd.d/05-service.j2 new file mode 100755 index 00000000..0f9abd08 --- /dev/null +++ b/roles/rsync-mirror/templates/update-motd.d/05-service.j2 @@ -0,0 +1,3 @@ +#!/usr/bin/tail +3 +# {{ ansible_managed }} +> rsync-mirror a été déployé sur cette machine. Voir /etc/cron.d/rsync-mirror.