Fix variable references
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-07-18 14:07:12 +02:00
parent 7c2ff54019
commit 1746af9b9d
3 changed files with 32 additions and 30 deletions

View File

@ -16,11 +16,12 @@
- name: Configure Traefik dashboard ingress - name: Configure Traefik dashboard ingress
ansible.builtin.template: ansible.builtin.template:
src: ingressroute.j2 src: ingressroute.j2
dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}-manifest.yaml dest: /var/lib/rancher/k3s/server/manifests/{{ _template.name }}-manifest.yaml
owner: root owner: root
group: root group: root
mode: 0600 mode: 0600
vars: vars:
_template:
name: traefik-dashboard name: traefik-dashboard
namespace: kube-system namespace: kube-system
config: |2 config: |2
@ -157,11 +158,12 @@
- name: Configure additional SSH ingress - name: Configure additional SSH ingress
ansible.builtin.template: ansible.builtin.template:
src: ingressroutetcp.j2 src: ingressroutetcp.j2
dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}-manifest.yaml dest: /var/lib/rancher/k3s/server/manifests/{{ _template.name }}-manifest.yaml
owner: root owner: root
group: root group: root
mode: 0600 mode: 0600
vars: vars:
_template:
name: gitea-ssh name: gitea-ssh
namespace: gitea namespace: gitea
config: |2 config: |2

View File

@ -1,7 +1,7 @@
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: {{ item.name }} name: {{ _template.name }}
namespace: {{ item.namespace }} namespace: {{ _template.namespace }}
spec: spec:
{{ item.config }} {{ _template.config }}

View File

@ -1,7 +1,7 @@
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP kind: IngressRouteTCP
metadata: metadata:
name: {{ item.name }} name: {{ _template.name }}
namespace: {{ item.namespace }} namespace: {{ _template.namespace }}
spec: spec:
{{ item.config }} {{ _template.config }}