Обновить ansible/deploy_all.yml
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
- name: Step 1 - Terraform Provisioning
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: false
|
||||
gather_facts: true # Включаем сбор фактов, чтобы знать домашнюю директорию
|
||||
tasks:
|
||||
- name: Create terraform mirror config locally
|
||||
- name: Create terraform mirror config in /tmp
|
||||
copy:
|
||||
dest: "{{ playbook_dir }}/../terraform/.terraformrc" # Кладем прямо в папку с кодом
|
||||
dest: "/tmp/.terraformrc"
|
||||
content: |
|
||||
provider_installation {
|
||||
network_mirror {
|
||||
@@ -24,8 +24,8 @@
|
||||
force_init: true
|
||||
init_reconfigure: true
|
||||
environment:
|
||||
# Указываем Terraform искать конфиг именно здесь
|
||||
TF_CLI_CONFIG_FILE: "{{ playbook_dir }}/../terraform/.terraformrc"
|
||||
# Используем жесткий абсолютный путь
|
||||
TF_CLI_CONFIG_FILE: "/tmp/.terraformrc"
|
||||
|
||||
- name: Wait for SSH to be ready
|
||||
wait_for:
|
||||
|
||||
Reference in New Issue
Block a user