mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Add module support to yamllint sanity test. (#34964)
* Add module support to yamllint sanity test. * Fix duplicate keys in module RETURN docs. * Fix syntax in return_common docs fragment. * Fix duplicate keys in module EXAMPLES docs.
This commit is contained in:
parent
240024ea4a
commit
227ff61f9d
53 changed files with 533 additions and 344 deletions
|
@ -116,7 +116,6 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
tasks:
|
||||
- block:
|
||||
# Create a vault with `ovirt_password` variable which store your
|
||||
# oVirt/RHV user's password, and include that yaml file with variable:
|
||||
|
@ -150,7 +149,6 @@ tasks:
|
|||
# in yaml file.
|
||||
# This is mainly usefull when using Ansible Tower or AWX, as it will work
|
||||
# for Red Hat Virtualization creadentials type.
|
||||
tasks:
|
||||
- name: Obtain SSO token
|
||||
ovirt_auth:
|
||||
state: present
|
||||
|
|
|
@ -59,20 +59,20 @@ EXAMPLES = '''
|
|||
# look at ovirt_auth module to see how to reuse authentication:
|
||||
|
||||
# Add group group1 from authorization provider example.com-authz
|
||||
ovirt_group:
|
||||
- ovirt_group:
|
||||
name: group1
|
||||
domain: example.com-authz
|
||||
|
||||
# Add group group1 from authorization provider example.com-authz
|
||||
# In case of multi-domain Active Directory setup, you should pass
|
||||
# also namespace, so it adds correct group:
|
||||
ovirt_group:
|
||||
- ovirt_group:
|
||||
name: group1
|
||||
namespace: dc=ad2,dc=example,dc=com
|
||||
domain: example.com-authz
|
||||
|
||||
# Remove group group1 with authorization provider example.com-authz
|
||||
ovirt_group:
|
||||
- ovirt_group:
|
||||
state: absent
|
||||
name: group1
|
||||
domain: example.com-authz
|
||||
|
|
|
@ -82,7 +82,7 @@ EXAMPLES = '''
|
|||
# look at ovirt_auth module to see how to reuse authentication:
|
||||
|
||||
# Add cluster quota to cluster cluster1 with memory limit 20GiB and CPU limit to 10:
|
||||
ovirt_quotas:
|
||||
- ovirt_quotas:
|
||||
name: quota1
|
||||
data_center: dcX
|
||||
clusters:
|
||||
|
@ -91,7 +91,7 @@ ovirt_quotas:
|
|||
cpu: 10
|
||||
|
||||
# Add cluster quota to all clusters with memory limit 30GiB and CPU limit to 15:
|
||||
ovirt_quotas:
|
||||
- ovirt_quotas:
|
||||
name: quota2
|
||||
data_center: dcX
|
||||
clusters:
|
||||
|
@ -99,7 +99,7 @@ ovirt_quotas:
|
|||
cpu: 15
|
||||
|
||||
# Add storage quota to storage data1 with size limit to 100GiB
|
||||
ovirt_quotas:
|
||||
- ovirt_quotas:
|
||||
name: quota3
|
||||
data_center: dcX
|
||||
storage_grace: 40
|
||||
|
@ -109,7 +109,7 @@ ovirt_quotas:
|
|||
size: 100
|
||||
|
||||
# Remove quota quota1 (Note the quota must not be assigned to any VM/disk):
|
||||
ovirt_quotas:
|
||||
- ovirt_quotas:
|
||||
state: absent
|
||||
data_center: dcX
|
||||
name: quota1
|
||||
|
|
|
@ -55,18 +55,18 @@ EXAMPLES = '''
|
|||
# look at ovirt_auth module to see how to reuse authentication:
|
||||
|
||||
# Add user user1 from authorization provider example.com-authz
|
||||
ovirt_users:
|
||||
- ovirt_users:
|
||||
name: user1
|
||||
domain: example.com-authz
|
||||
|
||||
# Add user user1 from authorization provider example.com-authz
|
||||
# In case of Active Directory specify UPN:
|
||||
ovirt_users:
|
||||
- ovirt_users:
|
||||
name: user1@ad2.example.com
|
||||
domain: example.com-authz
|
||||
|
||||
# Remove user user1 with authorization provider example.com-authz
|
||||
ovirt_users:
|
||||
- ovirt_users:
|
||||
state: absent
|
||||
name: user1
|
||||
authz_name: example.com-authz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue