mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Documentation updates to use complete YAML : syntax instead of key=val syntax. Adjusted example to use "" where appropriate to pass YAML Syntax checker per Contribution guidelines.
See Issue [# 2879](https://github.com/ansible/ansible-modules-core/issues/2879)
This commit is contained in:
parent
0310363a22
commit
ea8097a821
3 changed files with 59 additions and 53 deletions
|
@ -57,25 +57,28 @@ requirements:
|
|||
EXAMPLES = '''
|
||||
# Create a domain record
|
||||
|
||||
- digital_ocean_domain: >
|
||||
state=present
|
||||
name=my.digitalocean.domain
|
||||
ip=127.0.0.1
|
||||
- digital_ocean_domain:
|
||||
state: present
|
||||
name: my.digitalocean.domain
|
||||
ip: 127.0.0.1
|
||||
|
||||
# Create a droplet and a corresponding domain record
|
||||
|
||||
- digital_ocean: >
|
||||
state=present
|
||||
name=test_droplet
|
||||
size_id=1gb
|
||||
region_id=sgp1
|
||||
image_id=ubuntu-14-04-x64
|
||||
- digital_ocean:
|
||||
state: present
|
||||
name: test_droplet
|
||||
size_id: 1gb
|
||||
region_id: sgp1
|
||||
image_id: ubuntu-14-04-x64
|
||||
|
||||
|
||||
register: test_droplet
|
||||
|
||||
- digital_ocean_domain: >
|
||||
state=present
|
||||
name={{ test_droplet.droplet.name }}.my.domain
|
||||
ip={{ test_droplet.droplet.ip_address }}
|
||||
- digital_ocean_domain:
|
||||
state: present
|
||||
name: "{{ test_droplet.droplet.name }}.my.domain"
|
||||
ip: "{{ test_droplet.droplet.ip_address }}"
|
||||
|
||||
'''
|
||||
|
||||
import os
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue