|
|
@ -18,7 +18,7 @@ INVENTORY=${ANSBASE}/${REPO} |
|
|
|
function apply_ansible |
|
|
|
{ |
|
|
|
cd ${ANSBASE}/${REPO} |
|
|
|
echo -e "$(date +'%F_%R:%S'): Change detected! Applying playbooks for ${NODE} from ${REPO} ..." |
|
|
|
echo -e "$(date +'%F_%R:%S'): ++ Change detected! Applying playbooks for ${NODE} from ${REPO} ..." |
|
|
|
ansible-playbook -D -i ${ANSBASE}/${REPO}/inventory -l ${NODE} ${ANSBASE}/${REPO}/standalone-playbooks/epel.yml |
|
|
|
ansible-playbook -D -i ${ANSBASE}/${REPO}/inventory -l ${NODE} ${ANSBASE}/${REPO}/site.yml |
|
|
|
} |
|
|
@ -39,7 +39,7 @@ then |
|
|
|
elif [ -d ${ANSBASE}/${REPO} ] |
|
|
|
then |
|
|
|
## -- check first |
|
|
|
echo -e "$(date +'%F_%R:%S'): checking ${REPO} ... \c" |
|
|
|
echo -e "$(date +'%F_%R:%S'): Checking ${REPO} on Gitea ... \c" |
|
|
|
cd ${ANSBASE}/${REPO} |
|
|
|
STATUS="$(git status | tail -n1)" |
|
|
|
|
|
|
|