|
|
@ -644,22 +644,23 @@ for every call, it's preferable to use :ref:`module_defaults <module_defaults>`.
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
|
|
|
|
- name: set connection information for all tasks
|
|
|
|
- name: set connection information for aws modules and run tasks
|
|
|
|
module_defaults:
|
|
|
|
module_defaults:
|
|
|
|
group/aws:
|
|
|
|
group/aws:
|
|
|
|
aws_access_key: "{{ aws_access_key }}"
|
|
|
|
aws_access_key: "{{ aws_access_key }}"
|
|
|
|
aws_secret_key: "{{ aws_secret_key }}"
|
|
|
|
aws_secret_key: "{{ aws_secret_key }}"
|
|
|
|
security_token: "{{ security_token }}"
|
|
|
|
security_token: "{{ security_token }}"
|
|
|
|
region: "{{ aws_region }}"
|
|
|
|
region: "{{ aws_region }}"
|
|
|
|
no_log: yes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Do Something
|
|
|
|
block:
|
|
|
|
ec2_instance:
|
|
|
|
|
|
|
|
... params ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Do Something Else
|
|
|
|
- name: Do Something
|
|
|
|
ec2_instance:
|
|
|
|
ec2_instance:
|
|
|
|
... params ...
|
|
|
|
... params ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Do Something Else
|
|
|
|
|
|
|
|
ec2_instance:
|
|
|
|
|
|
|
|
... params ...
|
|
|
|
|
|
|
|
|
|
|
|
AWS Permissions for Integration Tests
|
|
|
|
AWS Permissions for Integration Tests
|
|
|
|
-------------------------------------
|
|
|
|
-------------------------------------
|
|
|
|