list item and copy template

This commit is contained in:
2022-12-10 15:24:35 +01:00
parent 8008b025d0
commit 4eee20f63f
2 changed files with 24 additions and 1 deletions

View 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 }}"