Use update_motd everywhere #44

Merged
jeltz merged 1 commit from use_update_motd_everywhere into master 2021-03-30 10:12:21 +02:00
5 changed files with 33 additions and 25 deletions
Showing only changes of commit ac05da7173 - Show all commits

View file

@ -32,11 +32,6 @@
- include_role: - include_role:
name: update_motd name: update_motd
- name: Remove Debian warranty motd
file:
path: /etc/motd
state: absent
# Configure APT mirrors on Debian Stretch # Configure APT mirrors on Debian Stretch
- name: Configure APT mirrors - name: Configure APT mirrors
when: when:

View file

@ -51,8 +51,11 @@
dest: /usr/local/bin/docker-compose dest: /usr/local/bin/docker-compose
mode: "0755" mode: "0755"
- name: Indicate role in motd - include_role:
template: name: update_motd
src: update-motd.d/05-service.j2 vars:
dest: /etc/update-motd.d/05-docker motd_messages:
mode: 0755 - key: 10-docker
message: >-
Docker est installé sur ce serveur.
...

View file

@ -148,11 +148,13 @@
group: www-data group: www-data
mode: 0644 mode: 0644
- name: Indicate role in motd - include_role:
template: name: update_motd
src: update-motd.d/05-service.j2 vars:
dest: /etc/update-motd.d/05-nginx motd_messages:
mode: 0755 - key: 10-nginx
message: >-
NGinx est installé sur ce serveur. Voir /etc/nginx.
- name: Clean old files - name: Clean old files
file: file:
@ -162,3 +164,4 @@
- "/etc/nginx/snippets/options-ssl.conf" - "/etc/nginx/snippets/options-ssl.conf"
- "/var/www/custom_401.html" - "/var/www/custom_401.html"
- "/var/www/robots.txt" - "/var/www/robots.txt"
...

View file

@ -40,8 +40,12 @@
group: nogroup group: nogroup
state: link state: link
- name: Indicate in motd service location - include_role:
template: name: update_motd
src: update-motd.d/05-service.j2 vars:
dest: "/etc/update-motd.d/05-re2o-{{ service_name }}" motd_messages:
mode: 0755 - key: "15-re2o-service-{{ service_name }}"
message: >-
Le service re2o {{ service_name }} est dans
{{ service_homedir }}/{{ service_name }}.
...

View file

@ -40,8 +40,11 @@
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
- name: Indicate role in motd - include_role:
template: name: update_motd
src: update-motd.d/05-service.j2 vars:
dest: /etc/update-motd.d/05-unifi-controller motd_messages:
mode: 0755 - key: 10-unifi-controller
message: >-
Le contrôleur Unifi a été installé sur ce serveur.
...