mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-19 03:10:22 -07:00
change description in proxmox_backup_schedule.py
This commit is contained in:
parent
8afd207c82
commit
2f7469be42
1 changed files with 20 additions and 6 deletions
|
@ -86,6 +86,24 @@ EXAMPLES = """
|
||||||
api_host: '192.168.20.20'
|
api_host: '192.168.20.20'
|
||||||
vm_id: 'VM ID'
|
vm_id: 'VM ID'
|
||||||
state: 'absent'
|
state: 'absent'
|
||||||
|
|
||||||
|
- name: Removing backup setting based on VM name from specific backup job
|
||||||
|
proxmox_backup_schedule:
|
||||||
|
api_user: 'myUser@pam'
|
||||||
|
api_password: '*******'
|
||||||
|
api_host: '192.168.20.20'
|
||||||
|
vm_name: 'VM Name'
|
||||||
|
backup_id: 'backup-b2adffdc-316e'
|
||||||
|
state: 'absent'
|
||||||
|
|
||||||
|
- name: Removing backup setting based on VM ID from specific backup job
|
||||||
|
proxmox_backup_schedule:
|
||||||
|
api_user: 'myUser@pam'
|
||||||
|
api_password: '*******'
|
||||||
|
api_host: '192.168.20.20'
|
||||||
|
vm_id: 'VM ID'
|
||||||
|
backup_id: 'backup-b2adffdc-316e'
|
||||||
|
state: 'absent'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = """
|
RETURN = """
|
||||||
|
@ -93,12 +111,8 @@ RETURN = """
|
||||||
backup_schedule:
|
backup_schedule:
|
||||||
description:
|
description:
|
||||||
- If V(present), the backup_schedule will return True after adding the VM ID to the backup job.
|
- If V(present), the backup_schedule will return True after adding the VM ID to the backup job.
|
||||||
- If V(absent), the backup_schedule will return a list of backup job IDs where the VM ID has existed after removing it.
|
- If V(absent), the backup_schedule will return True after removing it from the backup job.
|
||||||
returned: always, but can be empty
|
returned: always, but can be empty
|
||||||
type: raw
|
|
||||||
sample:
|
|
||||||
- true
|
|
||||||
- ['backup-job-id1', 'backup-job-id2']
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue