aboutsummaryrefslogtreecommitdiff
path: root/roles/pihole/tasks/k8s.yaml
blob: a4fcb8146c463b6127ce44813f9c3ea4c2700d6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: Deploy PiHole
  kubernetes.core.helm:
    name: pihole
    chart_ref: "{{ lookup('env', 'PWD') }}/roles/pihole/files/pihole"
    namespace: default
    state: "{%- if pihole.enabled -%} present {%- else -%} absent {%- endif -%}"
    values:
      replicas: "{{ pihole.replicas }}"
      image: "{{ pihole.image }}"
      version: "{{ pihole.version }}"
      nfs:
        server: "{{ nfs.server }}"
        path: "{{ nfs.path }}"
  delegate_to: localhost
  run_once: true