Skip to content

Commit

Permalink
run ansible once on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
lightlike committed Jul 3, 2024
1 parent 70751b8 commit 17e4959
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
echo "Creating cronjob with schedule: ${SCHEDULE}"
echo "${SCHEDULE} ansible-playbook /netcup-dns/ansible/update-dns.yaml" > /etc/crontabs/root

echo "Running task once"
exec "ansible-playbook /netcup-dns/ansible/update-dns.yaml"

echo "Running command: '$@'"
exec "$@"

0 comments on commit 17e4959

Please sign in to comment.