Ansible Tower: Scheduling Playbooks / Jobs

Published: 26 May 2021
on channel: CyberScribe.org
8,412
63

In this video I talk about how to schedule playbooks / jobs in Ansible Tower for recurring tasks such as backups and updates.

With Ansible itself this could be done via Cron jobs:
(for example, the entry below could be found in the crontab file)
5 11 * * * /usr/bin/ansible-playbook -i path-to-hosts-file playbook.yml

See https://crontab.guru for scheduling nomenclature.

Use Schedules in Ansible Tower.

1) Create a new Job in Templates.
2) Fill out the information in the Details tab.
3) Navigate to Schedules tab and add when you want the job to run.
4) Save the Job and Schdule.
5) You can see all of your scheduled jobs in the Schedules section.


Watch video Ansible Tower: Scheduling Playbooks / Jobs online without registration, duration hours minute second in high quality. This video was added by user CyberScribe.org 26 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,41 once and liked it 6 people.