Skip to content

Commit

Permalink
Update Examples with FQCN
Browse files Browse the repository at this point in the history
Updated module examples with FQCN

Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde committed May 12, 2020
1 parent af3a27b commit 19fc8dc
Show file tree
Hide file tree
Showing 172 changed files with 1,050 additions and 1,084 deletions.
10 changes: 5 additions & 5 deletions plugins/modules/aws_acm.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@
EXAMPLES = '''
- name: upload a self-signed certificate
aws_acm:
community.aws.aws_acm:
certificate: "{{ lookup('file', 'cert.pem' ) }}"
privateKey: "{{ lookup('file', 'key.pem' ) }}"
name_tag: my_cert # to be applied through an AWS tag as "Name":"my_cert"
region: ap-southeast-2 # AWS region
- name: create/update a certificate with a chain
aws_acm:
community.aws.aws_acm:
certificate: "{{ lookup('file', 'cert.pem' ) }}"
privateKey: "{{ lookup('file', 'key.pem' ) }}"
name_tag: my_cert
Expand All @@ -181,19 +181,19 @@
var: cert_create.certificate.arn
- name: delete the cert we just created
aws_acm:
community.aws.aws_acm:
name_tag: my_cert
state: absent
region: ap-southeast-2
- name: delete a certificate with a particular ARN
aws_acm:
community.aws.aws_acm:
certificate_arn: "arn:aws:acm:ap-southeast-2:123456789012:certificate/01234567-abcd-abcd-abcd-012345678901"
state: absent
region: ap-southeast-2
- name: delete all certificates with a particular domain name
aws_acm:
community.aws.aws_acm:
domain_name: acm.ansible.com
state: absent
region: ap-southeast-2
Expand Down
10 changes: 5 additions & 5 deletions plugins/modules/aws_acm_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,27 @@

EXAMPLES = '''
- name: obtain all ACM certificates
aws_acm_info:
community.aws.aws_acm_info:
- name: obtain all information for a single ACM certificate
aws_acm_info:
community.aws.aws_acm_info:
domain_name: "*.example_com"
- name: obtain all certificates pending validation
aws_acm_info:
community.aws.aws_acm_info:
statuses:
- PENDING_VALIDATION
- name: obtain all certificates with tag Name=foo and myTag=bar
aws_acm_info:
community.aws.aws_acm_info:
tags:
Name: foo
myTag: bar
# The output is still a list of certificates, just one item long.
- name: obtain information about a certificate with a particular ARN
aws_acm_info:
community.aws.aws_acm_info:
certificate_arn: "arn:aws:acm:ap-southeast-2:123456789876:certificate/abcdeabc-abcd-1234-4321-abcdeabcde12"
'''
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/aws_api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

EXAMPLES = '''
- name: Setup AWS API Gateway setup on AWS and deploy API definition
aws_api_gateway:
community.aws.aws_api_gateway:
swagger_file: my_api.yml
stage: production
cache_enabled: true
Expand All @@ -130,7 +130,7 @@
state: present
- name: Update API definition to deploy new version
aws_api_gateway:
community.aws.aws_api_gateway:
api_id: 'abc123321cba'
swagger_file: my_api.yml
deploy_desc: Make auth fix available.
Expand All @@ -140,7 +140,7 @@
state: present
- name: Update API definitions and settings and deploy as canary
aws_api_gateway:
community.aws.aws_api_gateway:
api_id: 'abc123321cba'
swagger_file: my_api.yml
cache_enabled: true
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/aws_application_scaling_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
# Create step scaling policy for ECS Service
- name: scaling_policy
aws_application_scaling_policy:
community.aws.aws_application_scaling_policy:
state: present
policy_name: test_policy
service_namespace: ecs
Expand All @@ -136,7 +136,7 @@
# Create target tracking scaling policy for ECS Service
- name: scaling_policy
aws_application_scaling_policy:
community.aws.aws_application_scaling_policy:
state: present
policy_name: test_policy
service_namespace: ecs
Expand All @@ -154,7 +154,7 @@
# Remove scalable target for ECS Service
- name: scaling_policy
aws_application_scaling_policy:
community.aws.aws_application_scaling_policy:
state: absent
policy_name: test_policy
policy_type: StepScaling
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/aws_batch_compute_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
short_description: Manage AWS Batch Compute Environments
description:
- This module allows the management of AWS Batch Compute Environments.
It is idempotent and supports "Check" mode. Use module M(aws_batch_compute_environment) to manage the compute
environment, M(aws_batch_job_queue) to manage job queues, M(aws_batch_job_definition) to manage job definitions.
It is idempotent and supports "Check" mode. Use module M(community.aws.aws_batch_compute_environment) to manage the compute
environment, M(community.aws.aws_batch_job_queue) to manage job queues, M(community.aws.aws_batch_job_definition) to manage job definitions.
author: Jon Meran (@jonmer85)
Expand Down Expand Up @@ -134,7 +134,7 @@
state: present
tasks:
- name: My Batch Compute Environment
aws_batch_compute_environment:
community.aws.aws_batch_compute_environment:
compute_environment_name: computeEnvironmentName
state: present
region: us-east-1
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/aws_batch_job_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
short_description: Manage AWS Batch Job Definitions
description:
- This module allows the management of AWS Batch Job Definitions.
It is idempotent and supports "Check" mode. Use module M(aws_batch_compute_environment) to manage the compute
environment, M(aws_batch_job_queue) to manage job queues, M(aws_batch_job_definition) to manage job definitions.
It is idempotent and supports "Check" mode. Use module M(community.aws.aws_batch_compute_environment) to manage the compute
environment, M(community.aws.aws_batch_job_queue) to manage job queues, M(community.aws.aws_batch_job_definition) to manage job definitions.
author: Jon Meran (@jonmer85)
Expand Down Expand Up @@ -188,7 +188,7 @@
state: present
tasks:
- name: My Batch Job Definition
aws_batch_job_definition:
community.aws.aws_batch_job_definition:
job_definition_name: My Batch Job Definition
state: present
type: container
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/aws_batch_job_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
short_description: Manage AWS Batch Job Queues
description:
- This module allows the management of AWS Batch Job Queues.
It is idempotent and supports "Check" mode. Use module M(aws_batch_compute_environment) to manage the compute
environment, M(aws_batch_job_queue) to manage job queues, M(aws_batch_job_definition) to manage job definitions.
It is idempotent and supports "Check" mode. Use module M(community.aws.aws_batch_compute_environment) to manage the compute
environment, M(community.aws.aws_batch_job_queue) to manage job queues, M(community.aws.aws_batch_job_definition) to manage job definitions.
author: Jon Meran (@jonmer85)
Expand Down Expand Up @@ -78,7 +78,7 @@
state: present
tasks:
- name: My Batch Job Queue
aws_batch_job_queue:
community.aws.aws_batch_job_queue:
job_queue_name: jobQueueName
state: present
region: us-east-1
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/aws_codebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
EXAMPLES = '''
# Note: These examples do not set authentication details, see the AWS Guide for details.
- aws_codebuild:
- community.aws.aws_codebuild:
name: my_project
description: My nice little project
service_role: "arn:aws:iam::123123:role/service-role/code-build-service-role"
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/aws_codecommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@

EXAMPLES = '''
# Create a new repository
- aws_codecommit:
- community.aws.aws_codecommit:
name: repo
state: present
# Delete a repository
- aws_codecommit:
- community.aws.aws_codecommit:
name: repo
state: absent
'''
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/aws_codepipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
# Note: These examples do not set authentication details, see the AWS Guide for details.
# Example for creating a pipeline for continuous deploy of Github code to an ECS cluster (container)
- aws_codepipeline:
- community.aws.aws_codepipeline:
name: my_deploy_pipeline
role_arn: arn:aws:iam::123456:role/AWS-CodePipeline-Service
artifact_store:
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/aws_config_aggregation_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@

EXAMPLES = '''
- name: Get current account ID
aws_caller_info:
community.aws.aws_caller_info:
register: whoami
- aws_config_aggregation_authorization:
- community.aws.aws_config_aggregation_authorization:
state: present
authorized_account_id: '{{ whoami.account }}'
authorzed_aws_region: us-east-1
authorized_aws_region: us-east-1
'''

RETURN = '''#'''
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/aws_config_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

EXAMPLES = '''
- name: Create cross-account aggregator
aws_config_aggregator:
community.aws.aws_config_aggregator:
name: test_config_rule
state: present
account_sources:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/aws_config_delivery_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

EXAMPLES = '''
- name: Create Delivery Channel for AWS Config
aws_config_delivery_channel:
community.aws.aws_config_delivery_channel:
name: test_delivery_channel
state: present
s3_bucket: 'test_aws_config_bucket'
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/aws_config_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

EXAMPLES = '''
- name: Create Configuration Recorder for AWS Config
aws_config_recorder:
community.aws.aws_config_recorder:
name: test_configuration_recorder
state: present
role_arn: 'arn:aws:iam::123456789012:role/AwsConfigRecorder'
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/aws_config_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

EXAMPLES = '''
- name: Create Config Rule for AWS Config
aws_config_rule:
community.aws.aws_config_rule:
name: test_config_rule
state: present
description: 'This AWS Config rule checks for public write access on S3 buckets'
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/aws_direct_connect_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
EXAMPLES = """
# create a Direct Connect connection
- aws_direct_connect_connection:
- community.aws.aws_direct_connect_connection:
name: ansible-test-connection
state: present
location: EqDC2
Expand All @@ -84,22 +84,22 @@
register: dc
# disassociate the LAG from the connection
- aws_direct_connect_connection:
- community.aws.aws_direct_connect_connection:
state: present
connection_id: dc.connection.connection_id
location: EqDC2
bandwidth: 1Gbps
# replace the connection with one with more bandwidth
- aws_direct_connect_connection:
- community.aws.aws_direct_connect_connection:
state: present
name: ansible-test-connection
location: EqDC2
bandwidth: 10Gbps
forced_update: True
# delete the connection
- aws_direct_connect_connection:
- community.aws.aws_direct_connect_connection:
state: absent
name: ansible-test-connection
"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/aws_direct_connect_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@

EXAMPLES = '''
- name: Create a new direct connect gateway attached to virtual private gateway
dxgw:
community.aws.aws_direct_connect_gateway:
state: present
name: my-dx-gateway
amazon_asn: 7224
virtual_gateway_id: vpg-12345
register: created_dxgw
- name: Create a new unattached dxgw
dxgw:
community.aws.aws_direct_connect_gateway:
state: present
name: my-dx-gateway
amazon_asn: 7224
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
EXAMPLES = """
# create a Direct Connect connection
- aws_direct_connect_link_aggregation_group:
- community.aws.aws_direct_connect_link_aggregation_group:
state: present
location: EqDC2
lag_id: dxlag-xxxxxxxx
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/aws_direct_connect_virtual_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@
EXAMPLES = '''
---
- name: create an association between a LAG and connection
aws_direct_connect_virtual_interface:
community.aws.aws_direct_connect_virtual_interface:
state: present
name: "{{ name }}"
link_aggregation_group_id: LAG-XXXXXXXX
connection_id: dxcon-XXXXXXXX
- name: remove an association between a connection and virtual interface
aws_direct_connect_virtual_interface:
community.aws.aws_direct_connect_virtual_interface:
state: absent
connection_id: dxcon-XXXXXXXX
virtual_interface_id: dxv-XXXXXXXX
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/aws_eks_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# Note: These examples do not set authentication details, see the AWS Guide for details.
- name: Create an EKS cluster
aws_eks_cluster:
community.aws.aws_eks_cluster:
name: my_cluster
version: 1.14
role_arn: my_eks_role
Expand All @@ -82,7 +82,7 @@
register: caller_facts
- name: Remove an EKS cluster
aws_eks_cluster:
community.aws.aws_eks_cluster:
name: my_cluster
wait: yes
state: absent
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/aws_elasticbeanstalk_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@

EXAMPLES = '''
# Create or update an application
- aws_elasticbeanstalk_app:
- community.aws.aws_elasticbeanstalk_app:
app_name: Sample_App
description: "Hello World App"
state: present
# Delete application
- aws_elasticbeanstalk_app:
- community.aws.aws_elasticbeanstalk_app:
app_name: Sample_App
state: absent
Expand Down
Loading

0 comments on commit 19fc8dc

Please sign in to comment.