blockscout-terraform/attach_existing_rds.yml

26 lines
866 B
YAML
Raw Permalink Normal View History

- name: Attach existing RDS instance
hosts: localhost
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
- include_role:
name: attach_existing_rds
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
2019-02-26 10:53:54 -08:00
vars_prompt:
- name: "confirmation"
prompt: "Are you sure you want to attach the existing RDS? If backend variable is set to True, this action also includes creating the S3 and DynamoDB table for storing Terraform state files."
2019-02-26 10:53:54 -08:00
default: False