samdoran.net - Sam Doran

Description: Musings of a coffee loving, tree climbing, wrench turning, Linux/macOS/Python nerd

photography (49511) technology (15838) linux (6750) network (6469) ios (6277) coffee (5292) apple (4892) mac (3203) mac os x (231) octopress (5)

Example domain paragraphs

Tuesday, September 4, 2018 at 18:09 EDT • ∞

Rebooting Linux systems with Ansible has always been possible, but was tricky and error-prone. In Ansible 2.7, I am happy to say that rebooting Linux hosts with Ansible is finally easy and can be done with a single task using the newly minted reboot plugin .

The win_reboot module was written by Matt Davis and included with Ansible 2.1. Rebooting Windows hosts is a much more common occurrence than rebooting Linux hosts. Necessity is the mother of invention, so it made sense that win_reboot appeared before the equivalent for Linux. And while less than elegant, it is possible to reboot Linux hosts using shell and wait_for or wait_for_connection 1 .