mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-20 20:00:23 -07:00
Fix examples formatting (#345)
This commit is contained in:
parent
31ba39cac4
commit
a7c830f49d
148 changed files with 330 additions and 334 deletions
|
@ -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:
|
||||
'''
|
||||
|
||||
|
|
|
@ -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}}"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -49,7 +49,7 @@ author: "Dariusz Owczarek (@dareko)"
|
|||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
- name: gathering vertica facts
|
||||
- name: Gathering vertica facts
|
||||
vertica_info: db=db_name
|
||||
register: result
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue