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') }}"
|
2023-06-10 03:20:10 +00:00
|
|
|
chart_ref: "{{ adguard_chart_ref }}"
|
2021-01-09 17:54:42 +00:00
|
|
|
chart_version: "{{ adguard_version | default(omit) }}"
|
|
|
|
release_values: "{{ adguard_combined_values | from_yaml }}"
|
|
|
|
|