playbook_del-updates/do_updates.sh

15 lines
419 B
Bash
Raw Normal View History

2021-07-23 18:45:44 -04:00
#!/bin/bash
###########################################################################
#
# This is a helper script for the updates.yml ansible playbook.
#
###########################################################################
curDate=$(date +%Y%m%d)
logDir='$HOME/logs'
2021-07-23 18:45:44 -04:00
mkdir -p $logDir
ansible-playbook -i del_inventory.yml --limit local,remote,k8s updates.yml 2>&1 | tee -a ${logDir}/updates_${curDate}.log