Add kpm role

This commit is contained in:
ant31
2016-05-02 17:07:03 +02:00
committed by Smana
parent 309d6a49b6
commit cd2847c1b9
3 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
kpm_registry: "https://api.kpm.sh"
kpm_namespace: "default"
kpm_packages: []

View File

@@ -0,0 +1,9 @@
- 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)}}"
name: "{{item.name}}"
with_items: "{{kpm_packages}}"
register: kpmresults