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.

20 lines
688 B

  1. ---
  2. - name: Kubernetes Apps | Lay down dashboard template
  3. template:
  4. src: "{{ item.file }}.j2"
  5. dest: "{{ kube_config_dir }}/{{ item.file }}"
  6. with_items:
  7. - { file: dashboard.yml, type: deploy, name: kubernetes-dashboard }
  8. register: manifests
  9. when: inventory_hostname == groups['kube-master'][0]
  10. - name: Kubernetes Apps | Start dashboard
  11. kube:
  12. name: "{{ item.item.name }}"
  13. namespace: "{{ dashboard_namespace }}"
  14. kubectl: "{{ bin_dir }}/kubectl"
  15. resource: "{{ item.item.type }}"
  16. filename: "{{ kube_config_dir }}/{{ item.item.file }}"
  17. state: "latest"
  18. with_items: "{{ manifests.results }}"
  19. when: inventory_hostname == groups['kube-master'][0]