From 75d1eb088ea4c3495a172f229596ab8f848b3518 Mon Sep 17 00:00:00 2001 From: ogrechko Date: Sun, 28 Dec 2025 00:22:42 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=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 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ansible/deploy_all.yml diff --git a/ansible/deploy_all.yml b/ansible/deploy_all.yml new file mode 100644 index 0000000..01666f1 --- /dev/null +++ b/ansible/deploy_all.yml @@ -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 \ No newline at end of file