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