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 10 additions and 4 deletions
Showing only changes of commit b82afd13d9 - Show all commits

View file

@ -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:

View file

@ -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
... ...