we want to do backup using ansible and we want it to run periodically. I think its possible using os crontab to running playbook, but we want to have more neatly solution Is there any feature in ansible to do this? Thanks.
Asked
Active
Viewed 646 times
1 Answers
2
The tags on your question suggest a solution: Tower (or AWX) have scheduled jobs. Just Ansible Engine doesn't have a scheduler, so either that or your choice of third-party scheduler.
Running a backup does not really change the configuration state of a system. An alternate pattern is to write and maintain a backup script in your playbook. Deploy that with Ansible to the node that runs backups.

John Mahowald
- 32,050
- 2
- 19
- 34