M
M
Mika Slepinin2016-10-27 21:59:07
linux
Mika Slepinin, 2016-10-27 21:59:07

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

3 answer(s)
O
OnYourLips, 2016-10-27
@OnYourLips

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.

P
Puma Thailand, 2016-10-28
@opium

just jenkins can do all this and there is no need to raise idiocy on ansible

I
Igor Nikolaev, 2016-10-28
@nightvich

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 question

Ask a Question

731 491 924 answers to any question