diff --git a/roles/adguard-home/tasks/main.yaml b/roles/adguard-home/tasks/main.yaml index e1ae581..bb3baed 100644 --- a/roles/adguard-home/tasks/main.yaml +++ b/roles/adguard-home/tasks/main.yaml @@ -22,7 +22,7 @@ adguard_combined_values: "{{ adguard_default_values | combine(adguard_values, recursive=true) }}" - name: Deploy Adguard Home - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ adguard_namespace | default(namespace) }}" release_name: "{{ adguard_name | default('adguard') }}" diff --git a/roles/bitwarden/tasks/main.yaml b/roles/bitwarden/tasks/main.yaml index e956eed..e133afb 100644 --- a/roles/bitwarden/tasks/main.yaml +++ b/roles/bitwarden/tasks/main.yaml @@ -8,7 +8,7 @@ bitwarden_combined_values: "{{ bitwarden_default_values | combine(bitwarden_values, recursive=true) }}" - name: Deploy Bitwarden - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ bitwarden_namespace | default(namespace) }}" release_name: "{{ bitwarden_name | default('bitwarden') }}" diff --git a/roles/cert-manager/tasks/main.yaml b/roles/cert-manager/tasks/main.yaml index 83b8a66..6cd7e99 100644 --- a/roles/cert-manager/tasks/main.yaml +++ b/roles/cert-manager/tasks/main.yaml @@ -2,7 +2,7 @@ cert_manager_combined_values: "{{ cert_manager_default_values | combine(cert_manager_values, recursive=true) }}" - name: Deploy Cert-manager {{ cert_manager_version }} - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ cert_manager_namespace | default('cert-manager') }}" release_name: "{{ cert_manager_name | default('cert-manager') }}" diff --git a/roles/chartmuseum/tasks/main.yaml b/roles/chartmuseum/tasks/main.yaml index a8fcf8a..9efbdb2 100644 --- a/roles/chartmuseum/tasks/main.yaml +++ b/roles/chartmuseum/tasks/main.yaml @@ -2,7 +2,7 @@ chartmuseum_combined_values: "{{ chartmuseum_default_values | combine(chartmuseum_values, recursive=true) }}" - name: Deploy ChartMuseum - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ chartmuseum_namespace | default(namespace) }}" release_name: "{{ chartmuseum_name | default('chartmuseum') }}" diff --git a/roles/dovecot/tasks/main.yaml b/roles/dovecot/tasks/main.yaml index 692e79a..8902c3d 100644 --- a/roles/dovecot/tasks/main.yaml +++ b/roles/dovecot/tasks/main.yaml @@ -2,7 +2,7 @@ dovecot_combined_values: "{{ dovecot_default_values | combine(dovecot_values, recursive=true) }}" - name: Deploy Dovecot - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ dovecot_namespace | default(mail_namespace) | default(namespace) }}" release_name: "{{ dovecot_name | default('dovecot') }}" diff --git a/roles/drone/tasks/main.yaml b/roles/drone/tasks/main.yaml index f5dfea2..54367cd 100644 --- a/roles/drone/tasks/main.yaml +++ b/roles/drone/tasks/main.yaml @@ -11,7 +11,7 @@ drone_runner_kube_combined_values: "{{ drone_runner_kube_default_values | combine(drone_runner_kube_values, recursive=true) }}" - name: Deploy Drone Server - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ drone_namespace | default(namespace) }}" release_name: "{{ drone_name | default('drone') }}" @@ -21,7 +21,7 @@ wait: true - name: Deploy Drone Runner Kube - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ drone_runner_kube_namespace | default(namespace) }}" release_name: "{{ drone_runner_kube_name | default('drone-runner-kube') }}" diff --git a/roles/external-dns/tasks/main.yaml b/roles/external-dns/tasks/main.yaml index 5642059..c498c20 100644 --- a/roles/external-dns/tasks/main.yaml +++ b/roles/external-dns/tasks/main.yaml @@ -2,7 +2,7 @@ external_dns_combined_values: "{{ external_dns_default_values | combine(external_dns_values, recursive=true) }}" - name: Deploy external DNS - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ external_dns_namespace | default(dns_namespace) | default(namespace) }}" release_name: "{{ external_dns_name | default(namespace + '-external-dns') }}" diff --git a/roles/external-ingress-nginx/tasks/main.yaml b/roles/external-ingress-nginx/tasks/main.yaml index 91ce96c..a0fed3c 100644 --- a/roles/external-ingress-nginx/tasks/main.yaml +++ b/roles/external-ingress-nginx/tasks/main.yaml @@ -2,7 +2,7 @@ external_ingress_nginx_combined_values: "{{ external_ingress_nginx_default_values | combine(external_ingress_nginx_values, recursive=true) }}" - name: Deploy external Nginx Ingress - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ external_ingress_nginx_namespace | default(ingress_namespace) | default(namespace) }}" release_name: "{{ external_ingress_nginx_name | default(namespace + '-external-ingress-nginx') }}" diff --git a/roles/gitea/tasks/main.yaml b/roles/gitea/tasks/main.yaml index 34223a2..20145b8 100644 --- a/roles/gitea/tasks/main.yaml +++ b/roles/gitea/tasks/main.yaml @@ -22,7 +22,7 @@ when: gitea_publish_web - name: Deploy Nginx Ingress for Gitea - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ gitea_ingress_nginx_namespace | default(namespace) }}" release_name: "{{ gitea_ingress_nginx_release_name | default(namespace + '-gitea-ingress-nginx') }}" @@ -32,7 +32,7 @@ wait: true - name: Deploy DNS for Gitea - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ gitea_dns_namespace | default(namespace) }}" release_name: "{{ gitea_dns_relase_name | default(namespace + '-gitea-internal-dns') }}" @@ -43,7 +43,7 @@ when: gitea_publish_web == false - name: Deploy Gitea - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ gitea_namespace | default(namespace) }}" release_name: "{{ gitea_release_name | default(namespace + '-gitea') }}" diff --git a/roles/harbor/tasks/main.yaml b/roles/harbor/tasks/main.yaml index aa21140..e9be53b 100644 --- a/roles/harbor/tasks/main.yaml +++ b/roles/harbor/tasks/main.yaml @@ -8,7 +8,7 @@ harbor_combined_values: "{{ harbor_default_values | combine(harbor_values, recursive=true) }}" - name: Deploy Harbor - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ harbor_namespace | default(namespace) }}" release_name: "{{ harbor_name | default('harbor') }}" diff --git a/roles/helm-repos/tasks/main.yaml b/roles/helm-repos/tasks/main.yaml index 5c9d211..df1890a 100644 --- a/roles/helm-repos/tasks/main.yaml +++ b/roles/helm-repos/tasks/main.yaml @@ -1,5 +1,5 @@ - name: Add Helm repositories - community.kubernetes.helm_repository: + kubernetes.core.helm_repository: name: "{{ item.name }}" repo_url: "{{ item.url }}" loop: diff --git a/roles/internal-dns/tasks/main.yaml b/roles/internal-dns/tasks/main.yaml index d352026..f2bc5c2 100644 --- a/roles/internal-dns/tasks/main.yaml +++ b/roles/internal-dns/tasks/main.yaml @@ -2,7 +2,7 @@ internal_dns_combined_values: "{{ internal_dns_default_values | combine(internal_dns_values, recursive=true) }}" - name: Deploy internal DNS - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ internal_dns_namespace | default(dns_namespace) | default(namespace) }}" release_name: "{{ internal_dns_name | default(namespace + '-internal-dns') }}" diff --git a/roles/internal-ingress-nginx/tasks/main.yaml b/roles/internal-ingress-nginx/tasks/main.yaml index c663773..1d6ac75 100644 --- a/roles/internal-ingress-nginx/tasks/main.yaml +++ b/roles/internal-ingress-nginx/tasks/main.yaml @@ -2,7 +2,7 @@ internal_ingress_nginx_combined_values: "{{ internal_ingress_nginx_default_values | combine(internal_ingress_nginx_values, recursive=true) }}" - name: Deploy internal Nginx Ingress - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ internal_ingress_nginx_namespace | default(ingress_namespace) | default(namespace) }}" release_name: "{{ internal_ingress_nginx_name | default(namespace + '-internal-ingress-nginx') }}" diff --git a/roles/local-dns/tasks/main.yaml b/roles/local-dns/tasks/main.yaml index df1e261..2ed06c8 100644 --- a/roles/local-dns/tasks/main.yaml +++ b/roles/local-dns/tasks/main.yaml @@ -2,7 +2,7 @@ local_dns_combined_values: "{{ local_dns_default_values | combine(local_dns_values, recursive=true) }}" - name: Deploy local DNS - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ local_dns_namespace | default(dns_namespace) | default(namespace) }}" release_name: "{{ local_dns_name | default(namespace + '-local-dns') }}" diff --git a/roles/local-ingress-nginx/tasks/main.yaml b/roles/local-ingress-nginx/tasks/main.yaml index 1d1a524..8d0ab84 100644 --- a/roles/local-ingress-nginx/tasks/main.yaml +++ b/roles/local-ingress-nginx/tasks/main.yaml @@ -2,7 +2,7 @@ local_ingress_nginx_combined_values: "{{ local_ingress_nginx_default_values | combine(local_ingress_nginx_values, recursive=true) }}" - name: Deploy local Nginx Ingress - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ local_ingress_nginx_namespace | default(ingress_namespace) | default(namespace) }}" release_name: "{{ local_ingress_nginx_name | default(namespace + '-local-ingress-nginx') }}" diff --git a/roles/mastodon/tasks/main.yaml b/roles/mastodon/tasks/main.yaml index 3142ab7..8f92f94 100644 --- a/roles/mastodon/tasks/main.yaml +++ b/roles/mastodon/tasks/main.yaml @@ -8,7 +8,7 @@ mastodon_combined_values: "{{ mastodon_default_values | combine(mastodon_values, recursive=true) }}" - name: Deploy Mastodon - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ mastodon_namespace | default(namespace) }}" release_name: "{{ mastodon_name | default('mastodon') }}" diff --git a/roles/metallb/defaults/main.yaml b/roles/metallb/defaults/main.yaml index ca92e35..45132ec 100644 --- a/roles/metallb/defaults/main.yaml +++ b/roles/metallb/defaults/main.yaml @@ -1,2 +1,65 @@ strict_arp_for_metallb: true metallb_default_values: {} + +metallb_pool_name: "default" +metallb_namespace: "metallb-system" +metallb_bgp_advertisement_name: "local" +metallb_bgp_aggregation_length: 32 +metallb_bgp_localpref: 100 +metallb_bgp_peer_name: "bgppeer" +metallb_bgp_peer_port: 179 +metallb_l2_advertisement_name: "local" + +metallb_bgp_definitions: + metallb_address_pool: | + apiVersion: metallb.io/v1beta1 + kind: IPAddressPool + metadata: + name: "{{ metallb_pool_name }}" + namespace: "{{ metallb_namespace }}" + spec: + addresses: {{ metallb_address_pool }} + + metallb_bgp_advertisement: | + apiVersion: metallb.io/v1beta1 + kind: BGPAdvertisement + metadata: + name: "{{ metallb_bgp_advertisement_name }}" + namespace: "{{ metallb_namespace }}" + spec: + ipAddressPools: + - "{{ metallb_pool_name }}" + aggregationLength: {{ metallb_bgp_aggregation_length }} + localpref: {{ metallb_bgp_localpref }} + + metallb_peer: | + apiVersion: metallb.io/v1beta2 + kind: BGPPeer + metadata: + name: "{{ metallb_bgp_peer_name }}" + namespace: "{{ metallb_namespace }}" + spec: + myASN: {{ metallb_bgp_my_asn }} + peerASN: {{ metallb_bgp_peer_asn }} + peerAddress: {{ metallb_bgp_peer_address }} + peerPort: {{ metallb_bgp_peer_port }} + +metallb_l2_definitions: + metallb_address_pool: | + apiVersion: metallb.io/v1beta1 + kind: IPAddressPool + metadata: + name: "{{ metallb_pool_name }}" + namespace: "{{ metallb_namespace }}" + spec: + addresses: "{{ metallb_address_pool }}" + + metallb_l2_advertisement: | + apiVersion: metallb.io/v1beta1 + kind: L2Advertisement + metadata: + name: "{{ metallb_l2_advertisement_name }}" + namespace: "{{ metallb_namespace }}" + spec: + ipAddressPools: + - "{{ metallb_pool_name }}" diff --git a/roles/metallb/tasks/main.yaml b/roles/metallb/tasks/main.yaml index 61d04b0..eed9ced 100644 --- a/roles/metallb/tasks/main.yaml +++ b/roles/metallb/tasks/main.yaml @@ -2,7 +2,7 @@ metallb_combined_values: "{{ metallb_default_values | combine(metallb_values, recursive=true) }}" - name: Deploy MetalLB - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ metallb_namespace | default('metallb-system') }}" release_name: "{{ metallb_name | default('metallb') }}" @@ -30,3 +30,22 @@ when: - strict_arp_for_metallb - check_strict_arp.changed + +- name: Apply MetalLB L2 definitions + k8s: + state: present + definition: + "{{ item.value }}" + wait: true + loop: "{{ metallb_bgp_definitions | dict2items }}" + when: metallb_advertisement_type == 'L2' + +- name: Apply MetalLB BGP definitions + k8s: + state: present + definition: + "{{ item.value }}" + wait: true + loop: "{{ metallb_bgp_definitions | dict2items }}" + when: metallb_advertisement_type == 'BGP' + diff --git a/roles/metrics-server/tasks/main.yaml b/roles/metrics-server/tasks/main.yaml index 9db9f58..70fb029 100644 --- a/roles/metrics-server/tasks/main.yaml +++ b/roles/metrics-server/tasks/main.yaml @@ -2,7 +2,7 @@ metrics_server_combined_values: "{{ metrics_server_default_values | combine(metrics_server_values, recursive=true) }}" - name: Deploy Metrics server - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ metrics_server_namespace | default('metrics-server') }}" release_name: "{{ metrics_server_name | default('metrics-server') }}" diff --git a/roles/nextcloud/tasks/main.yaml b/roles/nextcloud/tasks/main.yaml index e838c1e..42d9c37 100644 --- a/roles/nextcloud/tasks/main.yaml +++ b/roles/nextcloud/tasks/main.yaml @@ -8,7 +8,7 @@ nextcloud_combined_values: "{{ nextcloud_default_values | combine(nextcloud_values, recursive=true) }}" - name: Deploy Nextcloud - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ nextcloud_namespace | default(namespace) }}" release_name: "{{ nextcloud_name | default('nextcloud') }}" diff --git a/roles/nfs-client-provisioner/tasks/main.yaml b/roles/nfs-client-provisioner/tasks/main.yaml index e70b659..bf7378f 100644 --- a/roles/nfs-client-provisioner/tasks/main.yaml +++ b/roles/nfs-client-provisioner/tasks/main.yaml @@ -2,7 +2,7 @@ nfs_client_provisioner_hdd_combined_values: "{{ nfs_client_provisioner_hdd_default_values | combine(nfs_client_provisioner_hdd_values, recursive=true) }}" - name: Deploy NFS client provisioner for HDD storage - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ nfs_client_provisioner_hdd_namespace | default(nfs_client_provisioner_namespace) | default(namespace) }}" release_name: "{{ nfs_client_provisioner_hdd_name | default('nfs-client-provisioner-hdd') }}" @@ -15,7 +15,7 @@ nfs_client_provisioner_ssd_combined_values: "{{ nfs_client_provisioner_ssd_default_values | combine(nfs_client_provisioner_ssd_values, recursive=true) }}" - name: Deploy NFS client provisioner for SSD storage - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ nfs_client_provisioner_ssd_namespace | default(nfs_client_provisioner_namespace) | default(namespace) }}" release_name: "{{ nfs_client_provisioner_ssd_name | default('nfs-client-provisioner-ssd') }}" diff --git a/roles/opendkim/tasks/main.yaml b/roles/opendkim/tasks/main.yaml index 5feefaf..b4b7288 100644 --- a/roles/opendkim/tasks/main.yaml +++ b/roles/opendkim/tasks/main.yaml @@ -2,7 +2,7 @@ opendkim_combined_values: "{{ opendkim_default_values | combine(opendkim_values, recursive=true) }}" - name: Deploy OpenDKIM - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ opendkim_namespace | default(mail_namespace) | default(namespace) }}" release_name: "{{ opendkim_name | default('opendkim') }}" diff --git a/roles/opendmarc/tasks/main.yaml b/roles/opendmarc/tasks/main.yaml index fd29751..e6f7b03 100644 --- a/roles/opendmarc/tasks/main.yaml +++ b/roles/opendmarc/tasks/main.yaml @@ -2,7 +2,7 @@ opendmarc_combined_values: "{{ opendmarc_default_values | combine(opendmarc_values, recursive=true) }}" - name: Deploy OpenDMARC - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ opendmarc_namespace | default(mail_namespace) | default(namespace) }}" release_name: "{{ opendmarc_name | default('opendmarc') }}" diff --git a/roles/openldap/tasks/main.yaml b/roles/openldap/tasks/main.yaml index 9b39d95..bdf521b 100644 --- a/roles/openldap/tasks/main.yaml +++ b/roles/openldap/tasks/main.yaml @@ -34,7 +34,7 @@ openldap_combined_values: "{{ openldap_default_values | combine(openldap_values, recursive=true) }}" - name: Deploy OpenLDAP - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ openldap_namespace | default(namespace) }}" release_name: "{{ openldap_name | default('openldap') }}" diff --git a/roles/peertube/tasks/main.yaml b/roles/peertube/tasks/main.yaml index c111d27..ca64415 100644 --- a/roles/peertube/tasks/main.yaml +++ b/roles/peertube/tasks/main.yaml @@ -8,7 +8,7 @@ peertube_combined_values: "{{ peertube_default_values | combine(peertube_values, recursive=true) }}" - name: Deploy PeerTube - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ peertube_namespace | default(namespace) }}" release_name: "{{ peertube_name | default('peertube') }}" diff --git a/roles/playmaker/tasks/main.yaml b/roles/playmaker/tasks/main.yaml index 2faea88..f61c3c6 100644 --- a/roles/playmaker/tasks/main.yaml +++ b/roles/playmaker/tasks/main.yaml @@ -2,7 +2,7 @@ playmaker_combined_values: "{{ playmaker_default_values | combine(playmaker_values, recursive=true) }}" - name: Deploy Docker playmaker - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ playmaker_namespace | default(namespace) }}" release_name: "{{ playmaker_name | default('playmaker') }}" diff --git a/roles/postfix/tasks/main.yaml b/roles/postfix/tasks/main.yaml index 7eea785..661c330 100644 --- a/roles/postfix/tasks/main.yaml +++ b/roles/postfix/tasks/main.yaml @@ -2,7 +2,7 @@ postfix_combined_values: "{{ postfix_default_values | combine(postfix_values, recursive=true) }}" - name: Deploy Postfix - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ postfix_namespace | default(mail_namespace) | default(namespace) }}" release_name: "{{ postfix_name | default('postfix') }}" diff --git a/roles/postgres/tasks/main.yaml b/roles/postgres/tasks/main.yaml index 4393053..b40932e 100644 --- a/roles/postgres/tasks/main.yaml +++ b/roles/postgres/tasks/main.yaml @@ -46,7 +46,7 @@ postgres_operator_combined_values: "{{ postgres_operator_default_values | combine(postgres_operator_values, recursive=true) }}" - name: Deploy Postgres-operator - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ postgres_operator_namespace | default(namespace) }}" release_name: "{{ postgres_operator_name | default('postgres-operator') }}" @@ -59,7 +59,7 @@ postgres_operator_ui_combined_values: "{{ postgres_operator_ui_default_values | combine(postgres_operator_ui_values, recursive=true) }}" - name: Deploy Postgres-operator UI - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ postgres_operator_ui_namespace | default(postgres_operator_namespace) | default(namespace) }}" release_name: "{{ postgres_operator_ui_name | default('postgres-operator-ui') }}" diff --git a/roles/pypiserver/tasks/main.yaml b/roles/pypiserver/tasks/main.yaml index e3a5952..3570a0f 100644 --- a/roles/pypiserver/tasks/main.yaml +++ b/roles/pypiserver/tasks/main.yaml @@ -2,7 +2,7 @@ pypiserver_combined_values: "{{ pypiserver_default_values | combine(pypiserver_values, recursive=true) }}" - name: Deploy Docker pypiserver - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ pypiserver_namespace | default(namespace) }}" release_name: "{{ pypiserver_name | default('pypiserver') }}" diff --git a/roles/registry/tasks/main.yaml b/roles/registry/tasks/main.yaml index 8e8dfda..cfad43e 100644 --- a/roles/registry/tasks/main.yaml +++ b/roles/registry/tasks/main.yaml @@ -2,7 +2,7 @@ registry_combined_values: "{{ registry_default_values | combine(registry_values, recursive=true) }}" - name: Deploy Docker registry - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ registry_namespace | default(namespace) }}" release_name: "{{ registry_name | default('docker-registry') }}" diff --git a/roles/roundcube/tasks/main.yaml b/roles/roundcube/tasks/main.yaml index c8534df..6ea5ae6 100644 --- a/roles/roundcube/tasks/main.yaml +++ b/roles/roundcube/tasks/main.yaml @@ -8,7 +8,7 @@ roundcube_combined_values: "{{ roundcube_default_values | combine(roundcube_values, recursive=true) }}" - name: Deploy RoundCube - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ roundcube_namespace | default(mail_namespace) | default(namespace) }}" release_name: "{{ roundcube_name | default('roundcube') }}" diff --git a/roles/rspamd/tasks/main.yaml b/roles/rspamd/tasks/main.yaml index 8ff6b3b..a2d299e 100644 --- a/roles/rspamd/tasks/main.yaml +++ b/roles/rspamd/tasks/main.yaml @@ -2,7 +2,7 @@ rspamd_combined_values: "{{ rspamd_default_values | combine(rspamd_values, recursive=true) }}" - name: Deploy Rspamd - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ rspamd_namespace | default(mail_namespace) | default(namespace) }}" release_name: "{{ rspamd_name | default('rspamd') }}" diff --git a/roles/service-dns/tasks/main.yaml b/roles/service-dns/tasks/main.yaml index 751650f..15b5836 100644 --- a/roles/service-dns/tasks/main.yaml +++ b/roles/service-dns/tasks/main.yaml @@ -2,7 +2,7 @@ service_dns_combined_values: "{{ service_dns_default_values | combine(service_dns_values, recursive=true) }}" - name: Deploy service DNS - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ service_dns_namespace | default(dns_namespace) | default(namespace) }}" release_name: "{{ service_dns_name | default(namespace + '-service-dns') }}" diff --git a/roles/wikijs/tasks/main.yaml b/roles/wikijs/tasks/main.yaml index e8fec59..316f10c 100644 --- a/roles/wikijs/tasks/main.yaml +++ b/roles/wikijs/tasks/main.yaml @@ -8,7 +8,7 @@ wikijs_combined_values: "{{ wikijs_default_values | combine(wikijs_values, recursive=true) }}" - name: Deploy WikiJS - community.kubernetes.helm: + kubernetes.core.helm: create_namespace: true release_namespace: "{{ wikijs_namespace | default(namespace) }}" release_name: "{{ wikijs_name | default('wikijs') }}"