From 11d0273ac102ac5efe49f00dd25708970db42146 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 10 Dec 2022 20:14:13 +0100 Subject: [PATCH] fix copy kubeconfig files --- scaleway-k8s/tasks/deploy-backend.yml | 2 +- scaleway-k8s/tasks/main.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scaleway-k8s/tasks/deploy-backend.yml b/scaleway-k8s/tasks/deploy-backend.yml index 54d87aa..418723a 100644 --- a/scaleway-k8s/tasks/deploy-backend.yml +++ b/scaleway-k8s/tasks/deploy-backend.yml @@ -8,7 +8,7 @@ - name: Copy backend k8s yaml template: - src: "{{ item }}.tf.j2" + src: "{{ item }}.yaml.j2" dest: "{{ project_backend }}/{{ item }}.yaml" with_items: "{{ backend_yaml }}" diff --git a/scaleway-k8s/tasks/main.yml b/scaleway-k8s/tasks/main.yml index 80fb2c6..22e162a 100644 --- a/scaleway-k8s/tasks/main.yml +++ b/scaleway-k8s/tasks/main.yml @@ -10,6 +10,10 @@ import_tasks: kubeconfig.yml tags: ["create-cluster", "kubeconfig"] +- name: Deploy a API backend + import_tasks: deploy-backend.yml + tags: ["deploy-api"] + - name: Destroy cluster k8s scaleway via terraform import_tasks: destroy-cluster.yml tags: ["destroy-cluster"]