mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
u[a-s]*: normalize docs (#9338)
* u[a-s]*: normalize docs * Update plugins/modules/udm_dns_record.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/udm_dns_record.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/udm_dns_record.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/udm_dns_zone.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/ufw.py Co-authored-by: Felix Fontein <felix@fontein.de> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
b429e8a2cf
commit
2005125af4
9 changed files with 846 additions and 888 deletions
|
@ -10,8 +10,7 @@ from __future__ import absolute_import, division, print_function
|
|||
__metaclass__ = type
|
||||
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: usb_facts
|
||||
short_description: Allows listing information about USB devices
|
||||
version_added: 8.5.0
|
||||
|
@ -25,9 +24,9 @@ extends_documentation_fragment:
|
|||
- community.general.attributes.facts_module
|
||||
requirements:
|
||||
- lsusb binary on PATH (usually installed through the package usbutils and preinstalled on many systems)
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = r"""
|
||||
- name: Get information about USB devices
|
||||
community.general.usb_facts:
|
||||
|
||||
|
@ -35,9 +34,9 @@ EXAMPLES = '''
|
|||
ansible.builtin.debug:
|
||||
msg: "On bus {{ item.bus }} device {{ item.device }} with id {{ item.id }} is {{ item.name }}"
|
||||
loop: "{{ ansible_facts.usb_devices }}"
|
||||
'''
|
||||
"""
|
||||
|
||||
RETURN = r'''
|
||||
RETURN = r"""
|
||||
ansible_facts:
|
||||
description: Dictionary containing details of connected USB devices.
|
||||
returned: always
|
||||
|
@ -69,7 +68,7 @@ ansible_facts:
|
|||
returned: always
|
||||
type: str
|
||||
sample: Linux Foundation 2.0 root hub
|
||||
'''
|
||||
"""
|
||||
|
||||
import re
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue