Browse Source

Just improved the feedback in the file

minor changes
master
dave 5 months ago
parent
commit
5e1351d971
  1. 4
      usr.local.sbin/update-and-apply-ansible.sh

4
usr.local.sbin/update-and-apply-ansible.sh

@ -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)"

Loading…
Cancel
Save