Feature Spotlight: Reboot Sam Doran, Senior Software Engineer, Red Hat Ansible Core
Agenda History How the reboot plugin works Examples Future features
HISTORY
History win_reboot since Ansible 2.1 ● shell module for Linux hosts prior to Ansible 2.7 ● - win_reboot: - shell: sleep 2 && shutdown -r now async: 60 poll: 0 reboot since Ansible 2.7 ● - win_reboot: - reboot:
HOW IT WORKS
How it works Action plugin vs module ● What it does: ● gathers facts on target system ○ gets last boot time ○ looks up the appropriate command and gets the full path ○ looks up appropriate command flags ○ runs the reboot command ○ continually checks the last boot time ○ runs the post-reboot validation command ○
EXAMPLES
FUTURE
Future add parameter for the reboot binary name ● support more operating systems ● other community-based features ●
Thank you Sam Doran, Senior Software Engineer, Red Hat https://github.com/samdoran/demo-playbooks
Recommend
More recommend