From 06ddcf6fa7c3dfc9fb977cae6f8433f1e154e58e Mon Sep 17 00:00:00 2001 From: Will Thames Date: Wed, 13 Dec 2017 16:48:45 +1000 Subject: [PATCH] Remove deprecated restart: parameter from win_feature examples (#33848) `restart` is a deprecated parameter. Show how to use `reboot_required` in examples instead (cherry picked from commit 1f8f394de3fbf9173bb520d482a081b111ca4b91) --- lib/ansible/modules/windows/win_feature.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'''