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.

25 lines
782 B

8 years ago
8 years ago
  1. - name: Install pip
  2. action:
  3. module: "{{ ansible_pkg_mgr }}"
  4. name: "python-pip"
  5. state: latest
  6. when: ansible_os_family != "CoreOS" and kpm_packages | length > 0
  7. - name: install kpm
  8. pip:
  9. name: "kpm"
  10. state: "latest"
  11. when: kpm_packages | length > 0
  12. - name: manage kubernetes applications
  13. kpm:
  14. namespace: "{{item.namespace | default(kpm_namespace | default('default'))}}"
  15. registry: "{{item.registry | default(kpm_registry | default('https://api.kpm.sh'))}}"
  16. state: "{{item.state | default(omit)}}"
  17. version: "{{item.version | default(omit)}}"
  18. variables: "{{item.variables | default(omit)}}"
  19. name: "{{item.name}}"
  20. with_items: "{{kpm_packages}}"
  21. register: kpmresults
  22. environment:
  23. PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"