From 529cd19ca5a81a2d9aaac28dbad2f81422b01ec0 Mon Sep 17 00:00:00 2001
From: curry9999 <mi_ra_cl_e@hotmail.com>
Date: Wed, 8 Aug 2018 05:30:46 +0900
Subject: [PATCH] I changed the document of win_hostname.py. (#43761)

* Host name is contrary to naming convention

<!--- Your description here -->

+label: docsite_pr

* removed yaml separators
---
 lib/ansible/modules/windows/win_hostname.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/lib/ansible/modules/windows/win_hostname.py b/lib/ansible/modules/windows/win_hostname.py
index e9ba7c7daf..fc75123457 100644
--- a/lib/ansible/modules/windows/win_hostname.py
+++ b/lib/ansible/modules/windows/win_hostname.py
@@ -12,7 +12,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
                     'supported_by': 'community'}
 
 DOCUMENTATION = r'''
----
 module: win_hostname
 version_added: "2.6"
 short_description: Manages local Windows computer name.
@@ -29,9 +28,14 @@ author:
 '''
 
 EXAMPLES = r'''
-- name: Change the hostname to new_hostname
+- name: Change the hostname to sample-hostname
   win_hostname:
-    name: new_hostname
+    name: sample-hostname
+  register: res
+
+- name: Reboot
+  win_reboot:
+  when: res.reboot_required
 '''
 
 RETURN = r'''