Partial cherry-pick from b1f5055286
This commit is contained in:
parent
4a6132205e
commit
8350828a11
|
@ -5,12 +5,7 @@
|
|||
file:
|
||||
state: absent
|
||||
path: "{{ item }}"
|
||||
with_fileglob:
|
||||
- "roles/main_infra/files/.terraform"
|
||||
- "roles/main_infra/files/terraform.tfstate.d"
|
||||
- "roles/main_infra/files/main.tfvars"
|
||||
- "roles/main_infra/files/backend.tfvars"
|
||||
- "roles/main_infra/files/terraform.tfplan"
|
||||
with_items:
|
||||
- "log.txt"
|
||||
- "blockscout-*"
|
||||
- "/tmp/files-*"
|
|
@ -6,8 +6,7 @@
|
|||
- name: Check chain names
|
||||
fail:
|
||||
msg: "The chain '{{ item }}' is invalid. It must consist only of the lowercase characters a-z and digits 0-9, and must not more than 5 characters long."
|
||||
when: (item.key | length > 5 or item.key is not match("^[a-z0-9]+$")) and item.key != "all" and item.key != "ungrouped"
|
||||
with_dict: "{{ groups }}"
|
||||
when: chain | length > 5 or chain is not match("^[a-z0-9]+$")
|
||||
|
||||
- name: Check if terraform is installed
|
||||
command: "{{ terraform_location }} --version"
|
||||
|
|
Loading…
Reference in New Issue