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"]