Обновить ansible/deploy_all.yml
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
- name: Step 1 - Terraform Provisioning
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: true # Это важно, чтобы получить путь к HOME
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Create terraform mirror config in HOME
|
||||
copy:
|
||||
@@ -18,13 +18,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
- name: Cleanup old terraform data
|
||||
file:
|
||||
path: "{{ playbook_dir }}/../terraform/.terraform"
|
||||
state: absent
|
||||
|
||||
- name: Run Terraform Apply
|
||||
community.general.terraform:
|
||||
project_path: "{{ playbook_dir }}/../terraform"
|
||||
state: present
|
||||
force_init: true
|
||||
init_reconfigure: true # Это уберет ошибку "Backend initialization required"
|
||||
# Environment больше не нужен, Terraform сам найдет ~/.terraformrc
|
||||
|
||||
- name: Wait for SSH to be ready
|
||||
wait_for:
|
||||
|
||||
Reference in New Issue
Block a user