Skip to content

Commit 98173ae

Browse files
authored
Update Examples with FQCN (#67)
Updated module examples with FQCN Signed-off-by: Abhijeet Kasurde <[email protected]>
1 parent 7cd211e commit 98173ae

File tree

172 files changed

+1057
-1089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+1057
-1089
lines changed

plugins/modules/aws_acm.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@
157157
EXAMPLES = '''
158158
159159
- name: upload a self-signed certificate
160-
aws_acm:
160+
community.aws.aws_acm:
161161
certificate: "{{ lookup('file', 'cert.pem' ) }}"
162162
privateKey: "{{ lookup('file', 'key.pem' ) }}"
163163
name_tag: my_cert # to be applied through an AWS tag as "Name":"my_cert"
164164
region: ap-southeast-2 # AWS region
165165
166166
- name: create/update a certificate with a chain
167-
aws_acm:
167+
community.aws.aws_acm:
168168
certificate: "{{ lookup('file', 'cert.pem' ) }}"
169169
privateKey: "{{ lookup('file', 'key.pem' ) }}"
170170
name_tag: my_cert
@@ -178,19 +178,19 @@
178178
var: cert_create.certificate.arn
179179
180180
- name: delete the cert we just created
181-
aws_acm:
181+
community.aws.aws_acm:
182182
name_tag: my_cert
183183
state: absent
184184
region: ap-southeast-2
185185
186186
- name: delete a certificate with a particular ARN
187-
aws_acm:
187+
community.aws.aws_acm:
188188
certificate_arn: "arn:aws:acm:ap-southeast-2:123456789012:certificate/01234567-abcd-abcd-abcd-012345678901"
189189
state: absent
190190
region: ap-southeast-2
191191
192192
- name: delete all certificates with a particular domain name
193-
aws_acm:
193+
community.aws.aws_acm:
194194
domain_name: acm.ansible.com
195195
state: absent
196196
region: ap-southeast-2

plugins/modules/aws_acm_info.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,27 @@
5050

5151
EXAMPLES = '''
5252
- name: obtain all ACM certificates
53-
aws_acm_info:
53+
community.aws.aws_acm_info:
5454
5555
- name: obtain all information for a single ACM certificate
56-
aws_acm_info:
56+
community.aws.aws_acm_info:
5757
domain_name: "*.example_com"
5858
5959
- name: obtain all certificates pending validation
60-
aws_acm_info:
60+
community.aws.aws_acm_info:
6161
statuses:
6262
- PENDING_VALIDATION
6363
6464
- name: obtain all certificates with tag Name=foo and myTag=bar
65-
aws_acm_info:
65+
community.aws.aws_acm_info:
6666
tags:
6767
Name: foo
6868
myTag: bar
6969
7070
7171
# The output is still a list of certificates, just one item long.
7272
- name: obtain information about a certificate with a particular ARN
73-
aws_acm_info:
73+
community.aws.aws_acm_info:
7474
certificate_arn: "arn:aws:acm:ap-southeast-2:123456789876:certificate/abcdeabc-abcd-1234-4321-abcdeabcde12"
7575
7676
'''

plugins/modules/aws_api_gateway.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
EXAMPLES = '''
118118
- name: Setup AWS API Gateway setup on AWS and deploy API definition
119-
aws_api_gateway:
119+
community.aws.aws_api_gateway:
120120
swagger_file: my_api.yml
121121
stage: production
122122
cache_enabled: true
@@ -126,7 +126,7 @@
126126
state: present
127127
128128
- name: Update API definition to deploy new version
129-
aws_api_gateway:
129+
community.aws.aws_api_gateway:
130130
api_id: 'abc123321cba'
131131
swagger_file: my_api.yml
132132
deploy_desc: Make auth fix available.
@@ -136,7 +136,7 @@
136136
state: present
137137
138138
- name: Update API definitions and settings and deploy as canary
139-
aws_api_gateway:
139+
community.aws.aws_api_gateway:
140140
api_id: 'abc123321cba'
141141
swagger_file: my_api.yml
142142
cache_enabled: true

plugins/modules/aws_application_scaling_policy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
112112
# Create step scaling policy for ECS Service
113113
- name: scaling_policy
114-
aws_application_scaling_policy:
114+
community.aws.aws_application_scaling_policy:
115115
state: present
116116
policy_name: test_policy
117117
service_namespace: ecs
@@ -132,7 +132,7 @@
132132
133133
# Create target tracking scaling policy for ECS Service
134134
- name: scaling_policy
135-
aws_application_scaling_policy:
135+
community.aws.aws_application_scaling_policy:
136136
state: present
137137
policy_name: test_policy
138138
service_namespace: ecs
@@ -150,7 +150,7 @@
150150
151151
# Remove scalable target for ECS Service
152152
- name: scaling_policy
153-
aws_application_scaling_policy:
153+
community.aws.aws_application_scaling_policy:
154154
state: absent
155155
policy_name: test_policy
156156
policy_type: StepScaling

plugins/modules/aws_batch_compute_environment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
short_description: Manage AWS Batch Compute Environments
1313
description:
1414
- This module allows the management of AWS Batch Compute Environments.
15-
It is idempotent and supports "Check" mode. Use module M(aws_batch_compute_environment) to manage the compute
16-
environment, M(aws_batch_job_queue) to manage job queues, M(aws_batch_job_definition) to manage job definitions.
15+
It is idempotent and supports "Check" mode. Use module M(community.aws.aws_batch_compute_environment) to manage the compute
16+
environment, M(community.aws.aws_batch_job_queue) to manage job queues, M(community.aws.aws_batch_job_definition) to manage job definitions.
1717
1818
1919
author: Jon Meran (@jonmer85)
@@ -131,7 +131,7 @@
131131
state: present
132132
tasks:
133133
- name: My Batch Compute Environment
134-
aws_batch_compute_environment:
134+
community.aws.aws_batch_compute_environment:
135135
compute_environment_name: computeEnvironmentName
136136
state: present
137137
region: us-east-1

plugins/modules/aws_batch_job_definition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
short_description: Manage AWS Batch Job Definitions
1313
description:
1414
- This module allows the management of AWS Batch Job Definitions.
15-
It is idempotent and supports "Check" mode. Use module M(aws_batch_compute_environment) to manage the compute
16-
environment, M(aws_batch_job_queue) to manage job queues, M(aws_batch_job_definition) to manage job definitions.
15+
It is idempotent and supports "Check" mode. Use module M(community.aws.aws_batch_compute_environment) to manage the compute
16+
environment, M(community.aws.aws_batch_job_queue) to manage job queues, M(community.aws.aws_batch_job_definition) to manage job definitions.
1717
1818
1919
author: Jon Meran (@jonmer85)
@@ -185,7 +185,7 @@
185185
state: present
186186
tasks:
187187
- name: My Batch Job Definition
188-
aws_batch_job_definition:
188+
community.aws.aws_batch_job_definition:
189189
job_definition_name: My Batch Job Definition
190190
state: present
191191
type: container

plugins/modules/aws_batch_job_queue.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
short_description: Manage AWS Batch Job Queues
1313
description:
1414
- This module allows the management of AWS Batch Job Queues.
15-
It is idempotent and supports "Check" mode. Use module M(aws_batch_compute_environment) to manage the compute
16-
environment, M(aws_batch_job_queue) to manage job queues, M(aws_batch_job_definition) to manage job definitions.
15+
It is idempotent and supports "Check" mode. Use module M(community.aws.aws_batch_compute_environment) to manage the compute
16+
environment, M(community.aws.aws_batch_job_queue) to manage job queues, M(community.aws.aws_batch_job_definition) to manage job definitions.
1717
1818
1919
author: Jon Meran (@jonmer85)
@@ -75,7 +75,7 @@
7575
state: present
7676
tasks:
7777
- name: My Batch Job Queue
78-
aws_batch_job_queue:
78+
community.aws.aws_batch_job_queue:
7979
job_queue_name: jobQueueName
8080
state: present
8181
region: us-east-1

plugins/modules/aws_codebuild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
EXAMPLES = '''
166166
# Note: These examples do not set authentication details, see the AWS Guide for details.
167167
168-
- aws_codebuild:
168+
- community.aws.aws_codebuild:
169169
name: my_project
170170
description: My nice little project
171171
service_role: "arn:aws:iam::123123:role/service-role/code-build-service-role"

plugins/modules/aws_codecommit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@
126126

127127
EXAMPLES = '''
128128
# Create a new repository
129-
- aws_codecommit:
129+
- community.aws.aws_codecommit:
130130
name: repo
131131
state: present
132132
133133
# Delete a repository
134-
- aws_codecommit:
134+
- community.aws.aws_codecommit:
135135
name: repo
136136
state: absent
137137
'''

plugins/modules/aws_codepipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
# Note: These examples do not set authentication details, see the AWS Guide for details.
8383
8484
# Example for creating a pipeline for continuous deploy of Github code to an ECS cluster (container)
85-
- aws_codepipeline:
85+
- community.aws.aws_codepipeline:
8686
name: my_deploy_pipeline
8787
role_arn: arn:aws:iam::123456:role/AWS-CodePipeline-Service
8888
artifact_store:

0 commit comments

Comments
 (0)