123456789101112131415161718192021222324252627282930313233343536373839 |
- ---
- - name: Deploy K8s services
- include_tasks: deploy_k8s_services.yml
- when: "'manager' in group_names"
- tags: install
- - name: Check K8s pods
- include_tasks: check_k8s_pods.yml
- tags: install
- - name: Install community.grafana collection
- command: ansible-galaxy collection install community.grafana
- changed_when: True
- tags: install
- delegate_to: localhost
- when: hostvars['127.0.0.1']['control_plane_status']
- - name: Configure Nginx/Prometheus/Grafana
- include_tasks: configure_nginx_prom_grafana.yml
- when:
- - "'manager' in group_names"
- - grafana_svc_ip != ""
- - grafana_svc_port != ""
- tags: install
|