Add PVC status MOTD script

This commit is contained in:
Joshua Boniface 2020-11-17 12:41:02 -05:00
parent 9f84609808
commit da8c357d38
2 changed files with 9 additions and 1 deletions

View File

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