ansible/roles/adguard-home/tasks/main.yaml

33 lines
1.2 KiB
YAML
Raw Normal View History

2021-01-09 17:54:42 +00:00
- name: Request cert for Adguard Home
k8s:
state: present
definition:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: "{{ adguard_dns_name | default('dns.' + domain) }}-crt"
namespace: "{{ adguard_namespace | default(namespace) }}"
spec:
secretName: "{{ adguard_dns_name | default('dns.' + domain) }}-secret"
dnsNames:
- "{{ adguard_dns_name | default('dns.' + domain) }}"
issuerRef:
name: letsencrypt-prod
# We can reference ClusterIssuers by changing the kind here.
# The default value is Issuer (i.e. a locally namespaced Issuer)
kind: ClusterIssuer
group: cert-manager.io
- set_fact:
adguard_combined_values: "{{ adguard_default_values | combine(adguard_values, recursive=true) }}"
- name: Deploy Adguard Home
2022-07-12 13:48:14 +00:00
kubernetes.core.helm:
2021-01-09 17:54:42 +00:00
create_namespace: true
release_namespace: "{{ adguard_namespace | default(namespace) }}"
release_name: "{{ adguard_name | default('adguard') }}"
chart_ref: "{{ adguard_chart | default('ghp/adguard-home') }}"
chart_version: "{{ adguard_version | default(omit) }}"
release_values: "{{ adguard_combined_values | from_yaml }}"