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