mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
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
This commit is contained in:
@@ -12,7 +12,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||||||
'supported_by': 'community'}
|
'supported_by': 'community'}
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r'''
|
||||||
---
|
|
||||||
module: win_hostname
|
module: win_hostname
|
||||||
version_added: "2.6"
|
version_added: "2.6"
|
||||||
short_description: Manages local Windows computer name.
|
short_description: Manages local Windows computer name.
|
||||||
@@ -29,9 +28,14 @@ author:
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
- name: Change the hostname to new_hostname
|
- name: Change the hostname to sample-hostname
|
||||||
win_hostname:
|
win_hostname:
|
||||||
name: new_hostname
|
name: sample-hostname
|
||||||
|
register: res
|
||||||
|
|
||||||
|
- name: Reboot
|
||||||
|
win_reboot:
|
||||||
|
when: res.reboot_required
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r'''
|
||||||
|
|||||||
Reference in New Issue
Block a user