From 2e753db873b0358725eb8344cd25bde4fc3c36c6 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 22 Jul 2019 21:00:05 +0200 Subject: [PATCH] Indicate unifi role --- roles/unifi-controller/tasks/main.yml | 6 ++++++ .../unifi-controller/templates/update-motd.d/05-service.j2 | 3 +++ 2 files changed, 9 insertions(+) create mode 100755 roles/unifi-controller/templates/update-motd.d/05-service.j2 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."