15 lines
420 B
Bash
Executable File
15 lines
420 B
Bash
Executable File
#!/bin/bash
|
|
###########################################################################
|
|
#
|
|
# This is a helper script for the updates.yml ansible playbook.
|
|
#
|
|
###########################################################################
|
|
|
|
curDate=$(date +%Y%m%d)
|
|
logDir="$HOME/logs"
|
|
|
|
mkdir -p $logDir
|
|
|
|
ansible-playbook -i inventory/prod.yml --limit local,remote,k8s updates.yml 2>&1 | tee -a ${logDir}/updates_${curDate}.log
|
|
|