Fix doc errors in AWS modules (#63851)

* Fix register/debug in aws_batch_compute_environment
* Fix aws_batch_job_queue doc errors
* Fix module naming: `batch_job_queue` > `aws_batch_job_queue`
* Fix missing register
* Update debug task to use modern YAML format
* Fix missing register + debug for lambda_policy
* Fix YAML syntax for elb_application_lb_info module

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2019-10-24 23:06:05 -05:00 committed by Abhijeet Kasurde
parent f279715c29
commit e4f16368ed
4 changed files with 12 additions and 5 deletions

View file

@ -151,9 +151,11 @@ EXAMPLES = '''
tag1: value1 tag1: value1
tag2: value2 tag2: value2
service_role: arn:aws:iam::<account>:role/service-role/<role> service_role: arn:aws:iam::<account>:role/service-role/<role>
register: aws_batch_compute_environment_action
- name: show results - name: show results
debug: var=aws_batch_compute_environment_action debug:
var: aws_batch_compute_environment_action
''' '''
RETURN = ''' RETURN = '''

View file

@ -67,7 +67,7 @@ EXAMPLES = '''
state: present state: present
tasks: tasks:
- name: My Batch Job Queue - name: My Batch Job Queue
batch_job_queue: aws_batch_job_queue:
job_queue_name: jobQueueName job_queue_name: jobQueueName
state: present state: present
region: us-east-1 region: us-east-1
@ -78,9 +78,11 @@ EXAMPLES = '''
compute_environment: my_compute_env1 compute_environment: my_compute_env1
- order: 2 - order: 2
compute_environment: my_compute_env2 compute_environment: my_compute_env2
register: batch_job_queue_action
- name: show results - name: show results
debug: var=batch_job_queue_action debug:
var: batch_job_queue_action
''' '''
RETURN = ''' RETURN = '''

View file

@ -57,7 +57,8 @@ EXAMPLES = '''
names: "alb-name" names: "alb-name"
region: "aws-region" region: "aws-region"
register: alb_info register: alb_info
- debug: var=alb_info - debug:
var: alb_info
''' '''
RETURN = ''' RETURN = '''

View file

@ -111,9 +111,11 @@ EXAMPLES = '''
principal: s3.amazonaws.com principal: s3.amazonaws.com
source_arn: arn:aws:s3:eu-central-1:123456789012:bucketName source_arn: arn:aws:s3:eu-central-1:123456789012:bucketName
source_account: 123456789012 source_account: 123456789012
register: lambda_policy_action
- name: show results - name: show results
debug: var=lambda_policy_action debug:
var: lambda_policy_action
''' '''