Use 'update_motd' in 'prometheus'

This commit is contained in:
jeltz 2021-03-06 04:32:06 +01:00
parent b81600aef8
commit 1d0200a1f0
2 changed files with 8 additions and 9 deletions

View file

@ -84,8 +84,11 @@
enabled: true
state: started
- name: Indicate role in motd
template:
src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-prometheus
mode: 0755
- include_role:
name: update_motd
vars:
motd_messages:
- key: 05-prometheus
message: >-
Prometheus est déployé sur cette machine (voir /etc/prometheus)
...

View file

@ -1,4 +0,0 @@
#!/bin/sh
# {{ ansible_managed }}
echo "> prometheus a été déployé sur cette machine."
echo " Voir /etc/prometheus/"