2019-02-23 09:23:41 -08:00
|
|
|
- name: Prepare infrastructure
|
2019-06-05 06:04:33 -07:00
|
|
|
hosts: all
|
2019-05-15 05:23:27 -07:00
|
|
|
tasks:
|
|
|
|
- block:
|
|
|
|
- include_role:
|
|
|
|
name: check
|
|
|
|
- include_role:
|
|
|
|
name: "{{ item }}"
|
|
|
|
with_items:
|
|
|
|
- s3
|
|
|
|
- dynamodb
|
2019-06-05 06:04:33 -07:00
|
|
|
when: backend | bool
|
2019-05-15 05:23:27 -07:00
|
|
|
- include_role:
|
|
|
|
name: main_infra
|
2019-06-05 06:04:33 -07:00
|
|
|
when: inventory_hostname == groups[group_names[0]][0]
|
2019-05-15 05:23:27 -07:00
|
|
|
always:
|
|
|
|
- include_role:
|
|
|
|
name: s3_config
|
|
|
|
when: backend|bool == true and upload_config_to_s3|bool == true
|
|
|
|
- include_role:
|
|
|
|
name: s3_debug
|
|
|
|
when: backend|bool == true and upload_debug_info_to_s3|bool == true
|