Some of your servers have issues contacting a URL from time to time? We can add a cronjob with a BASH script to keep track of it.
DISCLAIMER: there are other (probably better) ways to do this
Lets do two things:
- Create the script
- Deploy it with Ansible
“Hey, ho, lets go!”
This is the script, which we will saved as an Ansible template (check_url.sh.j2)
Create the playbook (check_url.yml)