mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Convert to reduced list of known types (#50010)
This commit is contained in:
parent
fcd1486b51
commit
05c6ff79f9
908 changed files with 4822 additions and 4821 deletions
|
@ -164,7 +164,7 @@ commands:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
import re
|
||||
|
|
|
@ -273,7 +273,7 @@ updates:
|
|||
backup_path:
|
||||
description: The full path to the backup file
|
||||
returned: when backup is yes
|
||||
type: string
|
||||
type: str
|
||||
sample: /playbooks/ansible/backup/nxos_config.2016-07-16@22:28:34
|
||||
"""
|
||||
from ansible.module_utils._text import to_text
|
||||
|
|
|
@ -90,11 +90,11 @@ ansible_net_version:
|
|||
ansible_net_hostname:
|
||||
description: The configured hostname of the device
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
ansible_net_image:
|
||||
description: The image file the device is running
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
|
||||
# hardware
|
||||
ansible_net_filesystems:
|
||||
|
|
|
@ -140,17 +140,17 @@ transfer_status:
|
|||
description: Whether a file was transferred. "No Transfer" or "Sent".
|
||||
If file_pull is successful, it is set to "Received".
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: 'Sent'
|
||||
local_file:
|
||||
description: The path of the local file.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: '/path/to/local/file'
|
||||
remote_file:
|
||||
description: The path of the remote file.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: '/path/to/remote/file'
|
||||
'''
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ RETURN = '''
|
|||
final_system_mode:
|
||||
description: describe the last system mode
|
||||
returned: verbose mode
|
||||
type: string
|
||||
type: str
|
||||
sample: normal
|
||||
updates:
|
||||
description: commands sent to the device
|
||||
|
@ -154,7 +154,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ RETURN = '''
|
|||
install_state:
|
||||
description: Boot and install information.
|
||||
returned: always
|
||||
type: dictionary
|
||||
type: dict
|
||||
sample: {
|
||||
"install_state": [
|
||||
"Compatibility check is done:",
|
||||
|
|
|
@ -100,7 +100,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ packets_tx:
|
|||
packet_loss:
|
||||
description: Percentage of packets lost
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
sample: "0.00%"
|
||||
'''
|
||||
from ansible.module_utils.network.nxos.nxos import run_commands
|
||||
|
|
|
@ -54,7 +54,7 @@ RETURN = '''
|
|||
rebooted:
|
||||
description: Whether the device was instructed to reboot.
|
||||
returned: success
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -65,12 +65,12 @@ RETURN = '''
|
|||
filename:
|
||||
description: The filename of the checkpoint/rollback file.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: 'backup.cfg'
|
||||
status:
|
||||
description: Which operation took place and whether it was successful.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: 'rollback executed'
|
||||
'''
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ updates:
|
|||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
from ansible.module_utils.network.nxos.nxos import load_config, run_commands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue