1
0
Fork 0
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:
Andrew Klychkov 2020-05-16 16:07:51 +03:00 committed by GitHub
parent 31ba39cac4
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

@ -246,7 +246,7 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# basic provisioning example vpc network # basic provisioning example vpc network
- name: basic provisioning example - name: Basic provisioning example
hosts: localhost hosts: localhost
vars: vars:
alicloud_access_key: <your-alicloud-access-key-id> alicloud_access_key: <your-alicloud-access-key-id>
@ -268,7 +268,7 @@ EXAMPLES = '''
force: True force: True
tasks: tasks:
- name: launch ECS instance in VPC network - name: Launch ECS instance in VPC network
ali_instance: ali_instance:
alicloud_access_key: '{{ alicloud_access_key }}' alicloud_access_key: '{{ alicloud_access_key }}'
alicloud_secret_key: '{{ alicloud_secret_key }}' alicloud_secret_key: '{{ alicloud_secret_key }}'
@ -286,7 +286,7 @@ EXAMPLES = '''
host_name: '{{ host_name }}' host_name: '{{ host_name }}'
password: '{{ password }}' 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: ali_instance:
alicloud_access_key: '{{ alicloud_access_key }}' alicloud_access_key: '{{ alicloud_access_key }}'
alicloud_secret_key: '{{ alicloud_secret_key }}' alicloud_secret_key: '{{ alicloud_secret_key }}'
@ -308,7 +308,7 @@ EXAMPLES = '''
host_name: '{{ host_name }}' host_name: '{{ host_name }}'
password: '{{ password }}' password: '{{ password }}'
- name: start instance - name: Start instance
ali_instance: ali_instance:
alicloud_access_key: '{{ alicloud_access_key }}' alicloud_access_key: '{{ alicloud_access_key }}'
alicloud_secret_key: '{{ alicloud_secret_key }}' alicloud_secret_key: '{{ alicloud_secret_key }}'
@ -316,7 +316,7 @@ EXAMPLES = '''
instance_ids: '{{ instance_ids }}' instance_ids: '{{ instance_ids }}'
state: 'running' state: 'running'
- name: reboot instance forcibly - name: Reboot instance forcibly
ecs: ecs:
alicloud_access_key: '{{ alicloud_access_key }}' alicloud_access_key: '{{ alicloud_access_key }}'
alicloud_secret_key: '{{ alicloud_secret_key }}' alicloud_secret_key: '{{ alicloud_secret_key }}'

View file

@ -81,7 +81,7 @@ EXAMPLES = '''
state: absent state: absent
register: policy register: policy
- name: debug - name: Debug
debug: debug:
var: policy var: policy
''' '''

View file

@ -86,7 +86,7 @@ EXAMPLES = '''
state: present state: present
register: policy register: policy
- name: debug - name: Debug
debug: var=policy debug: var=policy
--- ---
@ -102,7 +102,7 @@ EXAMPLES = '''
state: absent state: absent
register: policy register: policy
- name: debug - name: Debug
debug: var=policy debug: var=policy
''' '''

View file

@ -76,7 +76,7 @@ EXAMPLES = '''
state: present state: present
register: clc register: clc
- name: debug - name: Debug
debug: debug:
var: clc var: clc
@ -95,7 +95,7 @@ EXAMPLES = '''
state: absent state: absent
register: clc register: clc
- name: debug - name: Debug
debug: debug:
var: clc var: clc
''' '''

View file

@ -69,7 +69,7 @@ notes:
EXAMPLES = ''' EXAMPLES = '''
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these 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: clc_modify_server:
server_ids: server_ids:
- UC1TESTSVR01 - UC1TESTSVR01
@ -77,7 +77,7 @@ EXAMPLES = '''
cpu: 4 cpu: 4
state: present state: present
- name: set the memory to 8GB on a server - name: Set the memory to 8GB on a server
clc_modify_server: clc_modify_server:
server_ids: server_ids:
- UC1TESTSVR01 - UC1TESTSVR01
@ -85,7 +85,7 @@ EXAMPLES = '''
memory: 8 memory: 8
state: present state: present
- name: set the anti affinity policy on a server - name: Set the anti affinity policy on a server
clc_modify_server: clc_modify_server:
server_ids: server_ids:
- UC1TESTSVR01 - UC1TESTSVR01
@ -93,7 +93,7 @@ EXAMPLES = '''
anti_affinity_policy_name: 'aa_policy' anti_affinity_policy_name: 'aa_policy'
state: present state: present
- name: remove the anti affinity policy on a server - name: Remove the anti affinity policy on a server
clc_modify_server: clc_modify_server:
server_ids: server_ids:
- UC1TESTSVR01 - UC1TESTSVR01
@ -101,7 +101,7 @@ EXAMPLES = '''
anti_affinity_policy_name: 'aa_policy' anti_affinity_policy_name: 'aa_policy'
state: absent state: absent
- name: add the alert policy on a server - name: Add the alert policy on a server
clc_modify_server: clc_modify_server:
server_ids: server_ids:
- UC1TESTSVR01 - UC1TESTSVR01
@ -109,7 +109,7 @@ EXAMPLES = '''
alert_policy_name: 'alert_policy' alert_policy_name: 'alert_policy'
state: present state: present
- name: remove the alert policy on a server - name: Remove the alert policy on a server
clc_modify_server: clc_modify_server:
server_ids: server_ids:
- UC1TESTSVR01 - UC1TESTSVR01
@ -117,7 +117,7 @@ EXAMPLES = '''
alert_policy_name: 'alert_policy' alert_policy_name: 'alert_policy'
state: absent 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: clc_modify_server:
server_ids: server_ids:
- UC1TESTSVR01 - UC1TESTSVR01

View file

@ -72,7 +72,7 @@ EXAMPLES = '''
state: present state: present
register: clc register: clc
- name: debug - name: Debug
debug: debug:
var: clc var: clc
@ -89,7 +89,7 @@ EXAMPLES = '''
state: absent state: absent
register: clc register: clc
- name: debug - name: Debug
debug: debug:
var: clc var: clc
''' '''

View file

@ -43,7 +43,7 @@ notes:
EXAMPLES = ''' EXAMPLES = '''
- name: create a certificate - name: Create a certificate
digital_ocean_certificate: digital_ocean_certificate:
name: production name: production
state: present state: present
@ -51,7 +51,7 @@ EXAMPLES = '''
leaf_certificate: "-----BEGIN CERTIFICATE-----\nMIIFDmg2Iaw==\n-----END CERTIFICATE-----" leaf_certificate: "-----BEGIN CERTIFICATE-----\nMIIFDmg2Iaw==\n-----END CERTIFICATE-----"
oauth_token: b7d03a6947b217efb6f3ec3bd365652 oauth_token: b7d03a6947b217efb6f3ec3bd365652
- name: create a certificate using file lookup plugin - name: Create a certificate using file lookup plugin
digital_ocean_certificate: digital_ocean_certificate:
name: production name: production
state: present state: present
@ -59,7 +59,7 @@ EXAMPLES = '''
leaf_certificate: "{{ lookup('file', 'test.cert') }}" leaf_certificate: "{{ lookup('file', 'test.cert') }}"
oauth_token: "{{ oauth_token }}" oauth_token: "{{ oauth_token }}"
- name: create a certificate with trust chain - name: Create a certificate with trust chain
digital_ocean_certificate: digital_ocean_certificate:
name: production name: production
state: present state: present
@ -68,7 +68,7 @@ EXAMPLES = '''
certificate_chain: "{{ lookup('file', 'chain.cert') }}" certificate_chain: "{{ lookup('file', 'chain.cert') }}"
oauth_token: "{{ oauth_token }}" oauth_token: "{{ oauth_token }}"
- name: remove a certificate - name: Remove a certificate
digital_ocean_certificate: digital_ocean_certificate:
name: production name: production
state: absent state: absent

View file

@ -105,7 +105,7 @@ requirements:
EXAMPLES = ''' EXAMPLES = '''
- name: create a new droplet - name: Create a new droplet
digital_ocean_droplet: digital_ocean_droplet:
state: present state: present
name: mydroplet name: mydroplet
@ -120,7 +120,7 @@ EXAMPLES = '''
- debug: - debug:
msg: "ID is {{ my_droplet.data.droplet.id }}, IP is {{ my_droplet.data.ip_address }}" 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: digital_ocean_droplet:
state: present state: present
id: 123 id: 123
@ -131,7 +131,7 @@ EXAMPLES = '''
image: ubuntu-16-04-x64 image: ubuntu-16-04-x64
wait_timeout: 500 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: digital_ocean_droplet:
state: present state: present
id: 123 id: 123

View file

@ -51,12 +51,12 @@ requirements:
EXAMPLES = ''' EXAMPLES = '''
- name: create a tag - name: Create a tag
digital_ocean_tag: digital_ocean_tag:
name: production name: production
state: present 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: digital_ocean_tag:
name: "{{ item }}" name: "{{ item }}"
resource_id: "73333005" resource_id: "73333005"
@ -65,7 +65,7 @@ EXAMPLES = '''
- staging - staging
- dbserver - dbserver
- name: untag a resource - name: Untag a resource
digital_ocean_tag: digital_ocean_tag:
name: staging name: staging
resource_id: "73333005" resource_id: "73333005"
@ -73,7 +73,7 @@ EXAMPLES = '''
# Deleting a tag also untags all the resources that have previously been # Deleting a tag also untags all the resources that have previously been
# tagged with it # tagged with it
- name: remove a tag - name: Remove a tag
digital_ocean_tag: digital_ocean_tag:
name: dbserver name: dbserver
state: absent state: absent

View file

@ -892,7 +892,7 @@ EXAMPLES = '''
command: sleep 1d command: sleep 1d
with_sequence: count=4 with_sequence: count=4
- name: remove container - name: Remove container
docker_container: docker_container:
name: ohno name: ohno
state: absent state: absent
@ -1031,7 +1031,7 @@ EXAMPLES = '''
# The "NONE" check needs to be specified # The "NONE" check needs to be specified
test: ["NONE"] test: ["NONE"]
- name: start container with block device read limit - name: Start container with block device read limit
docker_container: docker_container:
name: test name: test
image: ubuntu:18.04 image: ubuntu:18.04

View file

@ -312,7 +312,7 @@ author:
EXAMPLES = ''' EXAMPLES = '''
- name: pull an image - name: Pull an image
docker_image: docker_image:
name: pacur/centos-7 name: pacur/centos-7
source: pull source: pull

View file

@ -220,7 +220,7 @@ EXAMPLES = '''
credentials_file: "/path/to/your-key.json" credentials_file: "/path/to/your-key.json"
project_id: "your-project-name" project_id: "your-project-name"
tasks: tasks:
- name: create multiple instances - name: Create multiple instances
# Basic provisioning example. Create multiple Debian 8 instances in the # Basic provisioning example. Create multiple Debian 8 instances in the
# us-central1-a Zone of n1-standard-1 machine type. # us-central1-a Zone of n1-standard-1 machine type.
gce: gce:
@ -260,7 +260,7 @@ EXAMPLES = '''
tags: tags:
- config - config
- name: delete test-instances - name: Delete test-instances
# Basic termination of instance. # Basic termination of instance.
gce: gce:
service_account_email: "{{ service_account_email }}" service_account_email: "{{ service_account_email }}"

View file

@ -147,7 +147,7 @@ author: "Gwenael Pellen (@GwenaelPellenArkeup) <gwenael.pellen@arkeup.com>"
EXAMPLES = ''' EXAMPLES = '''
# Usage # Usage
- name: create instance template named foo - name: Create instance template named foo
gce_instance_template: gce_instance_template:
name: foo name: foo
size: n1-standard-1 size: n1-standard-1
@ -165,7 +165,7 @@ EXAMPLES = '''
credentials_file: "/path/to/your-key.json" credentials_file: "/path/to/your-key.json"
project_id: "your-project-name" project_id: "your-project-name"
tasks: tasks:
- name: create instance template - name: Create instance template
gce_instance_template: gce_instance_template:
name: my-test-instance-template name: my-test-instance-template
size: n1-standard-1 size: n1-standard-1
@ -174,7 +174,7 @@ EXAMPLES = '''
project_id: "{{ project_id }}" project_id: "{{ project_id }}"
credentials_file: "{{ credentials_file }}" credentials_file: "{{ credentials_file }}"
service_account_email: "{{ service_account_email }}" service_account_email: "{{ service_account_email }}"
- name: delete instance template - name: Delete instance template
gce_instance_template: gce_instance_template:
name: my-test-instance-template name: my-test-instance-template
size: n1-standard-1 size: n1-standard-1
@ -192,7 +192,7 @@ EXAMPLES = '''
credentials_file: "/path/to/your-key.json" credentials_file: "/path/to/your-key.json"
project_id: "your-project-name" project_id: "your-project-name"
tasks: tasks:
- name: create instance template - name: Create instance template
gce_instance_template: gce_instance_template:
name: foo name: foo
size: n1-standard-1 size: n1-standard-1

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a dataset - name: Get info on a dataset
gcp_bigquery_dataset_info: gcp_bigquery_dataset_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -93,7 +93,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a table - name: Get info on a table
gcp_bigquery_table_info: gcp_bigquery_table_info:
dataset: example_dataset dataset: example_dataset
project: test_project project: test_project

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a trigger - name: Get info on a trigger
gcp_cloudbuild_trigger_info: gcp_cloudbuild_trigger_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -100,7 +100,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an address - name: Get info on an address
gcp_compute_address_info: gcp_compute_address_info:
region: us-west1 region: us-west1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a backend bucket - name: Get info on a backend bucket
gcp_compute_backend_bucket_info: gcp_compute_backend_bucket_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a backend service - name: Get info on a backend service
gcp_compute_backend_service_info: gcp_compute_backend_service_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a disk - name: Get info on a disk
gcp_compute_disk_info: gcp_compute_disk_info:
zone: us-central1-a zone: us-central1-a
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a firewall - name: Get info on a firewall
gcp_compute_firewall_info: gcp_compute_firewall_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -100,7 +100,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a forwarding rule - name: Get info on a forwarding rule
gcp_compute_forwarding_rule_info: gcp_compute_forwarding_rule_info:
region: us-west1 region: us-west1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a global address - name: Get info on a global address
gcp_compute_global_address_info: gcp_compute_global_address_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a global forwarding rule - name: Get info on a global forwarding rule
gcp_compute_global_forwarding_rule_info: gcp_compute_global_forwarding_rule_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a health check - name: Get info on a health check
gcp_compute_health_check_info: gcp_compute_health_check_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a HTTP health check - name: Get info on a HTTP health check
gcp_compute_http_health_check_info: gcp_compute_http_health_check_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a HTTPS health check - name: Get info on a HTTPS health check
gcp_compute_https_health_check_info: gcp_compute_https_health_check_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an image - name: Get info on an image
gcp_compute_image_info: gcp_compute_image_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an instance group - name: Get info on an instance group
gcp_compute_instance_group_info: gcp_compute_instance_group_info:
zone: us-central1-a zone: us-central1-a
filters: filters:

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an instance group manager - name: Get info on an instance group manager
gcp_compute_instance_group_manager_info: gcp_compute_instance_group_manager_info:
zone: us-west1-a zone: us-west1-a
filters: filters:

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an instance - name: Get info on an instance
gcp_compute_instance_info: gcp_compute_instance_info:
zone: us-central1-a zone: us-central1-a
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an instance template - name: Get info on an instance template
gcp_compute_instance_template_info: gcp_compute_instance_template_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an interconnect attachment - name: Get info on an interconnect attachment
gcp_compute_interconnect_attachment_info: gcp_compute_interconnect_attachment_info:
region: us-central1 region: us-central1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a network - name: Get info on a network
gcp_compute_network_info: gcp_compute_network_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a region disk - name: Get info on a region disk
gcp_compute_region_disk_info: gcp_compute_region_disk_info:
region: us-central1 region: us-central1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a route - name: Get info on a route
gcp_compute_route_info: gcp_compute_route_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a router - name: Get info on a router
gcp_compute_router_info: gcp_compute_router_info:
region: us-central1 region: us-central1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a SSL certificate - name: Get info on a SSL certificate
gcp_compute_ssl_certificate_info: gcp_compute_ssl_certificate_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a SSL policy - name: Get info on a SSL policy
gcp_compute_ssl_policy_info: gcp_compute_ssl_policy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a subnetwork - name: Get info on a subnetwork
gcp_compute_subnetwork_info: gcp_compute_subnetwork_info:
region: us-west1 region: us-west1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target HTTP proxy - name: Get info on a target HTTP proxy
gcp_compute_target_http_proxy_info: gcp_compute_target_http_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target HTTPS proxy - name: Get info on a target HTTPS proxy
gcp_compute_target_https_proxy_info: gcp_compute_target_https_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target pool - name: Get info on a target pool
gcp_compute_target_pool_info: gcp_compute_target_pool_info:
region: us-west1 region: us-west1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target SSL proxy - name: Get info on a target SSL proxy
gcp_compute_target_ssl_proxy_info: gcp_compute_target_ssl_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target TCP proxy - name: Get info on a target TCP proxy
gcp_compute_target_tcp_proxy_info: gcp_compute_target_tcp_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target vpn gateway - name: Get info on a target vpn gateway
gcp_compute_target_vpn_gateway_info: gcp_compute_target_vpn_gateway_info:
region: us-west1 region: us-west1
filters: filters:

View file

@ -94,7 +94,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an URL map - name: Get info on an URL map
gcp_compute_url_map_info: gcp_compute_url_map_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -99,7 +99,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a vpn tunnel - name: Get info on a vpn tunnel
gcp_compute_vpn_tunnel_info: gcp_compute_vpn_tunnel_info:
region: us-west1 region: us-west1
filters: filters:

View file

@ -96,7 +96,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a cluster - name: Get info on a cluster
gcp_container_cluster_info: gcp_container_cluster_info:
location: us-central1-a location: us-central1-a
project: test_project project: test_project

View file

@ -106,7 +106,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a node pool - name: Get info on a node pool
gcp_container_node_pool_info: gcp_container_node_pool_info:
cluster: "{{ cluster }}" cluster: "{{ cluster }}"
location: us-central1-a location: us-central1-a

View file

@ -92,7 +92,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a managed zone - name: Get info on a managed zone
gcp_dns_managed_zone_info: gcp_dns_managed_zone_info:
dns_name: test.somewild2.example.com. dns_name: test.somewild2.example.com.
project: test_project project: test_project

View file

@ -95,7 +95,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a resource record set - name: Get info on a resource record set
gcp_dns_resource_record_set_info: gcp_dns_resource_record_set_info:
managed_zone: "{{ managed_zone }}" managed_zone: "{{ managed_zone }}"
project: test_project project: test_project

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a role - name: Get info on a role
gcp_iam_role_info: gcp_iam_role_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a service account - name: Get info on a service account
gcp_iam_service_account_info: gcp_iam_service_account_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a subscription - name: Get info on a subscription
gcp_pubsub_subscription_info: gcp_pubsub_subscription_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a topic - name: Get info on a topic
gcp_pubsub_topic_info: gcp_pubsub_topic_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -93,7 +93,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an instance - name: Get info on an instance
gcp_redis_instance_info: gcp_redis_instance_info:
region: us-central1 region: us-central1
project: test_project project: test_project

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a project - name: Get info on a project
gcp_resourcemanager_project_info: gcp_resourcemanager_project_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a repository - name: Get info on a repository
gcp_sourcerepo_repository_info: gcp_sourcerepo_repository_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -98,7 +98,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a database - name: Get info on a database
gcp_spanner_database_info: gcp_spanner_database_info:
instance: "{{ instance }}" instance: "{{ instance }}"
project: test_project project: test_project

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an instance - name: Get info on an instance
gcp_spanner_instance_info: gcp_spanner_instance_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -93,7 +93,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a database - name: Get info on a database
gcp_sql_database_info: gcp_sql_database_info:
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: test_project project: test_project

View file

@ -88,7 +88,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an instance - name: Get info on an instance
gcp_sql_instance_info: gcp_sql_instance_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -98,7 +98,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a user - name: Get info on a user
gcp_sql_user_info: gcp_sql_user_info:
instance: "{{ instance }}" instance: "{{ instance }}"
project: test_project project: test_project

View file

@ -93,7 +93,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a node - name: Get info on a node
gcp_tpu_node_info: gcp_tpu_node_info:
zone: us-central1-b zone: us-central1-b
project: test_project project: test_project

View file

@ -226,12 +226,12 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create an ecs instance # create an ecs instance
- name: create a vpc - name: Create a vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.100.0/24" cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test" name: "ansible_network_vpc_test"
register: vpc register: vpc
- name: create a subnet - name: Create a subnet
hwc_vpc_subnet: hwc_vpc_subnet:
gateway_ip: "192.168.100.32" gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test" name: "ansible_network_subnet_test"
@ -239,7 +239,7 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}" vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26" cidr: "192.168.100.0/26"
register: subnet register: subnet
- name: create a eip - name: Create a eip
hwc_vpc_eip: hwc_vpc_eip:
dedicated_bandwidth: dedicated_bandwidth:
charge_mode: "traffic" charge_mode: "traffic"
@ -247,14 +247,14 @@ EXAMPLES = '''
size: 1 size: 1
type: "5_bgp" type: "5_bgp"
register: eip register: eip
- name: create a disk - name: Create a disk
hwc_evs_disk: hwc_evs_disk:
availability_zone: "cn-north-1a" availability_zone: "cn-north-1a"
name: "ansible_evs_disk_test" name: "ansible_evs_disk_test"
volume_type: "SATA" volume_type: "SATA"
size: 10 size: 10
register: disk register: disk
- name: create an instance - name: Create an instance
hwc_ecs_instance: hwc_ecs_instance:
data_volumes: data_volumes:
- volume_id: "{{ disk.id }}" - volume_id: "{{ disk.id }}"

View file

@ -154,7 +154,7 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# test create disk # test create disk
- name: create a disk - name: Create a disk
hwc_evs_disk: hwc_evs_disk:
availability_zone: "cn-north-1a" availability_zone: "cn-north-1a"
name: "ansible_evs_disk_test" name: "ansible_evs_disk_test"

View file

@ -65,7 +65,7 @@ extends_documentation_fragment:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: create a vpc - name: Create a vpc
hwc_network_vpc: hwc_network_vpc:
identity_endpoint: "{{ identity_endpoint }}" identity_endpoint: "{{ identity_endpoint }}"
user: "{{ user }}" user: "{{ user }}"

View file

@ -50,7 +50,7 @@ extends_documentation_fragment:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: create a smn topic - name: Create a smn topic
hwc_smn_topic: hwc_smn_topic:
identity_endpoint: "{{ identity_endpoint }}" identity_endpoint: "{{ identity_endpoint }}"
user_name: "{{ user_name }}" user_name: "{{ user_name }}"

View file

@ -125,12 +125,12 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create an eip and bind it to a port # create an eip and bind it to a port
- name: create vpc - name: Create vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.100.0/24" cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test" name: "ansible_network_vpc_test"
register: vpc register: vpc
- name: create subnet - name: Create subnet
hwc_vpc_subnet: hwc_vpc_subnet:
gateway_ip: "192.168.100.32" gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test" name: "ansible_network_subnet_test"
@ -138,12 +138,12 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}" vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26" cidr: "192.168.100.0/26"
register: subnet register: subnet
- name: create a port - name: Create a port
hwc_vpc_port: hwc_vpc_port:
subnet_id: "{{ subnet.id }}" subnet_id: "{{ subnet.id }}"
ip_address: "192.168.100.33" ip_address: "192.168.100.33"
register: port 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: hwc_vpc_eip:
type: "5_bgp" type: "5_bgp"
dedicated_bandwidth: dedicated_bandwidth:

View file

@ -79,17 +79,17 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create a peering connect # create a peering connect
- name: create a local vpc - name: Create a local vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.0.0/16" cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_local" name: "ansible_network_vpc_test_local"
register: vpc1 register: vpc1
- name: create a peering vpc - name: Create a peering vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.0.0/16" cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_peering" name: "ansible_network_vpc_test_peering"
register: vpc2 register: vpc2
- name: create a peering connect - name: Create a peering connect
hwc_vpc_peering_connect: hwc_vpc_peering_connect:
local_vpc_id: "{{ vpc1.id }}" local_vpc_id: "{{ vpc1.id }}"
name: "ansible_network_peering_test" name: "ansible_network_peering_test"

View file

@ -106,12 +106,12 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create a port # create a port
- name: create vpc - name: Create vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.100.0/24" cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test" name: "ansible_network_vpc_test"
register: vpc register: vpc
- name: create subnet - name: Create subnet
hwc_vpc_subnet: hwc_vpc_subnet:
gateway_ip: "192.168.100.32" gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test" name: "ansible_network_subnet_test"
@ -119,7 +119,7 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}" vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26" cidr: "192.168.100.0/26"
register: subnet register: subnet
- name: create a port - name: Create a port
hwc_vpc_port: hwc_vpc_port:
subnet_id: "{{ subnet.id }}" subnet_id: "{{ subnet.id }}"
ip_address: "192.168.100.33" ip_address: "192.168.100.33"

View file

@ -53,12 +53,12 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create a private ip # create a private ip
- name: create vpc - name: Create vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.100.0/24" cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test" name: "ansible_network_vpc_test"
register: vpc register: vpc
- name: create subnet - name: Create subnet
hwc_vpc_subnet: hwc_vpc_subnet:
gateway_ip: "192.168.100.32" gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test" name: "ansible_network_subnet_test"
@ -66,7 +66,7 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}" vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26" cidr: "192.168.100.0/26"
register: subnet register: subnet
- name: create a private ip - name: Create a private ip
hwc_vpc_private_ip: hwc_vpc_private_ip:
subnet_id: "{{ subnet.id }}" subnet_id: "{{ subnet.id }}"
ip_address: "192.168.100.33" ip_address: "192.168.100.33"

View file

@ -60,17 +60,17 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create a peering connect # create a peering connect
- name: create a local vpc - name: Create a local vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.0.0/16" cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_local" name: "ansible_network_vpc_test_local"
register: vpc1 register: vpc1
- name: create a peering vpc - name: Create a peering vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.0.0/16" cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_peering" name: "ansible_network_vpc_test_peering"
register: vpc2 register: vpc2
- name: create a peering connect - name: Create a peering connect
hwc_vpc_peering_connect: hwc_vpc_peering_connect:
local_vpc_id: "{{ vpc1.id }}" local_vpc_id: "{{ vpc1.id }}"
name: "ansible_network_peering_test" name: "ansible_network_peering_test"
@ -79,7 +79,7 @@ EXAMPLES = '''
peering_vpc: peering_vpc:
vpc_id: "{{ vpc2.id }}" vpc_id: "{{ vpc2.id }}"
register: connect register: connect
- name: create a route - name: Create a route
hwc_vpc_route: hwc_vpc_route:
vpc_id: "{{ vpc1.id }}" vpc_id: "{{ vpc1.id }}"
destination: "192.168.0.0/16" destination: "192.168.0.0/16"

View file

@ -64,7 +64,7 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create a security group # create a security group
- name: create a security group - name: Create a security group
hwc_vpc_security_group: hwc_vpc_security_group:
name: "ansible_network_security_group_test" name: "ansible_network_security_group_test"
''' '''

View file

@ -105,11 +105,11 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create a security group rule # create a security group rule
- name: create a security group - name: Create a security group
hwc_vpc_security_group: hwc_vpc_security_group:
name: "ansible_network_security_group_test" name: "ansible_network_security_group_test"
register: sg register: sg
- name: create a security group rule - name: Create a security group rule
hwc_vpc_security_group_rule: hwc_vpc_security_group_rule:
direction: "ingress" direction: "ingress"
protocol: "tcp" protocol: "tcp"

View file

@ -97,12 +97,12 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# create subnet # create subnet
- name: create vpc - name: Create vpc
hwc_network_vpc: hwc_network_vpc:
cidr: "192.168.100.0/24" cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test" name: "ansible_network_vpc_test"
register: vpc register: vpc
- name: create subnet - name: Create subnet
hwc_vpc_subnet: hwc_vpc_subnet:
vpc_id: "{{ vpc.id }}" vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26" cidr: "192.168.100.0/26"

View file

@ -304,7 +304,7 @@ EXAMPLES = """
archive_compression: gzip archive_compression: gzip
register: clone_container_info register: clone_container_info
- name: debug info on container "test-container" - name: Debug info on container "test-container"
debug: debug:
var: clone_container_info var: clone_container_info

View file

@ -162,14 +162,14 @@ EXAMPLES = '''
wait_for_ipv4_addresses: true wait_for_ipv4_addresses: true
timeout: 600 timeout: 600
- name: check python is installed in container - name: Check python is installed in container
delegate_to: mycontainer delegate_to: mycontainer
raw: dpkg -s python raw: dpkg -s python
register: python_install_check register: python_install_check
failed_when: python_install_check.rc not in [0, 1] failed_when: python_install_check.rc not in [0, 1]
changed_when: false changed_when: false
- name: install python in container - name: Install python in container
delegate_to: mycontainer delegate_to: mycontainer
raw: apt-get install -y python raw: apt-get install -y python
when: python_install_check.rc == 1 when: python_install_check.rc == 1
@ -238,7 +238,7 @@ EXAMPLES = '''
- hosts: - hosts:
- mycontainer - mycontainer
tasks: 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: fetch:
src: /etc/hosts src: /etc/hosts
dest: /tmp/mycontainer-hosts dest: /tmp/mycontainer-hosts

View file

@ -114,7 +114,7 @@ EXAMPLES = '''
- hosts: localhost - hosts: localhost
connection: local connection: local
tasks: tasks:
- name: create macvlan profile - name: Create macvlan profile
lxd_profile: lxd_profile:
url: https://127.0.0.1:8443 url: https://127.0.0.1:8443
# These client_cert and client_key values are equal to the default values. # These client_cert and client_key values are equal to the default values.

View file

@ -37,7 +37,7 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: submit DNS reload and poll. - name: Submit DNS reload and poll
memset_dns_reload: memset_dns_reload:
api_key: 5eb86c9196ab03919abcf03857163741 api_key: 5eb86c9196ab03919abcf03857163741
poll: True poll: True

View file

@ -30,7 +30,7 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get usage for mstestyaa1 - name: Get usage for mstestyaa1
memset_memstore_info: memset_memstore_info:
name: mstestyaa1 name: mstestyaa1
api_key: 5eb86c9896ab03919abcf03857163741 api_key: 5eb86c9896ab03919abcf03857163741

View file

@ -30,7 +30,7 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get details for testyaa1 - name: Get details for testyaa1
memset_server_info: memset_server_info:
name: testyaa1 name: testyaa1
api_key: 5eb86c9896ab03919abcf03857163741 api_key: 5eb86c9896ab03919abcf03857163741

View file

@ -50,7 +50,7 @@ options:
EXAMPLES = ''' EXAMPLES = '''
# Create the zone 'test' # Create the zone 'test'
- name: create zone - name: Create zone
memset_zone: memset_zone:
name: test name: test
state: present state: present
@ -59,7 +59,7 @@ EXAMPLES = '''
delegate_to: localhost delegate_to: localhost
# Force zone deletion # Force zone deletion
- name: force delete zone - name: Force delete zone
memset_zone: memset_zone:
name: test name: test
state: absent state: absent

View file

@ -44,7 +44,7 @@ options:
EXAMPLES = ''' EXAMPLES = '''
# Create the zone domain 'test.com' # Create the zone domain 'test.com'
- name: create zone domain - name: Create zone domain
memset_zone_domain: memset_zone_domain:
domain: test.com domain: test.com
zone: testzone zone: testzone

View file

@ -66,7 +66,7 @@ options:
EXAMPLES = ''' EXAMPLES = '''
# Create DNS record for www.domain.com # Create DNS record for www.domain.com
- name: create DNS record - name: Create DNS record
memset_zone_record: memset_zone_record:
api_key: dcf089a2896940da9ffefb307ef49ccd api_key: dcf089a2896940da9ffefb307ef49ccd
state: present state: present
@ -79,7 +79,7 @@ EXAMPLES = '''
delegate_to: localhost delegate_to: localhost
# create an SPF record for domain.com # create an SPF record for domain.com
- name: create SPF record for domain.com - name: Create SPF record for domain.com
memset_zone_record: memset_zone_record:
api_key: dcf089a2896940da9ffefb307ef49ccd api_key: dcf089a2896940da9ffefb307ef49ccd
state: present state: present
@ -89,7 +89,7 @@ EXAMPLES = '''
delegate_to: localhost delegate_to: localhost
# create multiple DNS records # create multiple DNS records
- name: create multiple DNS records - name: Create multiple DNS records
memset_zone_record: memset_zone_record:
api_key: dcf089a2896940da9ffefb307ef49ccd api_key: dcf089a2896940da9ffefb307ef49ccd
zone: "{{ item.zone }}" zone: "{{ item.zone }}"

View file

@ -131,7 +131,7 @@ EXAMPLES = '''
# Creating devices # Creating devices
- name: create 1 device - name: Create 1 device
hosts: localhost hosts: localhost
tasks: tasks:
- packet_device: - packet_device:
@ -145,7 +145,7 @@ EXAMPLES = '''
# ready for other API operations). Fail if the devices in not "active" in # ready for other API operations). Fail if the devices in not "active" in
# 10 minutes. # 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 hosts: localhost
tasks: tasks:
- packet_device: - packet_device:
@ -157,7 +157,7 @@ EXAMPLES = '''
state: active state: active
wait_timeout: 600 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 hosts: localhost
tasks: tasks:
- packet_device: - packet_device:
@ -171,7 +171,7 @@ EXAMPLES = '''
- name: Create 3 coreos devices with userdata, wait until they get IPs and then wait for SSH - name: Create 3 coreos devices with userdata, wait until they get IPs and then wait for SSH
hosts: localhost hosts: localhost
tasks: tasks:
- name: create 3 devices and register their facts - name: Create 3 devices and register their facts
packet_device: packet_device:
hostnames: [coreos-one, coreos-two, coreos-three] hostnames: [coreos-one, coreos-two, coreos-three]
operating_system: coreos_stable operating_system: coreos_stable
@ -198,7 +198,7 @@ EXAMPLES = '''
command: start command: start
register: newhosts register: newhosts
- name: wait for ssh - name: Wait for ssh
wait_for: wait_for:
delay: 1 delay: 1
host: "{{ item.public_ipv4 }}" host: "{{ item.public_ipv4 }}"
@ -210,7 +210,7 @@ EXAMPLES = '''
# Other states of devices # Other states of devices
- name: remove 3 devices by uuid - name: Remove 3 devices by uuid
hosts: localhost hosts: localhost
tasks: tasks:
- packet_device: - packet_device:

View file

@ -82,7 +82,7 @@ EXAMPLES = '''
# All the examples assume that you have your Packet api token in env var PACKET_API_TOKEN. # 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. # 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 hosts: localhost
tasks: tasks:
@ -103,7 +103,7 @@ EXAMPLES = '''
# Release IP address 147.75.201.78 # 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 hosts: localhost
tasks: tasks:
- packet_ip_subnet: - packet_ip_subnet:

View file

@ -74,27 +74,27 @@ EXAMPLES = '''
# All the examples assume that you have your Packet API token in env var PACKET_API_TOKEN. # 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. # You can also pass the api token in module param auth_token.
- name: create new project - name: Create new project
hosts: localhost hosts: localhost
tasks: tasks:
packet_project: packet_project:
name: "new project" name: "new project"
- name: create new project within non-default organization - name: Create new project within non-default organization
hosts: localhost hosts: localhost
tasks: tasks:
packet_project: packet_project:
name: "my org project" name: "my org project"
org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0 org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0
- name: remove project by id - name: Remove project by id
hosts: localhost hosts: localhost
tasks: tasks:
packet_project: packet_project:
state: absent state: absent
id: eef49903-7a09-4ca1-af67-4087c29ab5b6 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 hosts: localhost
tasks: tasks:
packet_project: packet_project:

View file

@ -49,20 +49,20 @@ EXAMPLES = '''
# All the examples assume that you have your Packet API token in env var PACKET_API_TOKEN. # 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. # You can also pass the api token in module param auth_token.
- name: create sshkey from string - name: Create sshkey from string
hosts: localhost hosts: localhost
tasks: tasks:
packet_sshkey: packet_sshkey:
key: "{{ lookup('file', 'my_packet_sshkey.pub') }}" key: "{{ lookup('file', 'my_packet_sshkey.pub') }}"
- name: create sshkey from file - name: Create sshkey from file
hosts: localhost hosts: localhost
tasks: tasks:
packet_sshkey: packet_sshkey:
label: key from file label: key from file
key_file: ~/ff.pub key_file: ~/ff.pub
- name: remove sshkey by id - name: Remove sshkey by id
hosts: localhost hosts: localhost
tasks: tasks:
packet_sshkey: packet_sshkey:

View file

@ -42,7 +42,7 @@ EXAMPLES = '''
hosts: localhost hosts: localhost
gather_facts: False gather_facts: False
tasks: tasks:
- name: keypair request - name: Keypair request
local_action: local_action:
module: rax_keypair module: rax_keypair
credentials: ~/.raxpub credentials: ~/.raxpub
@ -64,7 +64,7 @@ EXAMPLES = '''
hosts: localhost hosts: localhost
gather_facts: False gather_facts: False
tasks: tasks:
- name: keypair request - name: Keypair request
local_action: local_action:
module: rax_keypair module: rax_keypair
credentials: ~/.raxpub credentials: ~/.raxpub

View file

@ -288,7 +288,7 @@ requirements:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: create SmartOS zone - name: Create SmartOS zone
vmadm: vmadm:
brand: joyent brand: joyent
state: present state: present

View file

@ -139,32 +139,32 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: register nginx service with the local consul agent - name: Register nginx service with the local consul agent
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
- name: register nginx service with curl check - name: Register nginx service with curl check
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
script: curl http://localhost script: curl http://localhost
interval: 60s interval: 60s
- name: register nginx with an http check - name: Register nginx with an http check
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
interval: 60s interval: 60s
http: http://localhost:80/status 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: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
service_address: 10.1.5.23 service_address: 10.1.5.23
- name: register nginx with some service tags - name: Register nginx with some service tags
consul: consul:
service_name: nginx service_name: nginx
service_port: 80 service_port: 80
@ -172,26 +172,26 @@ EXAMPLES = '''
- prod - prod
- webservers - webservers
- name: remove nginx service - name: Remove nginx service
consul: consul:
service_name: nginx service_name: nginx
state: absent state: absent
- name: register celery worker service - name: Register celery worker service
consul: consul:
service_name: celery-worker service_name: celery-worker
tags: tags:
- prod - prod
- worker - worker
- name: create a node level check to test disk usage - name: Create a node level check to test disk usage
consul: consul:
check_name: Disk usage check_name: Disk usage
check_id: disk_usage check_id: disk_usage
script: /opt/disk_usage.py script: /opt/disk_usage.py
interval: 5m 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: consul:
check_name: nginx-check2 check_name: nginx-check2
check_id: nginx-check2 check_id: nginx-check2

View file

@ -76,7 +76,7 @@ requirements:
''' '''
EXAMPLES = """ EXAMPLES = """
- name: create an ACL with rules - name: Create an ACL with rules
consul_acl: consul_acl:
host: consul1.example.com host: consul1.example.com
mgmt_token: some_management_acl mgmt_token: some_management_acl
@ -87,7 +87,7 @@ EXAMPLES = """
- key: "private/foo" - key: "private/foo"
policy: deny policy: deny
- name: create an ACL with a specific token - name: Create an ACL with a specific token
consul_acl: consul_acl:
host: consul1.example.com host: consul1.example.com
mgmt_token: some_management_acl mgmt_token: some_management_acl
@ -97,7 +97,7 @@ EXAMPLES = """
- key: "foo" - key: "foo"
policy: read policy: read
- name: update the rules associated to an ACL token - name: Update the rules associated to an ACL token
consul_acl: consul_acl:
host: consul1.example.com host: consul1.example.com
mgmt_token: some_management_acl mgmt_token: some_management_acl
@ -121,7 +121,7 @@ EXAMPLES = """
- session: "standup" - session: "standup"
policy: write policy: write
- name: remove a token - name: Remove a token
consul_acl: consul_acl:
host: consul1.example.com host: consul1.example.com
mgmt_token: some_management_acl mgmt_token: some_management_acl

View file

@ -109,7 +109,7 @@ options:
EXAMPLES = ''' EXAMPLES = '''
# If the key does not exist, the value associated to the "data" property in `retrieved_key` will be `None` # 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` # 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: consul_kv:
key: somekey key: somekey
register: retrieved_key register: retrieved_key

View file

@ -97,27 +97,27 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: register basic session with consul - name: Register basic session with consul
consul_session: consul_session:
name: session1 name: session1
- name: register a session with an existing check - name: Register a session with an existing check
consul_session: consul_session:
name: session_with_check name: session_with_check
checks: checks:
- existing_check_name - existing_check_name
- name: register a session with lock_delay - name: Register a session with lock_delay
consul_session: consul_session:
name: session_with_delay name: session_with_delay
delay: 20s delay: 20s
- name: retrieve info about session by id - name: Retrieve info about session by id
consul_session: consul_session:
id: session_id id: session_id
state: info state: info
- name: retrieve active sessions - name: Retrieve active sessions
consul_session: consul_session:
state: list state: list
''' '''

View file

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

View file

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

View file

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

View file

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

Some files were not shown because too many files have changed in this diff Show more