informatiquecdc.win_pending_reboot
win_pending_reboot - 保留中のWindows再起動をチェックします
概要
- このAnsibleモジュールは、Windowsサーバーが再起動が保留中であることを示す可能性のある3つの特定のレジストリ位置を調べます。
パラメータ
パラメータ | 選択肢/デフォルト | コメント |
---|---|---|
skip_component_based_servicing boolean |
選択肢:
|
コンポーネントベースのサービスによってトリガーされた再起動をスキップするかどうかを指定します。 |
skip_windows_update boolean |
選択肢:
|
Windows Updateによってトリガーされた再起動をスキップするかどうかを指定します。 |
skip_pending_file_rename boolean |
選択肢:
|
保留中のファイル名変更によってトリガーされた再起動をスキップするかどうかを指定します。 |
skip_pending_computer_rename boolean |
選択肢:
|
保留中のコンピュータ名変更によってトリガーされた再起動をスキップするかどうかを指定します。 |
skip_ccm_client_sdk boolean |
選択肢:
|
ConfigMgrクライアントによってトリガーされた再起動をスキップするかどうかを指定します。 |
例
---
- hosts: localhost
roles:
- win_pending_reboot
tasks:
- name: 保留中の再起動ステータスを取得
win_pending_reboot:
skip_ccm_client_sdk: no
register: test_pending_reboot_result
- name: 必要なら再起動
win_reboot:
when: test_pending_reboot_result.reboot_required
戻り値
一般的な戻り値はこちらに記載されています。このモジュールに特有のフィールドは以下の通りです:
キー | 戻り値 | 説明 |
---|---|---|
component_based_servicing boolean |
success | コンポーネントベースのサービスが再起動を要求した場合はTrue です。サンプル: False |
windows_update boolean |
success | Windows Updateが再起動を要求した場合はTrue です。サンプル: False |
pending_file_rename boolean |
success | 保留中のファイル名変更が再起動を引き起こした場合はTrue です。サンプル: False |
pending_computer_rename boolean |
success | 保留中のコンピュータ名変更が再起動を引き起こした場合はTrue です。サンプル: False |
ccm_client_sdk boolean |
success と skip_ccm_client_sdk = no |
ConfigMgrクライアントが再起動を引き起こした場合はTrue です。サンプル: False |
reboot_required boolean |
success | 対象のサーバーが再起動を必要とする場合はTrue です。サンプル: True |
注意事項
- このモジュールは、以下のソースのPowerShellのオープンソース関数の一部または全部を使用しています。
- xPendingReboot https://github.com/PowerShell/xPendingReboot.git
- ansible-windows-pending-reboot https://github.com/valerius257/ansible-windows-pending-reboot
著者
- Stéphane Bilqué (@sbilque)
ライセンス
このプロジェクトはMITライセンスの下でライセンスされています。
完全なテキストはLICENSEをご覧ください。
インストール
ansible-galaxy install informatiquecdc.win_pending_reboot
ライセンス
mit
ダウンロード
7.3k
所有者
Informatique CDC, subsidiary of Group Caisse des Dépôts is a key player in IT services and digital trust.