update roles for ansible 6.0.0
This commit is contained in:
parent
9d5478635b
commit
e27478be4f
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -1,5 +1,5 @@
|
||||
- name: Add Helm repositories
|
||||
community.kubernetes.helm_repository:
|
||||
kubernetes.core.helm_repository:
|
||||
name: "{{ item.name }}"
|
||||
repo_url: "{{ item.url }}"
|
||||
loop:
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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 }}"
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
@ -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') }}"
|
||||
|
Loading…
Reference in New Issue
Block a user