Fix examples formatting (#345)

This commit is contained in:
Andrew Klychkov 2020-05-16 16:07:51 +03:00 committed by GitHub
commit a7c830f49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 330 additions and 334 deletions

View file

@ -105,7 +105,7 @@ options:
'''
EXAMPLES = '''
# check for migrations on local node
- name: wait for migrations on local node before proceeding
- name: Wait for migrations on local node before proceeding
aerospike_migrations:
host: "localhost"
connect_timeout: 2000
@ -116,7 +116,7 @@ EXAMPLES = '''
# example playbook:
---
- name: upgrade aerospike
- name: Upgrade aerospike
hosts: all
become: true
serial: 1
@ -128,7 +128,7 @@ EXAMPLES = '''
- python-pip
- python-setuptools
state: latest
- name: setup aerospike
- name: Setup aerospike
pip:
name: aerospike
# check for migrations every (sleep_between_checks)
@ -137,7 +137,7 @@ EXAMPLES = '''
# nodes not returning data, or other reasons.
# Maximum runtime before giving up in this case will be:
# Tries Limit * Sleep Between Checks * delay * retries
- name: wait for aerospike migrations
- name: Wait for aerospike migrations
aerospike_migrations:
local_only: True
sleep_between_checks: 1
@ -151,10 +151,10 @@ EXAMPLES = '''
changed_when: false
delay: 60
retries: 120
- name: another thing
- name: Another thing
shell: |
echo foo
- name: reboot
- name: Reboot
reboot:
'''

View file

@ -49,7 +49,7 @@ extends_documentation_fragment:
EXAMPLES = r'''
# Example influxdb_retention_policy command from Ansible Playbooks
- name: create 1 hour retention policy
- name: Create 1 hour retention policy
influxdb_retention_policy:
hostname: "{{influxdb_ip_address}}"
database_name: "{{influxdb_database_name}}"
@ -59,7 +59,7 @@ EXAMPLES = r'''
ssl: yes
validate_certs: yes
- name: create 1 day retention policy
- name: Create 1 day retention policy
influxdb_retention_policy:
hostname: "{{influxdb_ip_address}}"
database_name: "{{influxdb_database_name}}"
@ -67,7 +67,7 @@ EXAMPLES = r'''
duration: 1d
replication: 1
- name: create 1 week retention policy
- name: Create 1 week retention policy
influxdb_retention_policy:
hostname: "{{influxdb_ip_address}}"
database_name: "{{influxdb_database_name}}"
@ -75,7 +75,7 @@ EXAMPLES = r'''
duration: 1w
replication: 1
- name: create infinite retention policy
- name: Create infinite retention policy
influxdb_retention_policy:
hostname: "{{influxdb_ip_address}}"
database_name: "{{influxdb_database_name}}"

View file

@ -55,7 +55,7 @@ author: "Dariusz Owczarek (@dareko)"
'''
EXAMPLES = """
- name: updating load_balance_policy
- name: Updating load_balance_policy
vertica_configuration: name=failovertostandbyafter value='8 hours'
"""
import traceback

View file

@ -49,7 +49,7 @@ author: "Dariusz Owczarek (@dareko)"
'''
EXAMPLES = """
- name: gathering vertica facts
- name: Gathering vertica facts
vertica_info: db=db_name
register: result

View file

@ -60,10 +60,10 @@ author: "Dariusz Owczarek (@dareko)"
'''
EXAMPLES = """
- name: creating a new vertica role
- name: Creating a new vertica role
vertica_role: name=role_name db=db_name state=present
- name: creating a new vertica role with other role assigned
- name: Creating a new vertica role with other role assigned
vertica_role: name=role_name assigned_role=other_role_name state=present
"""
import traceback

View file

@ -72,13 +72,13 @@ author: "Dariusz Owczarek (@dareko)"
'''
EXAMPLES = """
- name: creating a new vertica schema
- name: Creating a new vertica schema
vertica_schema: name=schema_name db=db_name state=present
- name: creating a new schema with specific schema owner
- name: Creating a new schema with specific schema owner
vertica_schema: name=schema_name owner=dbowner db=db_name state=present
- name: creating a new schema with roles
- name: Creating a new schema with roles
vertica_schema:
name=schema_name
create_roles=schema_name_all

View file

@ -83,10 +83,10 @@ author: "Dariusz Owczarek (@dareko)"
'''
EXAMPLES = """
- name: creating a new vertica user with password
- name: Creating a new vertica user with password
vertica_user: name=user_name password=md5<encrypted_password> db=db_name state=present
- name: creating a new vertica user authenticated via ldap with roles assigned
- name: Creating a new vertica user authenticated via ldap with roles assigned
vertica_user:
name=user_name
ldap=true