Merge branch 'hello_services' into 'master'

Hello services :)

See merge request nounous/ansible!11
certbot_on_virtu
erdnaxe 2019-06-13 15:34:23 +00:00
commit c166f33507
5 changed files with 35 additions and 0 deletions

View File

@ -13,10 +13,16 @@
# Debian non-free mirror
debian_mirror: http://mirror.adm.crans.org/debian
# Indicate service in motd
motd_role:
name: prometheus
path: /etc/prometheus/
roles:
- debian-non-free
- prometheus
- prometheus-alertmanager
- motd-role
# Monitor all hosts
- hosts: all
@ -32,5 +38,11 @@
ldap_user_tree: "cn=Utilisateurs,{{ ldap_base }}"
ldap_grafana_bind_dn: "cn=grafana,ou=service-users,{{ ldap_base }}"
ldap_grafana_passwd: "{{ vault_ldap_grafana_passwd }}"
# Indicate service in motd
motd_role:
name: grafana
path: /etc/grafana/
roles:
- grafana
- motd-role

View File

@ -4,8 +4,14 @@
vars:
# Debian mirror on adm
debian_mirror: http://mirror.adm.crans.org/debian
# Indicate service in motd
motd_role:
name: wireguard
path: /etc/wireguard/
roles:
- wireguard
- motd-role
# Deploy DNS server
- hosts: odlyd.adm.crans.org

View File

@ -0,0 +1,6 @@
---
- name: "Indicate {{ motd_role.name }} in motd"
template:
src: update-motd.d/05-service.j2
dest: "/etc/update-motd.d/05-{{ motd_role.name }}"
mode: 0755

View File

@ -0,0 +1,6 @@
#!/bin/sh
# {{ ansible_managed }}
echo "✨ {{ motd_role.name|capitalize }} a été déployé sur cette machine."
{% if motd_role.path is defined %}
echo " Voir {{ motd_role.path }}"
{% endif %}

View File

@ -7,5 +7,10 @@
- hosts: voyager.adm.crans.org
vars:
service_version: 1.1.10
# Indicate service in motd
motd_role:
name: framadate
roles:
- framadate
- motd-role