Serialize ClusterIssuers creation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
444ed560eb
commit
6d78359203
3 changed files with 17 additions and 23 deletions
|
|
@ -112,22 +112,14 @@
|
|||
apply: true
|
||||
namespace: "{{ cert_manager_namespace }}"
|
||||
resource_definition: "{{ lookup('template', 'api-key-secret.yml.j2') | from_yaml }}"
|
||||
with_items:
|
||||
- "{{ cert_manager_issuer }}"
|
||||
when:
|
||||
- item.acme_provider is defined
|
||||
- item.dns_provider is defined
|
||||
|
||||
# Tempo ici
|
||||
|
||||
# - name: Define SelfSigned ClusterIssuer
|
||||
# kubernetes.core.k8s:
|
||||
# state: present
|
||||
# context: "{{ my_context }}"
|
||||
## namespace: "{{ cert_manager_namespace }}"
|
||||
# definition:
|
||||
# apiVersion: cert-manager.io/v1
|
||||
# kind: ClusterIssuer
|
||||
# metadata:
|
||||
# name: selfsigned
|
||||
# spec:
|
||||
# selfSigned: {}
|
||||
|
||||
- name: Defined ClusterIssuers
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
|
|
@ -137,9 +129,9 @@
|
|||
resource_definition: "{{ lookup('template', 'clusterissuer.yml.j2') | from_yaml }}"
|
||||
# debug:
|
||||
# msg: "{{ lookup('template', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "{{ cert_manager_issuer }}"
|
||||
|
||||
with_items:
|
||||
- "{{ cert_manager_issuer }}"
|
||||
when:
|
||||
- cert_manager_issuer is defined
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue