Jérémy Dubois
b586b1fafe
Some checks failed
continuous-integration/drone/push Build is failing
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.
15 lines
370 B
YAML
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
|