Fix bug with incorrect db_subnet. Also add first retry after fail at TF due to diffs do not match bug

This commit is contained in:
Arsenii Petrovich 2019-02-27 16:32:13 +03:00
parent bb3604b74f
commit a11ca1844d
3 changed files with 9 additions and 2 deletions

View File

@ -26,7 +26,7 @@ instance_type: "m5.large"
## VPC containing Blockscout resources will be created as following:
vpc_cidr: "10.0.0.0/16"
public_subnet_cidr: "10.0.0.0/24"
db_subnet_cidr: "10.0.1.0/24"
db_subnet_cidr: "10.0.1.0/16"
## Internal DNS zone will looks like:
dns_zone_name: "poa.internal"

View File

@ -1 +0,0 @@
backend: true

View File

@ -0,0 +1 @@
../../main_infra/defaults/main.yml

View File

@ -58,6 +58,13 @@
args:
chdir: "roles/main_infra/files"
when: user_answer.user_input|bool == True
ignore_errors: True
- name: Ensure Terraform resources being provisioned
shell: "echo yes | {{ terraform_location }} apply"
args:
chdir: "roles/main_infra/files"
when: user_answer.user_input|bool == True
- name: Terraform output info into variable
shell: "{{ terraform_location }} output"