-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added common reboot_timeout option (#135)
Added the option reboot_timeout to modules that expose a reboot option. This provides a way for the caller to define a custom reboot timeout based on their environment specific details.
- Loading branch information
Showing
11 changed files
with
70 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
minor_changes: | ||
- microsoft.ad.domain_child - Added ``reboot_timeout`` option to control how long a reboot can go for. | ||
- microsoft.ad.domain_controller - Added ``reboot_timeout`` option to control how long a reboot can go for. | ||
- microsoft.ad.domain - Added ``reboot_timeout`` option to control how long a reboot can go for. | ||
- microsoft.ad.membership - Added ``reboot_timeout`` option to control how long a reboot can go for. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Copyright (c) 2024 Ansible Project | ||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
|
||
class ModuleDocFragment: | ||
|
||
# Common options for ansible_collections.microsoft.ad.plugins.plugin_utils._module_with_reboot | ||
DOCUMENTATION = r""" | ||
options: | ||
reboot: | ||
description: | ||
- If C(true), this will reboot the host if a reboot was required by the | ||
module. | ||
- If C(false), this will not reboot the host if a reboot was required and | ||
instead sets the I(reboot_required) return value to C(true). | ||
- This cannot be used with async mode. | ||
type: bool | ||
default: false | ||
reboot_timeout: | ||
description: | ||
- Maximum seconds to wait for machine to re-appear after a reboot and respond to a test command. | ||
- This timeout is evaluated separately for both the reboot verification and test command success so | ||
the total timeout can be twice this value. | ||
default: 600 | ||
type: int | ||
version_added: 1.7.0 | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters