Answer the question
In order to leave comments, you need to log in
Ansible - can it schedule package updates from git to the server and restart the target application?
Good evening!
Can Ansible work on a schedule - at a certain time, install package updates from git on the server, and restart the application that has been updated?
What is the best use for this? I know that Jenkins can do this on schedule (in terms of git), but I would also like to restart the application on separate servers, and somehow report that the application has risen after a reboot and update.
Answer the question
In order to leave comments, you need to log in
Updates should be explicit and scheduled, not timed automatic.
But if you want, then cron + ansible can solve your problem.
And it is better not by the timer, but by the calculation event. It is possible through CI, it is possible through your tiny script on an event from the repository.
just jenkins can do all this and there is no need to raise idiocy on ansible
In general, the correct option is https://www.ansible.com/tower , but Jenkins can be used to save money.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question