Merge pull request 'Use update_motd everywhere' (#44) from use_update_motd_everywhere into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: Aurore/ansible#44
This commit is contained in:
commit
424aa80d8f
5 changed files with 33 additions and 25 deletions
|
@ -32,11 +32,6 @@
|
|||
- include_role:
|
||||
name: update_motd
|
||||
|
||||
- name: Remove Debian warranty motd
|
||||
file:
|
||||
path: /etc/motd
|
||||
state: absent
|
||||
|
||||
# Configure APT mirrors on Debian Stretch
|
||||
- name: Configure APT mirrors
|
||||
when:
|
||||
|
|
|
@ -51,8 +51,11 @@
|
|||
dest: /usr/local/bin/docker-compose
|
||||
mode: "0755"
|
||||
|
||||
- name: Indicate role in motd
|
||||
template:
|
||||
src: update-motd.d/05-service.j2
|
||||
dest: /etc/update-motd.d/05-docker
|
||||
mode: 0755
|
||||
- include_role:
|
||||
name: update_motd
|
||||
vars:
|
||||
motd_messages:
|
||||
- key: 10-docker
|
||||
message: >-
|
||||
Docker est installé sur ce serveur.
|
||||
...
|
||||
|
|
|
@ -148,11 +148,13 @@
|
|||
group: www-data
|
||||
mode: 0644
|
||||
|
||||
- name: Indicate role in motd
|
||||
template:
|
||||
src: update-motd.d/05-service.j2
|
||||
dest: /etc/update-motd.d/05-nginx
|
||||
mode: 0755
|
||||
- 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
|
||||
file:
|
||||
|
@ -162,3 +164,4 @@
|
|||
- "/etc/nginx/snippets/options-ssl.conf"
|
||||
- "/var/www/custom_401.html"
|
||||
- "/var/www/robots.txt"
|
||||
...
|
||||
|
|
|
@ -40,8 +40,12 @@
|
|||
group: nogroup
|
||||
state: link
|
||||
|
||||
- name: Indicate in motd service location
|
||||
template:
|
||||
src: update-motd.d/05-service.j2
|
||||
dest: "/etc/update-motd.d/05-re2o-{{ service_name }}"
|
||||
mode: 0755
|
||||
- include_role:
|
||||
name: update_motd
|
||||
vars:
|
||||
motd_messages:
|
||||
- key: "15-re2o-service-{{ service_name }}"
|
||||
message: >-
|
||||
Le service re2o {{ service_name }} est dans
|
||||
{{ service_homedir }}/{{ service_name }}.
|
||||
...
|
||||
|
|
|
@ -40,8 +40,11 @@
|
|||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
- name: Indicate role in motd
|
||||
template:
|
||||
src: update-motd.d/05-service.j2
|
||||
dest: /etc/update-motd.d/05-unifi-controller
|
||||
mode: 0755
|
||||
- include_role:
|
||||
name: update_motd
|
||||
vars:
|
||||
motd_messages:
|
||||
- key: 10-unifi-controller
|
||||
message: >-
|
||||
Le contrôleur Unifi a été installé sur ce serveur.
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue