diff --git a/lib/ansible/modules/windows/win_feature.py b/lib/ansible/modules/windows/win_feature.py index 5ae1cf5ed7..66164acd72 100644 --- a/lib/ansible/modules/windows/win_feature.py +++ b/lib/ansible/modules/windows/win_feature.py @@ -99,9 +99,13 @@ EXAMPLES = r''' win_feature: name: Web-Server state: present - restart: True include_sub_features: True include_management_tools: True + register: win_feature + +- name: reboot if installing Web-Server feature requires it + win_reboot: + when: win_feature.reboot_required ''' RETURN = r'''