diff --git a/hatarashi-hako.sh b/hatarashi-hako.sh index b8169b9..5b095bc 100755 --- a/hatarashi-hako.sh +++ b/hatarashi-hako.sh @@ -141,3 +141,10 @@ for container_path in ${CONTAINER_PATHS[@]}; do cd $LOCAL_DIR done echo "All done!" + +## Once the script finishes, the .prom file will live on for 5 minutes before being deleted. +#+ This allows Prometheus to pick up the alert, send out a notification, and move on with its life. +( + sleep 300 + rm $PROM_FILE +) 2>1 >/dev/null & diff --git a/hatarashi-hako.yaml b/hatarashi-hako.yaml index 3d993c6..934333d 100644 --- a/hatarashi-hako.yaml +++ b/hatarashi-hako.yaml @@ -6,7 +6,7 @@ ansible_sudo_pass: "{{ ANSIBLE_SUDO_PASS }}" tasks: - - name: Install Skopeo + - name: Install Dependencies ansible.builtin.package: name: skopeo state: latest