update_motd: apply conventions #71

Merged
erdnaxe merged 11 commits from update_motd into master 2021-11-27 22:34:05 +01:00
2 changed files with 8 additions and 9 deletions
Showing only changes of commit 07a0429ae0 - Show all commits

View file

@ -148,15 +148,6 @@
group: www-data group: www-data
mode: 0644 mode: 0644
- name: Configure MOTD
include_role:
name: update_motd
vars:
motd_messages:
- key: 10-nginx
message: >-
NGinx est installé sur ce serveur. Voir /etc/nginx.
- name: Clean old files - name: Clean old files
file: file:
path: "{{ item }}" path: "{{ item }}"

View file

@ -15,14 +15,22 @@
certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}' certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}'
nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}' nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}'
reverseproxy: '{{ glob_reverseproxy | default({}) | combine(loc_reverseproxy | default({})) }}' reverseproxy: '{{ glob_reverseproxy | default({}) | combine(loc_reverseproxy | default({})) }}'
update_motd:
nginx: >-
Le reverse-proxy NGINX est déployé (/etc/nginx).
roles: roles:
- certbot - certbot
- nginx - nginx
- update_motd
- hosts: nginx,!reverseproxy - hosts: nginx,!reverseproxy
vars: vars:
certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}' certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}'
nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}' nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}'
update_motd:
nginx: >-
NGINX avec certbot est déployé (/etc/nginx).
roles: roles:
- certbot - certbot
- nginx - nginx
- update_motd