Add PVC status MOTD script

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:24 -04:00
parent 68a475ccf9
commit 075ce8ea22
2 changed files with 9 additions and 1 deletions

View File

@ -421,7 +421,7 @@
dest: "/etc/bash.bashrc"
# motd
- name: ensure update-motd and w scripts are present
- name: ensure update-motd and profile.d scripts are present
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
@ -429,6 +429,7 @@
with_items:
- { src: "usr/local/sbin/update-motd.sh.j2", dest: "/usr/local/sbin/update-motd.sh" }
- { src: "etc/profile.d/w.sh.j2", dest: "/etc/profile.d/w.sh" }
- { src: "etc/profile.d/pvc.sh.j2", dest: "/etc/profile.d/zzz_pvc.sh" }
tags: motd
- name: install update-motd crontab

View File

@ -0,0 +1,7 @@
#!/bin/sh
# Message of the day script to print PVC cluster status
# {{ ansible_managed }}
echo
pvc -q status -f short