Templates (even without actual templating inside) should have j2 extension but should not be rendered with j2 extension
This commit is contained in:
parent
36e8683cf5
commit
d3c0fe1fcb
5 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
- name: Create dnsmasq RBAC manifests
|
- name: Create dnsmasq RBAC manifests
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}.j2"
|
||||||
dest: "{{ kube_config_dir }}/{{ item }}"
|
dest: "{{ kube_config_dir }}/{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "dnsmasq-clusterrolebinding.yml"
|
- "dnsmasq-clusterrolebinding.yml"
|
||||||
|
@ -74,12 +74,12 @@
|
||||||
|
|
||||||
- name: Create dnsmasq manifests
|
- name: Create dnsmasq manifests
|
||||||
template:
|
template:
|
||||||
src: "{{item.file}}"
|
src: "{{item.file}}.j2"
|
||||||
dest: "{{kube_config_dir}}/{{item.file}}"
|
dest: "{{kube_config_dir}}/{{item.file}}"
|
||||||
with_items:
|
with_items:
|
||||||
- {name: dnsmasq, file: dnsmasq-deploy.yml, type: deployment}
|
- {name: dnsmasq, file: dnsmasq-deploy.yml, type: deployment}
|
||||||
- {name: dnsmasq, file: dnsmasq-svc.yml, type: svc}
|
- {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
|
register: manifests
|
||||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
Loading…
Reference in a new issue