Templates (even without actual templating inside) should have j2 extension but should not be rendered with j2 extension

This commit is contained in:
Erwan Miran 2018-08-13 09:51:26 +02:00
parent 36e8683cf5
commit d3c0fe1fcb
5 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@
- name: Create dnsmasq RBAC manifests
template:
src: "{{ item }}"
src: "{{ item }}.j2"
dest: "{{ kube_config_dir }}/{{ item }}"
with_items:
- "dnsmasq-clusterrolebinding.yml"
@ -74,12 +74,12 @@
- name: Create dnsmasq manifests
template:
src: "{{item.file}}"
src: "{{item.file}}.j2"
dest: "{{kube_config_dir}}/{{item.file}}"
with_items:
- {name: dnsmasq, file: dnsmasq-deploy.yml, type: deployment}
- {name: dnsmasq, file: dnsmasq-svc.yml, type: svc}
- {name: dnsmasq-autoscaler, file: dnsmasq-autoscaler.yml.j2, type: deployment}
- {name: dnsmasq-autoscaler, file: dnsmasq-autoscaler.yml, type: deployment}
register: manifests
delegate_to: "{{ groups['kube-master'][0] }}"
run_once: true