2018-02-28 07:30:34 +01:00
|
|
|
- name: retrieve caller facts
|
|
|
|
aws_caller_facts:
|
|
|
|
region: "{{ aws_region }}"
|
|
|
|
aws_access_key: "{{ aws_access_key }}"
|
|
|
|
aws_secret_key: "{{ aws_secret_key }}"
|
2018-08-22 23:21:12 +02:00
|
|
|
security_token: "{{ security_token }}"
|
2018-02-28 07:30:34 +01:00
|
|
|
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
|
2018-08-22 23:21:12 +02:00
|
|
|
- result.account_alias is not none
|