copy kubeconfig

This commit is contained in:
Valentin CZERYBA 2022-12-10 20:30:25 +01:00
parent 11d0273ac1
commit 369aed9ea1
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
project_terraform: "/home/valentin/terraform" project_terraform: "/home/valentin/terraform"
project_backend: "/home/valentin/k8s_backend" project_backend: "/home/valentin/k8s_backend"
project_kubeconfig: "/home/valentin/.kube/config"
region_k8s: "fr-par" region_k8s: "fr-par"
project_name_tf: "terraform-test" project_name_tf: "terraform-test"
quarkus_project: "covas-quarkus" quarkus_project: "covas-quarkus"

View File

@ -19,3 +19,7 @@
when: item.name == "{{ project_name_tf }}" when: item.name == "{{ project_name_tf }}"
with_items: "{{ (output.content |from_json).clusters }}" with_items: "{{ (output.content |from_json).clusters }}"
- name: Copy kubeconfig
copy:
src: "{{ project_terraform }}/kubeconfig"
dest: "{{ project_kubeconfig }}"