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
633 B

  1. ---
  2. - name: install kpm
  3. pip:
  4. name: "kpm"
  5. state: "present"
  6. version: "0.16.1"
  7. when: kpm_packages | length > 0
  8. - name: manage kubernetes applications
  9. kpm:
  10. namespace: "{{item.namespace | default(kpm_namespace | default('default'))}}"
  11. registry: "{{item.registry | default(kpm_registry | default('https://api.kpm.sh'))}}"
  12. state: "{{item.state | default(omit)}}"
  13. version: "{{item.version | default(omit)}}"
  14. variables: "{{item.variables | default(omit)}}"
  15. name: "{{item.name}}"
  16. with_items: "{{kpm_packages}}"
  17. register: kpmresults
  18. environment:
  19. PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"