--- ### tags: ### prometheus ### argo-cd - name: Add prometheus-community chart repo kubernetes.core.helm_repository: name: prometheus-community repo_url: "https://prometheus-community.github.io/helm-charts" when: - inventory_hostname == groups['kube-master'][0] tags: - prometheus # TODO # https://stackoverflow.com/questions/65806507/how-to-change-kube-proxy-config # https://stackoverflow.com/questions/65901186/kube-prometheus-stack-issue-scraping-metrics - name: Deploy kube-prometheus-stack inside monitoring namespace kubernetes.core.helm: name: prometheus chart_ref: prometheus-community/kube-prometheus-stack release_namespace: monitoring create_namespace: true when: - inventory_hostname == groups['kube-master'][0] tags: - prometheus - name: Add argo-cd chart repo kubernetes.core.helm_repository: name: argo-cd repo_url: "https://argoproj.github.io/argo-helm" when: - inventory_hostname == groups['kube-master'][0] tags: - argo-cd - name: Deploy Argo-CD inside argo-cd namespace kubernetes.core.helm: name: argo-cd chart_ref: argo-cd/argo-cd release_namespace: argo-cd create_namespace: true when: - inventory_hostname == groups['kube-master'][0] tags: - argo-cd