summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/reboot/tasks/test_reboot_command.yml
blob: 779d380bad39e81fca0e4a3b7b4951e1fd3748c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- import_tasks: get_boot_time.yml
- name: Reboot with custom reboot_command using unqualified path
  reboot:
    reboot_command: reboot
  register: reboot_result
- import_tasks: check_reboot.yml


- import_tasks: get_boot_time.yml
- name: Reboot with custom reboot_command using absolute path
  reboot:
    reboot_command: /sbin/reboot
  register: reboot_result
- import_tasks: check_reboot.yml


- import_tasks: get_boot_time.yml
- name: Reboot with custom reboot_command with parameters
  reboot:
    reboot_command: shutdown -r now
  register: reboot_result
- import_tasks: check_reboot.yml