split updates for servers and workstations

This commit is contained in:
Radar231 2023-05-06 01:20:38 +00:00
parent 5eb22527d1
commit bf16845d2a
2 changed files with 36 additions and 0 deletions

18
do_svrs_updates.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
###########################################################################
#
# This is a helper script for the updates.yml ansible playbook.
#
# This script will apply updates to hosts in the 'servers' inventory group
#
###########################################################################
curDate=$(date +%Y%m%d)
devDir="$HOME/dev/ansidev"
logDir="$HOME/logs"
mkdir -p $logDir
cd $devDir
ansible-playbook -i inventory/delfax.yml --limit servers updates.yml 2>&1 | tee -a ${logDir}/updates_svrs_${curDate}.log

18
do_ws_updates.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
###########################################################################
#
# This is a helper script for the updates.yml ansible playbook.
#
# This script will apply updates to hosts in the 'workstations' inventory group
#
###########################################################################
curDate=$(date +%Y%m%d)
devDir="$HOME/dev/ansidev"
logDir="$HOME/logs"
mkdir -p $logDir
cd $devDir
ansible-playbook -i inventory/delfax.yml --limit workstations updates.yml 2>&1 | tee -a ${logDir}/updates_ws_${curDate}.log