mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix examples formatting (#345)
This commit is contained in:
parent
31ba39cac4
commit
a7c830f49d
148 changed files with 330 additions and 334 deletions
|
@ -246,7 +246,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# basic provisioning example vpc network
|
||||
- name: basic provisioning example
|
||||
- name: Basic provisioning example
|
||||
hosts: localhost
|
||||
vars:
|
||||
alicloud_access_key: <your-alicloud-access-key-id>
|
||||
|
@ -268,7 +268,7 @@ EXAMPLES = '''
|
|||
force: True
|
||||
|
||||
tasks:
|
||||
- name: launch ECS instance in VPC network
|
||||
- name: Launch ECS instance in VPC network
|
||||
ali_instance:
|
||||
alicloud_access_key: '{{ alicloud_access_key }}'
|
||||
alicloud_secret_key: '{{ alicloud_secret_key }}'
|
||||
|
@ -286,7 +286,7 @@ EXAMPLES = '''
|
|||
host_name: '{{ host_name }}'
|
||||
password: '{{ password }}'
|
||||
|
||||
- name: with count and count_tag to create a number of instances
|
||||
- name: With count and count_tag to create a number of instances
|
||||
ali_instance:
|
||||
alicloud_access_key: '{{ alicloud_access_key }}'
|
||||
alicloud_secret_key: '{{ alicloud_secret_key }}'
|
||||
|
@ -308,7 +308,7 @@ EXAMPLES = '''
|
|||
host_name: '{{ host_name }}'
|
||||
password: '{{ password }}'
|
||||
|
||||
- name: start instance
|
||||
- name: Start instance
|
||||
ali_instance:
|
||||
alicloud_access_key: '{{ alicloud_access_key }}'
|
||||
alicloud_secret_key: '{{ alicloud_secret_key }}'
|
||||
|
@ -316,7 +316,7 @@ EXAMPLES = '''
|
|||
instance_ids: '{{ instance_ids }}'
|
||||
state: 'running'
|
||||
|
||||
- name: reboot instance forcibly
|
||||
- name: Reboot instance forcibly
|
||||
ecs:
|
||||
alicloud_access_key: '{{ alicloud_access_key }}'
|
||||
alicloud_secret_key: '{{ alicloud_secret_key }}'
|
||||
|
|
|
@ -81,7 +81,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
register: policy
|
||||
|
||||
- name: debug
|
||||
- name: Debug
|
||||
debug:
|
||||
var: policy
|
||||
'''
|
||||
|
|
|
@ -86,7 +86,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
register: policy
|
||||
|
||||
- name: debug
|
||||
- name: Debug
|
||||
debug: var=policy
|
||||
|
||||
---
|
||||
|
@ -102,7 +102,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
register: policy
|
||||
|
||||
- name: debug
|
||||
- name: Debug
|
||||
debug: var=policy
|
||||
'''
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
register: clc
|
||||
|
||||
- name: debug
|
||||
- name: Debug
|
||||
debug:
|
||||
var: clc
|
||||
|
||||
|
@ -95,7 +95,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
register: clc
|
||||
|
||||
- name: debug
|
||||
- name: Debug
|
||||
debug:
|
||||
var: clc
|
||||
'''
|
||||
|
|
|
@ -69,7 +69,7 @@ notes:
|
|||
EXAMPLES = '''
|
||||
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples
|
||||
|
||||
- name: set the cpu count to 4 on a server
|
||||
- name: Set the cpu count to 4 on a server
|
||||
clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
|
@ -77,7 +77,7 @@ EXAMPLES = '''
|
|||
cpu: 4
|
||||
state: present
|
||||
|
||||
- name: set the memory to 8GB on a server
|
||||
- name: Set the memory to 8GB on a server
|
||||
clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
|
@ -85,7 +85,7 @@ EXAMPLES = '''
|
|||
memory: 8
|
||||
state: present
|
||||
|
||||
- name: set the anti affinity policy on a server
|
||||
- name: Set the anti affinity policy on a server
|
||||
clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
|
@ -93,7 +93,7 @@ EXAMPLES = '''
|
|||
anti_affinity_policy_name: 'aa_policy'
|
||||
state: present
|
||||
|
||||
- name: remove the anti affinity policy on a server
|
||||
- name: Remove the anti affinity policy on a server
|
||||
clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
|
@ -101,7 +101,7 @@ EXAMPLES = '''
|
|||
anti_affinity_policy_name: 'aa_policy'
|
||||
state: absent
|
||||
|
||||
- name: add the alert policy on a server
|
||||
- name: Add the alert policy on a server
|
||||
clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
|
@ -109,7 +109,7 @@ EXAMPLES = '''
|
|||
alert_policy_name: 'alert_policy'
|
||||
state: present
|
||||
|
||||
- name: remove the alert policy on a server
|
||||
- name: Remove the alert policy on a server
|
||||
clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
|
@ -117,7 +117,7 @@ EXAMPLES = '''
|
|||
alert_policy_name: 'alert_policy'
|
||||
state: absent
|
||||
|
||||
- name: set the memory to 16GB and cpu to 8 core on a lust if servers
|
||||
- name: Ret the memory to 16GB and cpu to 8 core on a lust if servers
|
||||
clc_modify_server:
|
||||
server_ids:
|
||||
- UC1TESTSVR01
|
||||
|
|
|
@ -72,7 +72,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
register: clc
|
||||
|
||||
- name: debug
|
||||
- name: Debug
|
||||
debug:
|
||||
var: clc
|
||||
|
||||
|
@ -89,7 +89,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
register: clc
|
||||
|
||||
- name: debug
|
||||
- name: Debug
|
||||
debug:
|
||||
var: clc
|
||||
'''
|
||||
|
|
|
@ -43,7 +43,7 @@ notes:
|
|||
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create a certificate
|
||||
- name: Create a certificate
|
||||
digital_ocean_certificate:
|
||||
name: production
|
||||
state: present
|
||||
|
@ -51,7 +51,7 @@ EXAMPLES = '''
|
|||
leaf_certificate: "-----BEGIN CERTIFICATE-----\nMIIFDmg2Iaw==\n-----END CERTIFICATE-----"
|
||||
oauth_token: b7d03a6947b217efb6f3ec3bd365652
|
||||
|
||||
- name: create a certificate using file lookup plugin
|
||||
- name: Create a certificate using file lookup plugin
|
||||
digital_ocean_certificate:
|
||||
name: production
|
||||
state: present
|
||||
|
@ -59,7 +59,7 @@ EXAMPLES = '''
|
|||
leaf_certificate: "{{ lookup('file', 'test.cert') }}"
|
||||
oauth_token: "{{ oauth_token }}"
|
||||
|
||||
- name: create a certificate with trust chain
|
||||
- name: Create a certificate with trust chain
|
||||
digital_ocean_certificate:
|
||||
name: production
|
||||
state: present
|
||||
|
@ -68,7 +68,7 @@ EXAMPLES = '''
|
|||
certificate_chain: "{{ lookup('file', 'chain.cert') }}"
|
||||
oauth_token: "{{ oauth_token }}"
|
||||
|
||||
- name: remove a certificate
|
||||
- name: Remove a certificate
|
||||
digital_ocean_certificate:
|
||||
name: production
|
||||
state: absent
|
||||
|
|
|
@ -105,7 +105,7 @@ requirements:
|
|||
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create a new droplet
|
||||
- name: Create a new droplet
|
||||
digital_ocean_droplet:
|
||||
state: present
|
||||
name: mydroplet
|
||||
|
@ -120,7 +120,7 @@ EXAMPLES = '''
|
|||
- debug:
|
||||
msg: "ID is {{ my_droplet.data.droplet.id }}, IP is {{ my_droplet.data.ip_address }}"
|
||||
|
||||
- name: ensure a droplet is present
|
||||
- name: Ensure a droplet is present
|
||||
digital_ocean_droplet:
|
||||
state: present
|
||||
id: 123
|
||||
|
@ -131,7 +131,7 @@ EXAMPLES = '''
|
|||
image: ubuntu-16-04-x64
|
||||
wait_timeout: 500
|
||||
|
||||
- name: ensure a droplet is present with SSH keys installed
|
||||
- name: Ensure a droplet is present with SSH keys installed
|
||||
digital_ocean_droplet:
|
||||
state: present
|
||||
id: 123
|
||||
|
|
|
@ -51,12 +51,12 @@ requirements:
|
|||
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create a tag
|
||||
- name: Create a tag
|
||||
digital_ocean_tag:
|
||||
name: production
|
||||
state: present
|
||||
|
||||
- name: tag a resource; creating the tag if it does not exist
|
||||
- name: Tag a resource; creating the tag if it does not exist
|
||||
digital_ocean_tag:
|
||||
name: "{{ item }}"
|
||||
resource_id: "73333005"
|
||||
|
@ -65,7 +65,7 @@ EXAMPLES = '''
|
|||
- staging
|
||||
- dbserver
|
||||
|
||||
- name: untag a resource
|
||||
- name: Untag a resource
|
||||
digital_ocean_tag:
|
||||
name: staging
|
||||
resource_id: "73333005"
|
||||
|
@ -73,7 +73,7 @@ EXAMPLES = '''
|
|||
|
||||
# Deleting a tag also untags all the resources that have previously been
|
||||
# tagged with it
|
||||
- name: remove a tag
|
||||
- name: Remove a tag
|
||||
digital_ocean_tag:
|
||||
name: dbserver
|
||||
state: absent
|
||||
|
|
|
@ -892,7 +892,7 @@ EXAMPLES = '''
|
|||
command: sleep 1d
|
||||
with_sequence: count=4
|
||||
|
||||
- name: remove container
|
||||
- name: Remove container
|
||||
docker_container:
|
||||
name: ohno
|
||||
state: absent
|
||||
|
@ -1031,7 +1031,7 @@ EXAMPLES = '''
|
|||
# The "NONE" check needs to be specified
|
||||
test: ["NONE"]
|
||||
|
||||
- name: start container with block device read limit
|
||||
- name: Start container with block device read limit
|
||||
docker_container:
|
||||
name: test
|
||||
image: ubuntu:18.04
|
||||
|
|
|
@ -312,7 +312,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
|
||||
- name: pull an image
|
||||
- name: Pull an image
|
||||
docker_image:
|
||||
name: pacur/centos-7
|
||||
source: pull
|
||||
|
|
|
@ -220,7 +220,7 @@ EXAMPLES = '''
|
|||
credentials_file: "/path/to/your-key.json"
|
||||
project_id: "your-project-name"
|
||||
tasks:
|
||||
- name: create multiple instances
|
||||
- name: Create multiple instances
|
||||
# Basic provisioning example. Create multiple Debian 8 instances in the
|
||||
# us-central1-a Zone of n1-standard-1 machine type.
|
||||
gce:
|
||||
|
@ -260,7 +260,7 @@ EXAMPLES = '''
|
|||
tags:
|
||||
- config
|
||||
|
||||
- name: delete test-instances
|
||||
- name: Delete test-instances
|
||||
# Basic termination of instance.
|
||||
gce:
|
||||
service_account_email: "{{ service_account_email }}"
|
||||
|
|
|
@ -147,7 +147,7 @@ author: "Gwenael Pellen (@GwenaelPellenArkeup) <gwenael.pellen@arkeup.com>"
|
|||
|
||||
EXAMPLES = '''
|
||||
# Usage
|
||||
- name: create instance template named foo
|
||||
- name: Create instance template named foo
|
||||
gce_instance_template:
|
||||
name: foo
|
||||
size: n1-standard-1
|
||||
|
@ -165,7 +165,7 @@ EXAMPLES = '''
|
|||
credentials_file: "/path/to/your-key.json"
|
||||
project_id: "your-project-name"
|
||||
tasks:
|
||||
- name: create instance template
|
||||
- name: Create instance template
|
||||
gce_instance_template:
|
||||
name: my-test-instance-template
|
||||
size: n1-standard-1
|
||||
|
@ -174,7 +174,7 @@ EXAMPLES = '''
|
|||
project_id: "{{ project_id }}"
|
||||
credentials_file: "{{ credentials_file }}"
|
||||
service_account_email: "{{ service_account_email }}"
|
||||
- name: delete instance template
|
||||
- name: Delete instance template
|
||||
gce_instance_template:
|
||||
name: my-test-instance-template
|
||||
size: n1-standard-1
|
||||
|
@ -192,7 +192,7 @@ EXAMPLES = '''
|
|||
credentials_file: "/path/to/your-key.json"
|
||||
project_id: "your-project-name"
|
||||
tasks:
|
||||
- name: create instance template
|
||||
- name: Create instance template
|
||||
gce_instance_template:
|
||||
name: foo
|
||||
size: n1-standard-1
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a dataset
|
||||
- name: Get info on a dataset
|
||||
gcp_bigquery_dataset_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -93,7 +93,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a table
|
||||
- name: Get info on a table
|
||||
gcp_bigquery_table_info:
|
||||
dataset: example_dataset
|
||||
project: test_project
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a trigger
|
||||
- name: Get info on a trigger
|
||||
gcp_cloudbuild_trigger_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -100,7 +100,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an address
|
||||
- name: Get info on an address
|
||||
gcp_compute_address_info:
|
||||
region: us-west1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a backend bucket
|
||||
- name: Get info on a backend bucket
|
||||
gcp_compute_backend_bucket_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a backend service
|
||||
- name: Get info on a backend service
|
||||
gcp_compute_backend_service_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a disk
|
||||
- name: Get info on a disk
|
||||
gcp_compute_disk_info:
|
||||
zone: us-central1-a
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a firewall
|
||||
- name: Get info on a firewall
|
||||
gcp_compute_firewall_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -100,7 +100,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a forwarding rule
|
||||
- name: Get info on a forwarding rule
|
||||
gcp_compute_forwarding_rule_info:
|
||||
region: us-west1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a global address
|
||||
- name: Get info on a global address
|
||||
gcp_compute_global_address_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a global forwarding rule
|
||||
- name: Get info on a global forwarding rule
|
||||
gcp_compute_global_forwarding_rule_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a health check
|
||||
- name: Get info on a health check
|
||||
gcp_compute_health_check_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a HTTP health check
|
||||
- name: Get info on a HTTP health check
|
||||
gcp_compute_http_health_check_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a HTTPS health check
|
||||
- name: Get info on a HTTPS health check
|
||||
gcp_compute_https_health_check_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an image
|
||||
- name: Get info on an image
|
||||
gcp_compute_image_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an instance group
|
||||
- name: Get info on an instance group
|
||||
gcp_compute_instance_group_info:
|
||||
zone: us-central1-a
|
||||
filters:
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an instance group manager
|
||||
- name: Get info on an instance group manager
|
||||
gcp_compute_instance_group_manager_info:
|
||||
zone: us-west1-a
|
||||
filters:
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an instance
|
||||
- name: Get info on an instance
|
||||
gcp_compute_instance_info:
|
||||
zone: us-central1-a
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an instance template
|
||||
- name: Get info on an instance template
|
||||
gcp_compute_instance_template_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an interconnect attachment
|
||||
- name: Get info on an interconnect attachment
|
||||
gcp_compute_interconnect_attachment_info:
|
||||
region: us-central1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a network
|
||||
- name: Get info on a network
|
||||
gcp_compute_network_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a region disk
|
||||
- name: Get info on a region disk
|
||||
gcp_compute_region_disk_info:
|
||||
region: us-central1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a route
|
||||
- name: Get info on a route
|
||||
gcp_compute_route_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a router
|
||||
- name: Get info on a router
|
||||
gcp_compute_router_info:
|
||||
region: us-central1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a SSL certificate
|
||||
- name: Get info on a SSL certificate
|
||||
gcp_compute_ssl_certificate_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a SSL policy
|
||||
- name: Get info on a SSL policy
|
||||
gcp_compute_ssl_policy_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a subnetwork
|
||||
- name: Get info on a subnetwork
|
||||
gcp_compute_subnetwork_info:
|
||||
region: us-west1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a target HTTP proxy
|
||||
- name: Get info on a target HTTP proxy
|
||||
gcp_compute_target_http_proxy_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a target HTTPS proxy
|
||||
- name: Get info on a target HTTPS proxy
|
||||
gcp_compute_target_https_proxy_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a target pool
|
||||
- name: Get info on a target pool
|
||||
gcp_compute_target_pool_info:
|
||||
region: us-west1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a target SSL proxy
|
||||
- name: Get info on a target SSL proxy
|
||||
gcp_compute_target_ssl_proxy_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a target TCP proxy
|
||||
- name: Get info on a target TCP proxy
|
||||
gcp_compute_target_tcp_proxy_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a target vpn gateway
|
||||
- name: Get info on a target vpn gateway
|
||||
gcp_compute_target_vpn_gateway_info:
|
||||
region: us-west1
|
||||
filters:
|
||||
|
|
|
@ -94,7 +94,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an URL map
|
||||
- name: Get info on an URL map
|
||||
gcp_compute_url_map_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -99,7 +99,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a vpn tunnel
|
||||
- name: Get info on a vpn tunnel
|
||||
gcp_compute_vpn_tunnel_info:
|
||||
region: us-west1
|
||||
filters:
|
||||
|
|
|
@ -96,7 +96,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a cluster
|
||||
- name: Get info on a cluster
|
||||
gcp_container_cluster_info:
|
||||
location: us-central1-a
|
||||
project: test_project
|
||||
|
|
|
@ -106,7 +106,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a node pool
|
||||
- name: Get info on a node pool
|
||||
gcp_container_node_pool_info:
|
||||
cluster: "{{ cluster }}"
|
||||
location: us-central1-a
|
||||
|
|
|
@ -92,7 +92,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a managed zone
|
||||
- name: Get info on a managed zone
|
||||
gcp_dns_managed_zone_info:
|
||||
dns_name: test.somewild2.example.com.
|
||||
project: test_project
|
||||
|
|
|
@ -95,7 +95,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a resource record set
|
||||
- name: Get info on a resource record set
|
||||
gcp_dns_resource_record_set_info:
|
||||
managed_zone: "{{ managed_zone }}"
|
||||
project: test_project
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a role
|
||||
- name: Get info on a role
|
||||
gcp_iam_role_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a service account
|
||||
- name: Get info on a service account
|
||||
gcp_iam_service_account_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a subscription
|
||||
- name: Get info on a subscription
|
||||
gcp_pubsub_subscription_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a topic
|
||||
- name: Get info on a topic
|
||||
gcp_pubsub_topic_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -93,7 +93,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an instance
|
||||
- name: Get info on an instance
|
||||
gcp_redis_instance_info:
|
||||
region: us-central1
|
||||
project: test_project
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a project
|
||||
- name: Get info on a project
|
||||
gcp_resourcemanager_project_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a repository
|
||||
- name: Get info on a repository
|
||||
gcp_sourcerepo_repository_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -98,7 +98,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a database
|
||||
- name: Get info on a database
|
||||
gcp_spanner_database_info:
|
||||
instance: "{{ instance }}"
|
||||
project: test_project
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an instance
|
||||
- name: Get info on an instance
|
||||
gcp_spanner_instance_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -93,7 +93,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a database
|
||||
- name: Get info on a database
|
||||
gcp_sql_database_info:
|
||||
instance: "{{ instance.name }}"
|
||||
project: test_project
|
||||
|
|
|
@ -88,7 +88,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an instance
|
||||
- name: Get info on an instance
|
||||
gcp_sql_instance_info:
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -98,7 +98,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a user
|
||||
- name: Get info on a user
|
||||
gcp_sql_user_info:
|
||||
instance: "{{ instance }}"
|
||||
project: test_project
|
||||
|
|
|
@ -93,7 +93,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on a node
|
||||
- name: Get info on a node
|
||||
gcp_tpu_node_info:
|
||||
zone: us-central1-b
|
||||
project: test_project
|
||||
|
|
|
@ -226,12 +226,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create an ecs instance
|
||||
- name: create a vpc
|
||||
- name: Create a vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.100.0/24"
|
||||
name: "ansible_network_vpc_test"
|
||||
register: vpc
|
||||
- name: create a subnet
|
||||
- name: Create a subnet
|
||||
hwc_vpc_subnet:
|
||||
gateway_ip: "192.168.100.32"
|
||||
name: "ansible_network_subnet_test"
|
||||
|
@ -239,7 +239,7 @@ EXAMPLES = '''
|
|||
vpc_id: "{{ vpc.id }}"
|
||||
cidr: "192.168.100.0/26"
|
||||
register: subnet
|
||||
- name: create a eip
|
||||
- name: Create a eip
|
||||
hwc_vpc_eip:
|
||||
dedicated_bandwidth:
|
||||
charge_mode: "traffic"
|
||||
|
@ -247,14 +247,14 @@ EXAMPLES = '''
|
|||
size: 1
|
||||
type: "5_bgp"
|
||||
register: eip
|
||||
- name: create a disk
|
||||
- name: Create a disk
|
||||
hwc_evs_disk:
|
||||
availability_zone: "cn-north-1a"
|
||||
name: "ansible_evs_disk_test"
|
||||
volume_type: "SATA"
|
||||
size: 10
|
||||
register: disk
|
||||
- name: create an instance
|
||||
- name: Create an instance
|
||||
hwc_ecs_instance:
|
||||
data_volumes:
|
||||
- volume_id: "{{ disk.id }}"
|
||||
|
|
|
@ -154,7 +154,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# test create disk
|
||||
- name: create a disk
|
||||
- name: Create a disk
|
||||
hwc_evs_disk:
|
||||
availability_zone: "cn-north-1a"
|
||||
name: "ansible_evs_disk_test"
|
||||
|
|
|
@ -65,7 +65,7 @@ extends_documentation_fragment:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create a vpc
|
||||
- name: Create a vpc
|
||||
hwc_network_vpc:
|
||||
identity_endpoint: "{{ identity_endpoint }}"
|
||||
user: "{{ user }}"
|
||||
|
|
|
@ -50,7 +50,7 @@ extends_documentation_fragment:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create a smn topic
|
||||
- name: Create a smn topic
|
||||
hwc_smn_topic:
|
||||
identity_endpoint: "{{ identity_endpoint }}"
|
||||
user_name: "{{ user_name }}"
|
||||
|
|
|
@ -125,12 +125,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create an eip and bind it to a port
|
||||
- name: create vpc
|
||||
- name: Create vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.100.0/24"
|
||||
name: "ansible_network_vpc_test"
|
||||
register: vpc
|
||||
- name: create subnet
|
||||
- name: Create subnet
|
||||
hwc_vpc_subnet:
|
||||
gateway_ip: "192.168.100.32"
|
||||
name: "ansible_network_subnet_test"
|
||||
|
@ -138,12 +138,12 @@ EXAMPLES = '''
|
|||
vpc_id: "{{ vpc.id }}"
|
||||
cidr: "192.168.100.0/26"
|
||||
register: subnet
|
||||
- name: create a port
|
||||
- name: Create a port
|
||||
hwc_vpc_port:
|
||||
subnet_id: "{{ subnet.id }}"
|
||||
ip_address: "192.168.100.33"
|
||||
register: port
|
||||
- name: create an eip and bind it to a port
|
||||
- name: Create an eip and bind it to a port
|
||||
hwc_vpc_eip:
|
||||
type: "5_bgp"
|
||||
dedicated_bandwidth:
|
||||
|
|
|
@ -79,17 +79,17 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create a peering connect
|
||||
- name: create a local vpc
|
||||
- name: Create a local vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.0.0/16"
|
||||
name: "ansible_network_vpc_test_local"
|
||||
register: vpc1
|
||||
- name: create a peering vpc
|
||||
- name: Create a peering vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.0.0/16"
|
||||
name: "ansible_network_vpc_test_peering"
|
||||
register: vpc2
|
||||
- name: create a peering connect
|
||||
- name: Create a peering connect
|
||||
hwc_vpc_peering_connect:
|
||||
local_vpc_id: "{{ vpc1.id }}"
|
||||
name: "ansible_network_peering_test"
|
||||
|
|
|
@ -106,12 +106,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create a port
|
||||
- name: create vpc
|
||||
- name: Create vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.100.0/24"
|
||||
name: "ansible_network_vpc_test"
|
||||
register: vpc
|
||||
- name: create subnet
|
||||
- name: Create subnet
|
||||
hwc_vpc_subnet:
|
||||
gateway_ip: "192.168.100.32"
|
||||
name: "ansible_network_subnet_test"
|
||||
|
@ -119,7 +119,7 @@ EXAMPLES = '''
|
|||
vpc_id: "{{ vpc.id }}"
|
||||
cidr: "192.168.100.0/26"
|
||||
register: subnet
|
||||
- name: create a port
|
||||
- name: Create a port
|
||||
hwc_vpc_port:
|
||||
subnet_id: "{{ subnet.id }}"
|
||||
ip_address: "192.168.100.33"
|
||||
|
|
|
@ -53,12 +53,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create a private ip
|
||||
- name: create vpc
|
||||
- name: Create vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.100.0/24"
|
||||
name: "ansible_network_vpc_test"
|
||||
register: vpc
|
||||
- name: create subnet
|
||||
- name: Create subnet
|
||||
hwc_vpc_subnet:
|
||||
gateway_ip: "192.168.100.32"
|
||||
name: "ansible_network_subnet_test"
|
||||
|
@ -66,7 +66,7 @@ EXAMPLES = '''
|
|||
vpc_id: "{{ vpc.id }}"
|
||||
cidr: "192.168.100.0/26"
|
||||
register: subnet
|
||||
- name: create a private ip
|
||||
- name: Create a private ip
|
||||
hwc_vpc_private_ip:
|
||||
subnet_id: "{{ subnet.id }}"
|
||||
ip_address: "192.168.100.33"
|
||||
|
|
|
@ -60,17 +60,17 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create a peering connect
|
||||
- name: create a local vpc
|
||||
- name: Create a local vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.0.0/16"
|
||||
name: "ansible_network_vpc_test_local"
|
||||
register: vpc1
|
||||
- name: create a peering vpc
|
||||
- name: Create a peering vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.0.0/16"
|
||||
name: "ansible_network_vpc_test_peering"
|
||||
register: vpc2
|
||||
- name: create a peering connect
|
||||
- name: Create a peering connect
|
||||
hwc_vpc_peering_connect:
|
||||
local_vpc_id: "{{ vpc1.id }}"
|
||||
name: "ansible_network_peering_test"
|
||||
|
@ -79,7 +79,7 @@ EXAMPLES = '''
|
|||
peering_vpc:
|
||||
vpc_id: "{{ vpc2.id }}"
|
||||
register: connect
|
||||
- name: create a route
|
||||
- name: Create a route
|
||||
hwc_vpc_route:
|
||||
vpc_id: "{{ vpc1.id }}"
|
||||
destination: "192.168.0.0/16"
|
||||
|
|
|
@ -64,7 +64,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create a security group
|
||||
- name: create a security group
|
||||
- name: Create a security group
|
||||
hwc_vpc_security_group:
|
||||
name: "ansible_network_security_group_test"
|
||||
'''
|
||||
|
|
|
@ -105,11 +105,11 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create a security group rule
|
||||
- name: create a security group
|
||||
- name: Create a security group
|
||||
hwc_vpc_security_group:
|
||||
name: "ansible_network_security_group_test"
|
||||
register: sg
|
||||
- name: create a security group rule
|
||||
- name: Create a security group rule
|
||||
hwc_vpc_security_group_rule:
|
||||
direction: "ingress"
|
||||
protocol: "tcp"
|
||||
|
|
|
@ -97,12 +97,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = '''
|
||||
# create subnet
|
||||
- name: create vpc
|
||||
- name: Create vpc
|
||||
hwc_network_vpc:
|
||||
cidr: "192.168.100.0/24"
|
||||
name: "ansible_network_vpc_test"
|
||||
register: vpc
|
||||
- name: create subnet
|
||||
- name: Create subnet
|
||||
hwc_vpc_subnet:
|
||||
vpc_id: "{{ vpc.id }}"
|
||||
cidr: "192.168.100.0/26"
|
||||
|
|
|
@ -304,7 +304,7 @@ EXAMPLES = """
|
|||
archive_compression: gzip
|
||||
register: clone_container_info
|
||||
|
||||
- name: debug info on container "test-container"
|
||||
- name: Debug info on container "test-container"
|
||||
debug:
|
||||
var: clone_container_info
|
||||
|
||||
|
|
|
@ -162,14 +162,14 @@ EXAMPLES = '''
|
|||
wait_for_ipv4_addresses: true
|
||||
timeout: 600
|
||||
|
||||
- name: check python is installed in container
|
||||
- name: Check python is installed in container
|
||||
delegate_to: mycontainer
|
||||
raw: dpkg -s python
|
||||
register: python_install_check
|
||||
failed_when: python_install_check.rc not in [0, 1]
|
||||
changed_when: false
|
||||
|
||||
- name: install python in container
|
||||
- name: Install python in container
|
||||
delegate_to: mycontainer
|
||||
raw: apt-get install -y python
|
||||
when: python_install_check.rc == 1
|
||||
|
@ -238,7 +238,7 @@ EXAMPLES = '''
|
|||
- hosts:
|
||||
- mycontainer
|
||||
tasks:
|
||||
- name: copy /etc/hosts in the created container to localhost with name "mycontainer-hosts"
|
||||
- name: Copy /etc/hosts in the created container to localhost with name "mycontainer-hosts"
|
||||
fetch:
|
||||
src: /etc/hosts
|
||||
dest: /tmp/mycontainer-hosts
|
||||
|
|
|
@ -114,7 +114,7 @@ EXAMPLES = '''
|
|||
- hosts: localhost
|
||||
connection: local
|
||||
tasks:
|
||||
- name: create macvlan profile
|
||||
- name: Create macvlan profile
|
||||
lxd_profile:
|
||||
url: https://127.0.0.1:8443
|
||||
# These client_cert and client_key values are equal to the default values.
|
||||
|
|
|
@ -37,7 +37,7 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: submit DNS reload and poll.
|
||||
- name: Submit DNS reload and poll
|
||||
memset_dns_reload:
|
||||
api_key: 5eb86c9196ab03919abcf03857163741
|
||||
poll: True
|
||||
|
|
|
@ -30,7 +30,7 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get usage for mstestyaa1
|
||||
- name: Get usage for mstestyaa1
|
||||
memset_memstore_info:
|
||||
name: mstestyaa1
|
||||
api_key: 5eb86c9896ab03919abcf03857163741
|
||||
|
|
|
@ -30,7 +30,7 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get details for testyaa1
|
||||
- name: Get details for testyaa1
|
||||
memset_server_info:
|
||||
name: testyaa1
|
||||
api_key: 5eb86c9896ab03919abcf03857163741
|
||||
|
|
|
@ -50,7 +50,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
# Create the zone 'test'
|
||||
- name: create zone
|
||||
- name: Create zone
|
||||
memset_zone:
|
||||
name: test
|
||||
state: present
|
||||
|
@ -59,7 +59,7 @@ EXAMPLES = '''
|
|||
delegate_to: localhost
|
||||
|
||||
# Force zone deletion
|
||||
- name: force delete zone
|
||||
- name: Force delete zone
|
||||
memset_zone:
|
||||
name: test
|
||||
state: absent
|
||||
|
|
|
@ -44,7 +44,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
# Create the zone domain 'test.com'
|
||||
- name: create zone domain
|
||||
- name: Create zone domain
|
||||
memset_zone_domain:
|
||||
domain: test.com
|
||||
zone: testzone
|
||||
|
|
|
@ -66,7 +66,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
# Create DNS record for www.domain.com
|
||||
- name: create DNS record
|
||||
- name: Create DNS record
|
||||
memset_zone_record:
|
||||
api_key: dcf089a2896940da9ffefb307ef49ccd
|
||||
state: present
|
||||
|
@ -79,7 +79,7 @@ EXAMPLES = '''
|
|||
delegate_to: localhost
|
||||
|
||||
# create an SPF record for domain.com
|
||||
- name: create SPF record for domain.com
|
||||
- name: Create SPF record for domain.com
|
||||
memset_zone_record:
|
||||
api_key: dcf089a2896940da9ffefb307ef49ccd
|
||||
state: present
|
||||
|
@ -89,7 +89,7 @@ EXAMPLES = '''
|
|||
delegate_to: localhost
|
||||
|
||||
# create multiple DNS records
|
||||
- name: create multiple DNS records
|
||||
- name: Create multiple DNS records
|
||||
memset_zone_record:
|
||||
api_key: dcf089a2896940da9ffefb307ef49ccd
|
||||
zone: "{{ item.zone }}"
|
||||
|
|
|
@ -131,7 +131,7 @@ EXAMPLES = '''
|
|||
|
||||
# Creating devices
|
||||
|
||||
- name: create 1 device
|
||||
- name: Create 1 device
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
|
@ -145,7 +145,7 @@ EXAMPLES = '''
|
|||
# ready for other API operations). Fail if the devices in not "active" in
|
||||
# 10 minutes.
|
||||
|
||||
- name: create device and wait up to 10 minutes for active state
|
||||
- name: Create device and wait up to 10 minutes for active state
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
|
@ -157,7 +157,7 @@ EXAMPLES = '''
|
|||
state: active
|
||||
wait_timeout: 600
|
||||
|
||||
- name: create 3 ubuntu devices called server-01, server-02 and server-03
|
||||
- name: Create 3 ubuntu devices called server-01, server-02 and server-03
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
|
@ -171,7 +171,7 @@ EXAMPLES = '''
|
|||
- name: Create 3 coreos devices with userdata, wait until they get IPs and then wait for SSH
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- name: create 3 devices and register their facts
|
||||
- name: Create 3 devices and register their facts
|
||||
packet_device:
|
||||
hostnames: [coreos-one, coreos-two, coreos-three]
|
||||
operating_system: coreos_stable
|
||||
|
@ -198,7 +198,7 @@ EXAMPLES = '''
|
|||
command: start
|
||||
register: newhosts
|
||||
|
||||
- name: wait for ssh
|
||||
- name: Wait for ssh
|
||||
wait_for:
|
||||
delay: 1
|
||||
host: "{{ item.public_ipv4 }}"
|
||||
|
@ -210,7 +210,7 @@ EXAMPLES = '''
|
|||
|
||||
# Other states of devices
|
||||
|
||||
- name: remove 3 devices by uuid
|
||||
- name: Remove 3 devices by uuid
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
|
|
|
@ -82,7 +82,7 @@ EXAMPLES = '''
|
|||
# All the examples assume that you have your Packet api token in env var PACKET_API_TOKEN.
|
||||
# You can also pass it to the auth_token parameter of the module instead.
|
||||
|
||||
- name: create 1 device and assign an arbitrary public IPv4 subnet to it
|
||||
- name: Create 1 device and assign an arbitrary public IPv4 subnet to it
|
||||
hosts: localhost
|
||||
tasks:
|
||||
|
||||
|
@ -103,7 +103,7 @@ EXAMPLES = '''
|
|||
|
||||
# Release IP address 147.75.201.78
|
||||
|
||||
- name: unassign IP address from any device in your project
|
||||
- name: Unassign IP address from any device in your project
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_ip_subnet:
|
||||
|
|
|
@ -74,27 +74,27 @@ EXAMPLES = '''
|
|||
# All the examples assume that you have your Packet API token in env var PACKET_API_TOKEN.
|
||||
# You can also pass the api token in module param auth_token.
|
||||
|
||||
- name: create new project
|
||||
- name: Create new project
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
name: "new project"
|
||||
|
||||
- name: create new project within non-default organization
|
||||
- name: Create new project within non-default organization
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
name: "my org project"
|
||||
org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0
|
||||
|
||||
- name: remove project by id
|
||||
- name: Remove project by id
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
state: absent
|
||||
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
|
||||
|
||||
- name: create new project with non-default billing method
|
||||
- name: Create new project with non-default billing method
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
|
|
|
@ -49,20 +49,20 @@ EXAMPLES = '''
|
|||
# All the examples assume that you have your Packet API token in env var PACKET_API_TOKEN.
|
||||
# You can also pass the api token in module param auth_token.
|
||||
|
||||
- name: create sshkey from string
|
||||
- name: Create sshkey from string
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_sshkey:
|
||||
key: "{{ lookup('file', 'my_packet_sshkey.pub') }}"
|
||||
|
||||
- name: create sshkey from file
|
||||
- name: Create sshkey from file
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_sshkey:
|
||||
label: key from file
|
||||
key_file: ~/ff.pub
|
||||
|
||||
- name: remove sshkey by id
|
||||
- name: Remove sshkey by id
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_sshkey:
|
||||
|
|
|
@ -42,7 +42,7 @@ EXAMPLES = '''
|
|||
hosts: localhost
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- name: keypair request
|
||||
- name: Keypair request
|
||||
local_action:
|
||||
module: rax_keypair
|
||||
credentials: ~/.raxpub
|
||||
|
@ -64,7 +64,7 @@ EXAMPLES = '''
|
|||
hosts: localhost
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- name: keypair request
|
||||
- name: Keypair request
|
||||
local_action:
|
||||
module: rax_keypair
|
||||
credentials: ~/.raxpub
|
||||
|
|
|
@ -288,7 +288,7 @@ requirements:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create SmartOS zone
|
||||
- name: Create SmartOS zone
|
||||
vmadm:
|
||||
brand: joyent
|
||||
state: present
|
||||
|
|
|
@ -139,32 +139,32 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: register nginx service with the local consul agent
|
||||
- name: Register nginx service with the local consul agent
|
||||
consul:
|
||||
service_name: nginx
|
||||
service_port: 80
|
||||
|
||||
- name: register nginx service with curl check
|
||||
- name: Register nginx service with curl check
|
||||
consul:
|
||||
service_name: nginx
|
||||
service_port: 80
|
||||
script: curl http://localhost
|
||||
interval: 60s
|
||||
|
||||
- name: register nginx with an http check
|
||||
- name: Register nginx with an http check
|
||||
consul:
|
||||
service_name: nginx
|
||||
service_port: 80
|
||||
interval: 60s
|
||||
http: http://localhost:80/status
|
||||
|
||||
- name: register external service nginx available at 10.1.5.23
|
||||
- name: Register external service nginx available at 10.1.5.23
|
||||
consul:
|
||||
service_name: nginx
|
||||
service_port: 80
|
||||
service_address: 10.1.5.23
|
||||
|
||||
- name: register nginx with some service tags
|
||||
- name: Register nginx with some service tags
|
||||
consul:
|
||||
service_name: nginx
|
||||
service_port: 80
|
||||
|
@ -172,26 +172,26 @@ EXAMPLES = '''
|
|||
- prod
|
||||
- webservers
|
||||
|
||||
- name: remove nginx service
|
||||
- name: Remove nginx service
|
||||
consul:
|
||||
service_name: nginx
|
||||
state: absent
|
||||
|
||||
- name: register celery worker service
|
||||
- name: Register celery worker service
|
||||
consul:
|
||||
service_name: celery-worker
|
||||
tags:
|
||||
- prod
|
||||
- worker
|
||||
|
||||
- name: create a node level check to test disk usage
|
||||
- name: Create a node level check to test disk usage
|
||||
consul:
|
||||
check_name: Disk usage
|
||||
check_id: disk_usage
|
||||
script: /opt/disk_usage.py
|
||||
interval: 5m
|
||||
|
||||
- name: register an http check against a service that's already registered
|
||||
- name: Register an http check against a service that's already registered
|
||||
consul:
|
||||
check_name: nginx-check2
|
||||
check_id: nginx-check2
|
||||
|
|
|
@ -76,7 +76,7 @@ requirements:
|
|||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
- name: create an ACL with rules
|
||||
- name: Create an ACL with rules
|
||||
consul_acl:
|
||||
host: consul1.example.com
|
||||
mgmt_token: some_management_acl
|
||||
|
@ -87,7 +87,7 @@ EXAMPLES = """
|
|||
- key: "private/foo"
|
||||
policy: deny
|
||||
|
||||
- name: create an ACL with a specific token
|
||||
- name: Create an ACL with a specific token
|
||||
consul_acl:
|
||||
host: consul1.example.com
|
||||
mgmt_token: some_management_acl
|
||||
|
@ -97,7 +97,7 @@ EXAMPLES = """
|
|||
- key: "foo"
|
||||
policy: read
|
||||
|
||||
- name: update the rules associated to an ACL token
|
||||
- name: Update the rules associated to an ACL token
|
||||
consul_acl:
|
||||
host: consul1.example.com
|
||||
mgmt_token: some_management_acl
|
||||
|
@ -121,7 +121,7 @@ EXAMPLES = """
|
|||
- session: "standup"
|
||||
policy: write
|
||||
|
||||
- name: remove a token
|
||||
- name: Remove a token
|
||||
consul_acl:
|
||||
host: consul1.example.com
|
||||
mgmt_token: some_management_acl
|
||||
|
|
|
@ -109,7 +109,7 @@ options:
|
|||
EXAMPLES = '''
|
||||
# If the key does not exist, the value associated to the "data" property in `retrieved_key` will be `None`
|
||||
# If the key value is empty string, `retrieved_key["data"]["Value"]` will be `None`
|
||||
- name: retrieve a value from the key/value store
|
||||
- name: Retrieve a value from the key/value store
|
||||
consul_kv:
|
||||
key: somekey
|
||||
register: retrieved_key
|
||||
|
|
|
@ -97,27 +97,27 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: register basic session with consul
|
||||
- name: Register basic session with consul
|
||||
consul_session:
|
||||
name: session1
|
||||
|
||||
- name: register a session with an existing check
|
||||
- name: Register a session with an existing check
|
||||
consul_session:
|
||||
name: session_with_check
|
||||
checks:
|
||||
- existing_check_name
|
||||
|
||||
- name: register a session with lock_delay
|
||||
- name: Register a session with lock_delay
|
||||
consul_session:
|
||||
name: session_with_delay
|
||||
delay: 20s
|
||||
|
||||
- name: retrieve info about session by id
|
||||
- name: Retrieve info about session by id
|
||||
consul_session:
|
||||
id: session_id
|
||||
state: info
|
||||
|
||||
- name: retrieve active sessions
|
||||
- name: Retrieve active sessions
|
||||
consul_session:
|
||||
state: list
|
||||
'''
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue