Feature Spotlight: Reboot Sam Doran, Senior Software Engineer, Red - - PowerPoint PPT Presentation

feature spotlight reboot
SMART_READER_LITE
LIVE PREVIEW

Feature Spotlight: Reboot Sam Doran, Senior Software Engineer, Red - - PowerPoint PPT Presentation

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


slide-1
SLIDE 1

Feature Spotlight: Reboot

Sam Doran, Senior Software Engineer, Red Hat Ansible Core

slide-2
SLIDE 2

History How the reboot plugin works Examples

Agenda

Future features

slide-3
SLIDE 3

HISTORY

slide-4
SLIDE 4

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:
slide-5
SLIDE 5

HOW IT WORKS

slide-6
SLIDE 6

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

slide-7
SLIDE 7

EXAMPLES

slide-8
SLIDE 8

FUTURE

slide-9
SLIDE 9

Future

  • add parameter for the reboot binary name
  • support more operating systems
  • ther community-based features
slide-10
SLIDE 10

Thank you

Sam Doran, Senior Software Engineer, Red Hat https://github.com/samdoran/demo-playbooks