ca9ea097df
Migrate older inline= syntax to pure yml syntax for module args as to be consistant with most of the rest of the tasks Cleanup some spacing in various files Rename some files named yaml to yml for consistancy
20 lines
633 B
YAML
20 lines
633 B
YAML
---
|
|
- name: install kpm
|
|
pip:
|
|
name: "kpm"
|
|
state: "present"
|
|
version: "0.16.1"
|
|
when: kpm_packages | length > 0
|
|
|
|
- name: manage kubernetes applications
|
|
kpm:
|
|
namespace: "{{item.namespace | default(kpm_namespace | default('default'))}}"
|
|
registry: "{{item.registry | default(kpm_registry | default('https://api.kpm.sh'))}}"
|
|
state: "{{item.state | default(omit)}}"
|
|
version: "{{item.version | default(omit)}}"
|
|
variables: "{{item.variables | default(omit)}}"
|
|
name: "{{item.name}}"
|
|
with_items: "{{kpm_packages}}"
|
|
register: kpmresults
|
|
environment:
|
|
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
|