There are certain types of jobs that we need to execute periodically; taking a backup is one such job. Ansible allows us to schedule jobs at a set frequency or time.
Scheduling jobs
How to do it...
- We can use an existing project and template, or create a new one following the previous recipe.
- On the Templates page, for the template that we want to schedule, we should click on the calendar icon.
- A page with all the existing schedules will open. Since we are doing this for the first time, it would be empty for us. We need to click the +ADD button here.
- Here, we can specify the NAME, START DATE, START TIME, and LOCAL TIME ZONE.
- For daily execution, we can set the REPEAT FREQUENCY to Day and set the EVERY field to 1. If we want...