From 6f2d118874744dcc363762768c5d0aa0185fc9bd Mon Sep 17 00:00:00 2001 From: ogrechko Date: Sun, 28 Dec 2025 08:18:32 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20ansible/deploy=5Fall.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/deploy_all.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/deploy_all.yml b/ansible/deploy_all.yml index 7c71853..e3e8b4e 100644 --- a/ansible/deploy_all.yml +++ b/ansible/deploy_all.yml @@ -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: