diff --git a/roles/unifi-controller/tasks/main.yml b/roles/unifi-controller/tasks/main.yml index 0ff14dd..7f886f2 100644 --- a/roles/unifi-controller/tasks/main.yml +++ b/roles/unifi-controller/tasks/main.yml @@ -39,3 +39,9 @@ register: apt_result retries: 3 until: apt_result is succeeded + +- name: Indicate role in motd + template: + src: update-motd.d/05-service.j2 + dest: /etc/update-motd.d/05-unifi-controller + mode: 0755 diff --git a/roles/unifi-controller/templates/update-motd.d/05-service.j2 b/roles/unifi-controller/templates/update-motd.d/05-service.j2 new file mode 100755 index 0000000..b768773 --- /dev/null +++ b/roles/unifi-controller/templates/update-motd.d/05-service.j2 @@ -0,0 +1,3 @@ +#!/bin/sh +# {{ ansible_managed }} +echo "> Le contrôleur Unifi a été déployé sur cette machine."