ansible-playbooks/aws-sap-ascs-ers/roles/ansible-role-download-and-install/tasks/check_reboot_is_needed.yml [1:18]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---

# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0

- name: Check if reboot is required
  shell: needs-restarting -q
  register: reboot_output

- name: Reboot host
  reboot:
    msg: "Reboot initiated by Ansible"
    connect_timeout: 5
    reboot_timeout: 600
    pre_reboot_delay: 0
    post_reboot_delay: 30
    test_command: whoami
  when: reboot_output.rc != 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ansible-playbooks/aws-sap-pas/roles/ansible-role-download-and-install/tasks/check_reboot_is_needed.yml [1:18]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---

# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0

- name: Check if reboot is required
  shell: needs-restarting -q
  register: reboot_output

- name: Reboot host
  reboot:
    msg: "Reboot initiated by Ansible"
    connect_timeout: 5
    reboot_timeout: 600
    pre_reboot_delay: 0
    post_reboot_delay: 30
    test_command: whoami
  when: reboot_output.rc != 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



