mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
432 B
YAML
16 lines
432 B
YAML
7 years ago
|
- name: retrieve caller facts
|
||
6 years ago
|
aws_caller_info:
|
||
7 years ago
|
region: "{{ aws_region }}"
|
||
|
aws_access_key: "{{ aws_access_key }}"
|
||
|
aws_secret_key: "{{ aws_secret_key }}"
|
||
6 years ago
|
security_token: "{{ security_token }}"
|
||
7 years ago
|
register: result
|
||
|
|
||
|
- name: assert correct keys are returned
|
||
|
assert:
|
||
|
that:
|
||
|
- result.account is not none
|
||
|
- result.arn is not none
|
||
|
- result.user_id is not none
|
||
6 years ago
|
- result.account_alias is not none
|