Compare commits

..

No commits in common. "acbd41024a849634fc41f72c1cc78a7c37e83a57" and "22060ce2415f7fbdb70a0d5faf8becc18cce3c61" have entirely different histories.

7 changed files with 36 additions and 39 deletions

View file

@ -1,28 +1,23 @@
---
- name: CSI Cert Manager Setup
block:
- set_fact:
- set_fact:
certmanager_csi_state: "present"
when:
- certmanager_csi|bool
- set_fact:
- set_fact:
certmanager_csi_state: "absent"
when:
- not certmanager_csi|bool
- name: CSI Cert Manager files need to be {{ certmanager_csi_state }}
- name: CSI Cert Manager files need to be {{ certmanager_csi_state }}
k8s:
state: "{{ certmanager_csi_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
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"
tags:
- certmanager
- storage

View file

@ -1,3 +1,8 @@
- name: Print the kubectl context
debug:
var: my_context
tags: certmanager
- name: Cert Manager setup
block:
- name: namespace
@ -7,6 +12,7 @@
name: cert-manager
api_version: v1
kind: Namespace
tags: certmanager
- name: Get Deployment information object
k8s_info:
@ -27,35 +33,36 @@
include_tasks: "version_0.11.0.yml"
when:
- certmanager_version | regex_search('(0.11)') or certmanager_actual_version.stdout | regex_search('(0.11)')
tags: certmanager
- name: install / uninstall version 0.12
include_tasks: "version_0.12.yml"
when:
- certmanager_version | regex_search('(0.12)') or certmanager_actual_version.stdout | regex_search('(0.12)')
tags: certmanager
- name: install / uninstall version 0.13
include_tasks: "version_0.13.yml"
when:
- certmanager_version | regex_search('(0.13)') or certmanager_actual_version.stdout | regex_search('(0.13)')
tags: certmanager
- name: install / uninstall version 0.14
include_tasks: "version_0.14.yml"
when:
- certmanager_version | regex_search('(0.14)') or certmanager_actual_version.stdout | regex_search('(0.14)')
tags: certmanager
- name: install / uninstall version 0.15
include_tasks: "version_0.15.yml"
when:
- certmanager_version | regex_search('(0.15)') or certmanager_actual_version.stdout | regex_search('(0.15)')
tags: certmanager
- name: install / uninstall Cert-Manager CSI Kubernetes drivers
- name: install / uninstall Cert-Manager CSI Kubernetes drivers
include_tasks: "csi.yml"
when:
- certmanager_csi|bool
tags:
- certmanager
- storage
- certmanager_csi
tags: certmanager|bool

View file

@ -13,7 +13,6 @@
k8s:
state: "{{ certmanager_0_11_0_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- "0.11.0/challenges.acme.cert-manager.io-CustomResourceDefinition.yaml"

View file

@ -13,7 +13,6 @@
k8s:
state: "{{ certmanager_0_12_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- "0.12/certificaterequests.cert-manager.io-CustomResourceDefinition.yaml"

View file

@ -13,7 +13,6 @@
k8s:
state: "{{ certmanager_0_13_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- "0.13/certificaterequests.cert-manager.io-CustomResourceDefinition.yaml"

View file

@ -13,7 +13,6 @@
k8s:
state: "{{ certmanager_0_14_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- "0.14/certificaterequests.cert-manager.io-CustomResourceDefinition.yaml"

View file

@ -13,7 +13,6 @@
k8s:
state: "{{ certmanager_0_15_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- "0.15/issuers.cert-manager.io-CustomResourceDefinition.yaml"