19 lines
558 B
YAML
19 lines
558 B
YAML
- 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 |