Add CSI driver

This commit is contained in:
Adrien Reslinger 2020-03-26 14:30:36 +01:00
parent ec79d6ad8f
commit 75306abab3
9 changed files with 157 additions and 0 deletions

22
tasks/csi.yml Normal file
View file

@ -0,0 +1,22 @@
---
- set_fact:
certmanager_csi_state: "present"
when:
- certmanager_csi
- set_fact:
certmanager_csi_state: "absent"
when:
- not certmanager_csi
- name: Cert Manager files version {{ certmanager_version }} need to be {{ certmanager_csi_state }}
k8s:
state: "{{ certmanager_csi_state }}"
context: "{{ my_context }}"
resource_definition: "{{ lookup('files', item) | from_yaml }}"
with_items:
- "csi/csi.cert-manager.io-CSIDriver.yaml"
- "csi/cert-manager-csi-ServiceAccount.yaml"
- "csi/cert-manager-csi-ClusterRole.yaml"
- "csi/cert-manager-csi-ClusterRoleBinding.yaml"
- "csi/cert-manager-csi-DaemonSet.yaml"