Добавить ansible/deploy_all.yml

This commit is contained in:
2025-12-28 00:22:42 +00:00
parent bcdb258668
commit 75d1eb088e

19
ansible/deploy_all.yml Normal file
View File

@@ -0,0 +1,19 @@
- name: Infrastructure Deployment
hosts: localhost
tasks:
- name: Run Terraform Apply
community.general.terraform:
project_path: "./terraform"
state: present
force_init: true
backend_config:
address: "{{ lookup('env', 'TF_HTTP_ADDRESS') }}"
username: "{{ lookup('env', 'TF_HTTP_USERNAME') }}"
password: "{{ lookup('env', 'TF_HTTP_PASSWORD') }}"
- name: Wait for VMs to be ready
pause:
seconds: 30
- name: Kubernetes Cluster Setup
import_playbook: k8s_setup.yml