update_motd: apply conventions #71
2 changed files with 10 additions and 4 deletions
|
@ -1,7 +1,13 @@
|
||||||
---
|
---
|
||||||
- hosts: perceval.adm.auro.re
|
- hosts: perceval.adm.auro.re
|
||||||
|
vars:
|
||||||
|
update_motd:
|
||||||
|
borgbackup_server: >-
|
||||||
|
Les sauvegardes (borg) sont stockées dans
|
||||||
|
{{ borg_server_backups_dir }}.
|
||||||
roles:
|
roles:
|
||||||
- borgbackup_server
|
- borgbackup_server
|
||||||
|
- update_motd
|
||||||
|
|
||||||
- hosts: all,!unifi,!unifi-*,!wiki.adm.auro.re
|
- hosts: all,!unifi,!unifi-*,!wiki.adm.auro.re
|
||||||
roles:
|
roles:
|
||||||
|
|
|
@ -43,12 +43,12 @@
|
||||||
|
|
||||||
- name: Install additional motd messages
|
- name: Install additional motd messages
|
||||||
copy:
|
copy:
|
||||||
content: "✨ {{ item.message }}\n"
|
content: "✨ {{ item.value }}\n"
|
||||||
dest: "/etc/motd-messages/{{ item.key }}"
|
dest: "/etc/motd-messages/{{ item.key }}"
|
||||||
mode: u=rwx,g=rx,o=rx
|
mode: u=rw,g=r,o=r
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
loop: "{{ motd_messages }}"
|
loop: "{{ update_motd | dict2items }}"
|
||||||
notify: Remove cached motd
|
notify: Remove cached motd
|
||||||
when: motd_messages is defined
|
when: update_motd is defined
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue