EvoBSD/roles/post-install/tasks/motd.yml
Jérémy Dubois b586b1fafe
Some checks failed
continuous-integration/drone/push Build is failing
Write and deploy motd-carp-state.sh
A script that checks the carp state and writes in the /etc/motd file if the
server is in backup or master state. Script is copied in /usr/share/scripts/
directory and a cron job is installed but disabled by default.
2020-08-25 17:57:22 +02:00

15 lines
370 B
YAML

---
- name: Deploy dynamic motd script for CARP master or backup
copy:
src: motd-carp-state.sh
dest: /usr/share/scripts/motd-carp-state.sh
owner: root
group: wheel
mode: '0755'
- name: Cron job for dynamic motd script is installed
cron:
name: dynamic motd for CARP
job: "/bin/sh /usr/share/scripts/motd-carp-state.sh"
disabled: true