From 642072c50334003420d0706696efacd7c26f9d1e Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 26 Apr 2020 18:37:12 +0200 Subject: [PATCH] [bind-author] Motd --- roles/bind-authoritative/tasks/main.yml | 6 ++++++ .../templates/update-motd.d/05-service.j2 | 3 +++ 2 files changed, 9 insertions(+) create mode 100755 roles/bind-authoritative/templates/update-motd.d/05-service.j2 diff --git a/roles/bind-authoritative/tasks/main.yml b/roles/bind-authoritative/tasks/main.yml index 47d16b22..b7554dff 100644 --- a/roles/bind-authoritative/tasks/main.yml +++ b/roles/bind-authoritative/tasks/main.yml @@ -19,3 +19,9 @@ - named.conf.local - named.conf.options notify: Reload Bind9 + +- name: Indicate role in motd + template: + src: update-motd.d/05-service.j2 + dest: /etc/update-motd.d/05-bind + mode: 0755 diff --git a/roles/bind-authoritative/templates/update-motd.d/05-service.j2 b/roles/bind-authoritative/templates/update-motd.d/05-service.j2 new file mode 100755 index 00000000..14a3c3d2 --- /dev/null +++ b/roles/bind-authoritative/templates/update-motd.d/05-service.j2 @@ -0,0 +1,3 @@ +#!/usr/bin/tail +14 +{{ ansible_header | comment }} +> Bind9 (autoritaire) a été déployé sur cette machine. Voir /etc/bind/.