Добавить ansible/deploy_all.yml
This commit is contained in:
19
ansible/deploy_all.yml
Normal file
19
ansible/deploy_all.yml
Normal 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
|
||||||
Reference in New Issue
Block a user