mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Validate EXAMPLES as YAML
This commit is contained in:
parent
499d3a1b53
commit
7c00346714
112 changed files with 441 additions and 381 deletions
|
@ -102,7 +102,7 @@ tasks:
|
|||
# oVirt user's password, and include that yaml file with variable:
|
||||
- include_vars: ovirt_password.yml
|
||||
|
||||
- name: Obtain SSO token with using username/password credentials:
|
||||
- name: Obtain SSO token with using username/password credentials
|
||||
ovirt_auth:
|
||||
url: https://ovirt.example.com/ovirt-engine/api
|
||||
username: admin@internal
|
||||
|
@ -116,11 +116,11 @@ tasks:
|
|||
state: absent
|
||||
name: myvm
|
||||
|
||||
always:
|
||||
- name: Always revoke the SSO token
|
||||
ovirt_auth:
|
||||
state: absent
|
||||
ovirt_auth: "{{ ovirt_auth }}"
|
||||
always:
|
||||
- name: Always revoke the SSO token
|
||||
ovirt_auth:
|
||||
state: absent
|
||||
ovirt_auth: "{{ ovirt_auth }}"
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
|
@ -73,14 +73,14 @@ EXAMPLES = '''
|
|||
- ovirt_snapshots:
|
||||
vm_name: rhel7
|
||||
description: MySnapshot
|
||||
register: snapshot
|
||||
register: snapshot
|
||||
|
||||
# Create snapshot and save memory:
|
||||
- ovirt_snapshots:
|
||||
vm_name: rhel7
|
||||
description: SnapWithMem
|
||||
use_memory: true
|
||||
register: snapshot
|
||||
register: snapshot
|
||||
|
||||
# Restore snapshot:
|
||||
- ovirt_snapshots:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue