playbook_del-updates/do_updates.sh

15 lines
420 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)
2021-10-14 10:46:55 -04:00
logDir="$HOME/logs"
2021-07-23 18:45:44 -04:00
mkdir -p $logDir
ansible-playbook -i inventory/prod.yml --limit local,remote,k8s updates.yml 2>&1 | tee -a ${logDir}/updates_${curDate}.log
2021-07-23 18:45:44 -04:00