fix registry_storage_class equals empty string
This commit is contained in:
parent
532e97c542
commit
90ee5df413
1 changed files with 4 additions and 4 deletions
|
@ -59,8 +59,8 @@
|
||||||
- { name: registry-pvc, file: registry-pvc.yml, type: pvc }
|
- { name: registry-pvc, file: registry-pvc.yml, type: pvc }
|
||||||
register: registry_manifests
|
register: registry_manifests
|
||||||
when:
|
when:
|
||||||
- registry_storage_class != none
|
- registry_storage_class != none and registry_storage_class != ""
|
||||||
- registry_disk_size != none
|
- registry_disk_size != none and registry_disk_size != ""
|
||||||
- inventory_hostname == groups['kube-master'][0]
|
- inventory_hostname == groups['kube-master'][0]
|
||||||
|
|
||||||
- name: Registry | Apply PVC manifests
|
- name: Registry | Apply PVC manifests
|
||||||
|
@ -73,6 +73,6 @@
|
||||||
state: "latest"
|
state: "latest"
|
||||||
with_items: "{{ registry_manifests.results }}"
|
with_items: "{{ registry_manifests.results }}"
|
||||||
when:
|
when:
|
||||||
- registry_storage_class != none
|
- registry_storage_class != none and registry_storage_class != ""
|
||||||
- registry_disk_size != none
|
- registry_disk_size != none and registry_disk_size != ""
|
||||||
- inventory_hostname == groups['kube-master'][0]
|
- inventory_hostname == groups['kube-master'][0]
|
||||||
|
|
Loading…
Reference in a new issue