mongodb community operator deployment
This commit is contained in:
@@ -6,43 +6,46 @@
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: Read global default values
|
||||
include_vars:
|
||||
file: ../vars/default.yml
|
||||
|
||||
- name: Read cluster default values
|
||||
include_vars:
|
||||
file: ../vars/k8s_cluster/cluster_vars.yml
|
||||
|
||||
- name: base install block
|
||||
when: inventory_hostname in (groups['controller'] + groups['worker'])
|
||||
block:
|
||||
- name: Prepare Debian System
|
||||
import_tasks: ../tasks/k8s_cluster/system/prepare_debian_system.yml
|
||||
|
||||
- name: Setup k8s Cluster
|
||||
import_tasks: ../tasks/k8s_cluster/kubernetes/setupK8sCluster.yml
|
||||
|
||||
- name : Install linkerd Service Mesh
|
||||
import_tasks: ../tasks/k8s_cluster/serviceMesh/installLinkerd.yml
|
||||
|
||||
- name: Setup Storage
|
||||
import_tasks: ../tasks/k8s_cluster/storage/setupStorage.yml
|
||||
|
||||
- name: base install block
|
||||
when: inventory_hostname in groups['controller']
|
||||
block:
|
||||
- name: install Helm3
|
||||
import_tasks: ../tasks/k8s_cluster/helm/install_helm3.yml
|
||||
|
||||
# - name: Read global default values
|
||||
# include_vars:
|
||||
# file: ../vars/default.yml
|
||||
#
|
||||
# - name: Read cluster default values
|
||||
# include_vars:
|
||||
# file: ../vars/k8s_cluster/cluster_vars.yml
|
||||
#
|
||||
# - name: base install block
|
||||
# when: inventory_hostname in (groups['controller'] + groups['worker'])
|
||||
# block:
|
||||
# - name: Prepare Debian System
|
||||
# import_tasks: ../tasks/k8s_cluster/system/prepare_debian_system.yml
|
||||
#
|
||||
# - name: Setup k8s Cluster
|
||||
# import_tasks: ../tasks/k8s_cluster/kubernetes/setupK8sCluster.yml
|
||||
#
|
||||
# - name : Install linkerd Service Mesh
|
||||
# import_tasks: ../tasks/k8s_cluster/serviceMesh/installLinkerd.yml
|
||||
#
|
||||
# - name: Setup Storage
|
||||
# import_tasks: ../tasks/k8s_cluster/storage/setupStorage.yml
|
||||
#
|
||||
# - name: base install block
|
||||
# when: inventory_hostname in groups['controller']
|
||||
# block:
|
||||
# - name: install Helm3
|
||||
# import_tasks: ../tasks/k8s_cluster/helm/install_helm3.yml
|
||||
#
|
||||
- name: base install block controller_init
|
||||
when: inventory_hostname in groups['controller_init']
|
||||
block:
|
||||
- name: Install MetalLB
|
||||
import_tasks: ../tasks/k8s_cluster/loadbalancer/install_metallb.yml
|
||||
# - name: Install MetalLB
|
||||
# import_tasks: ../tasks/k8s_cluster/loadbalancer/install_metallb.yml
|
||||
#
|
||||
# - name: install nginx ingress
|
||||
# import_tasks: ../tasks/k8s_cluster/ingress/install_nginx_ingress.yml
|
||||
#
|
||||
# - name: Install cert-manager
|
||||
# import_tasks: ../tasks/k8s_cluster/cert_manager/install_cert_manager.yml
|
||||
|
||||
- name: install nginx ingress
|
||||
import_tasks: ../tasks/k8s_cluster/ingress/install_nginx_ingress.yml
|
||||
|
||||
- name: Install cert-manager
|
||||
import_tasks: ../tasks/k8s_cluster/cert_manager/install_cert_manager.yml
|
||||
- name: Install mongodb
|
||||
import_tasks: ../tasks/k8s_cluster/mongodb/install_mongodb.yml
|
||||
Reference in New Issue
Block a user