Fix Ansible documentation in part of example formatting (#334)

This commit is contained in:
Andrew Klychkov 2020-05-15 13:12:41 +03:00 committed by GitHub
commit 983d937b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 376 additions and 353 deletions

View file

@ -54,8 +54,8 @@ options:
EXAMPLES = '''
# Create a DNS record on a UCS
- udm_dns_record:
- name: Create a DNS record on a UCS
udm_dns_record:
name: www
zone: example.com
type: host_record
@ -66,7 +66,7 @@ EXAMPLES = '''
'''
RETURN = '''# '''
RETURN = '''#'''
HAVE_UNIVENTION = False
try:

View file

@ -81,8 +81,8 @@ options:
EXAMPLES = '''
# Create a DNS zone on a UCS
- udm_dns_zone:
- name: Create a DNS zone on a UCS
udm_dns_zone:
zone: example.com
type: forward_zone
nameserver:

View file

@ -52,18 +52,21 @@ options:
EXAMPLES = '''
# Create a POSIX group
- udm_group:
- name: Create a POSIX group
udm_group:
name: g123m-1A
# Create a POSIX group with the exact DN
# C(cn=g123m-1A,cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com)
- udm_group:
- name: Create a POSIX group with a DN
udm_group:
name: g123m-1A
subpath: 'cn=classes,cn=students,cn=groups'
ou: school
# or
- udm_group:
- name: Create a POSIX group with a DN
udm_group:
name: g123m-1A
position: 'cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com'
'''

View file

@ -292,8 +292,8 @@ options:
EXAMPLES = '''
# Create a share named home on the server ucs.example.com with the path /home.
- udm_share:
- name: Create a share named home on the server ucs.example.com with the path /home
udm_share:
name: home
path: /home
host: ucs.example.com

View file

@ -227,24 +227,25 @@ options:
EXAMPLES = '''
# Create a user on a UCS
- udm_user:
- name: Create a user on a UCS
udm_user:
name: FooBar
password: secure_password
firstname: Foo
lastname: Bar
# Create a user with the DN
# C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com)
- udm_user:
- name: Create a user with the DN C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com)
udm_user:
name: foo
password: secure_password
firstname: Foo
lastname: Bar
ou: school
subpath: 'cn=teachers,cn=users'
# or define the position
- udm_user:
- name: Create a user with the DN C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com)
udm_user:
name: foo
password: secure_password
firstname: Foo