You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. ---
  2. - name: "Kibana | Write Kibana deployment"
  3. template:
  4. src: kibana-deployment.yml.j2
  5. dest: "{{ kube_config_dir }}/kibana-deployment.yaml"
  6. register: kibana_deployment_manifest
  7. - name: "Kibana | Create Kibana deployment"
  8. kube:
  9. filename: "{{kube_config_dir}}/kibana-deployment.yaml"
  10. kubectl: "{{bin_dir}}/kubectl"
  11. name: "kibana-logging"
  12. namespace: "{{system_namespace}}"
  13. resource: "rc"
  14. state: "{{ item | ternary('latest','present') }}"
  15. with_items: "{{ kibana_deployment_manifest.changed }}"
  16. run_once: true
  17. - name: "Kibana | Write Kibana service "
  18. template:
  19. src: kibana-service.yml.j2
  20. dest: "{{ kube_config_dir }}/kibana-service.yaml"
  21. register: kibana_service_manifest
  22. - name: "Kibana | Create Kibana service"
  23. kube:
  24. filename: "{{kube_config_dir}}/kibana-service.yaml"
  25. kubectl: "{{bin_dir}}/kubectl"
  26. name: "kibana-logging"
  27. namespace: "{{system_namespace}}"
  28. resource: "svc"
  29. state: "{{ item | ternary('latest','present') }}"
  30. with_items: "{{ kibana_service_manifest.changed }}"
  31. run_once: true