From 5fa4021d0e85008326988b88c4b6f737ae543bc1 Mon Sep 17 00:00:00 2001 From: Benjamin Graillot Date: Sat, 7 Dec 2019 10:06:53 +0100 Subject: [PATCH] [ninjabot] Changed motd filename --- roles/ninjabot/tasks/main.yml | 4 ++-- roles/ninjabot/templates/update-motd.d/05-service.j2 | 4 ++++ roles/ninjabot/templates/update-motd.d/60-ninjabot.j2 | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100755 roles/ninjabot/templates/update-motd.d/05-service.j2 delete mode 100755 roles/ninjabot/templates/update-motd.d/60-ninjabot.j2 diff --git a/roles/ninjabot/tasks/main.yml b/roles/ninjabot/tasks/main.yml index 64ceb962..4a35d26e 100644 --- a/roles/ninjabot/tasks/main.yml +++ b/roles/ninjabot/tasks/main.yml @@ -31,6 +31,6 @@ - name: Indicate NinjaBot in motd template: - src: update-motd.d/60-ninjabot.j2 - dest: /etc/update-motd.d/60-ninjabot + src: update-motd.d/05-service.j2 + dest: /etc/update-motd.d/05-ninjabot mode: 0755 diff --git a/roles/ninjabot/templates/update-motd.d/05-service.j2 b/roles/ninjabot/templates/update-motd.d/05-service.j2 new file mode 100755 index 00000000..a98f5085 --- /dev/null +++ b/roles/ninjabot/templates/update-motd.d/05-service.j2 @@ -0,0 +1,4 @@ +#!/usr/bin/tail +3 +# {{ ansible_managed }} +> NinjaBot a été déployé sur cette machine. + Voir /var/local/ninjabot diff --git a/roles/ninjabot/templates/update-motd.d/60-ninjabot.j2 b/roles/ninjabot/templates/update-motd.d/60-ninjabot.j2 deleted file mode 100755 index be417eea..00000000 --- a/roles/ninjabot/templates/update-motd.d/60-ninjabot.j2 +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# {{ ansible_managed }} -echo "> NinjaBot a été déployé sur cette machine." -echo " Voir /var/local/ninjabot"