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.

35 lines
1.1 KiB

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