Refactor in progress (deploy and upgrade to 0.13)
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adrien Reslinger 2020-06-19 00:11:06 +02:00
parent acbd41024a
commit 2c98242d0b
18 changed files with 384 additions and 322 deletions

View file

@ -1,12 +1,17 @@
---
- name: CSI Cert Manager Setup
block:
- set_fact:
- name: Include vars for CSI
include_vars: "files_list_csi.yml"
- name: Define state to present
set_fact:
certmanager_csi_state: "present"
when:
- certmanager_csi|bool
- set_fact:
- name: Define state to absent
set_fact:
certmanager_csi_state: "absent"
when:
- not certmanager_csi|bool
@ -18,11 +23,7 @@
merge_type: merge
resource_definition: "{{ lookup('file', 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"
- '{{ certmanager_csi_list }}'
tags:
- certmanager
- storage