Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for os_updates_reboot_timeout #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading