list item and copy template
This commit is contained in:
parent
8008b025d0
commit
4eee20f63f
@ -1,4 +1,5 @@
|
||||
project_terraform: "/home/valentin/terraform"
|
||||
project_backend: "/home/valentin/k8s_backend"
|
||||
region_k8s: "fr-par"
|
||||
project_name_tf: "terraform-test"
|
||||
quarkus_project: "covas-quarkus"
|
||||
@ -8,4 +9,11 @@ mailer_from: "valczebackup@gmail.com"
|
||||
mailer_port: "587"
|
||||
|
||||
port: 8083
|
||||
targetPort: 8080
|
||||
targetPort: 8080
|
||||
|
||||
|
||||
backend_yaml:
|
||||
- backend-deployment
|
||||
- backend-service
|
||||
- env-configmap
|
||||
- secret
|
15
scaleway-k8s/tasks/deploy-backend.yml
Normal file
15
scaleway-k8s/tasks/deploy-backend.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
# tasks file for create cluster k8s via terraform
|
||||
|
||||
- name: Create directory {{ project_terraform }}
|
||||
file:
|
||||
path: "{{ project_backend }}"
|
||||
state: directory
|
||||
|
||||
- name: Copy backend k8s yaml
|
||||
template:
|
||||
src: "{{ item }}.tf.j2"
|
||||
dest: "{{ project_backend }}/{{ item }}.yaml"
|
||||
with_items: "{{ backend_yaml }}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user