Skip to content

Commit

Permalink
Add support for os_updates_reboot_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmcnulty committed Apr 12, 2024
1 parent 832cb43 commit 95faafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/os_updates/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
aws_profile: ""

os_updates_reboot: false
# os_updates_reboot_timeout: 600
os_updates_salt_hold: false
os_updates_ec2_instances: false
1 change: 1 addition & 0 deletions roles/os_updates/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- name: Rebooting
reboot:
msg: "rebooting {{ ansible_host }}"
reboot_timeout: "{{ os_updates_reboot_timeout | default(omit) }}"
when: os_updates_reboot and needs_reboot.stat.exists and not os_updates_ec2_instances

# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-reboot.html
Expand Down

0 comments on commit 95faafe

Please sign in to comment.