heketi: fix deployment logic that was broken by the ansible 3.4 upgrade (#8118)
This commit is contained in:
parent
1c3d082b8d
commit
a0be7f0e26
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: "Kubernetes Apps | Deploy cluster role binding."
|
- name: "Kubernetes Apps | Deploy cluster role binding."
|
||||||
when: "clusterrolebinding_state.stdout | length > 0"
|
when: "clusterrolebinding_state.stdout | length == 0"
|
||||||
command: "{{ bin_dir }}/kubectl create clusterrolebinding heketi-gluster-admin --clusterrole=edit --serviceaccount=default:heketi-service-account"
|
command: "{{ bin_dir }}/kubectl create clusterrolebinding heketi-gluster-admin --clusterrole=edit --serviceaccount=default:heketi-service-account"
|
||||||
|
|
||||||
- name: Get clusterrolebindings again
|
- name: Get clusterrolebindings again
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: "Deploy Heketi config secret"
|
- name: "Deploy Heketi config secret"
|
||||||
when: "secret_state.stdout | length > 0"
|
when: "secret_state.stdout | length == 0"
|
||||||
command: "{{ bin_dir }}/kubectl create secret generic heketi-config-secret --from-file={{ kube_config_dir }}/heketi.json"
|
command: "{{ bin_dir }}/kubectl create secret generic heketi-config-secret --from-file={{ kube_config_dir }}/heketi.json"
|
||||||
|
|
||||||
- name: Get the heketi-config-secret secret again
|
- name: Get the heketi-config-secret secret again
|
||||||
|
@ -41,5 +41,5 @@
|
||||||
|
|
||||||
- name: Make sure the heketi-config-secret secret exists now
|
- name: Make sure the heketi-config-secret secret exists now
|
||||||
assert:
|
assert:
|
||||||
that: "secret_state.stdout != \"\""
|
that: "secret_state.stdout | length > 0"
|
||||||
msg: "Heketi config secret is not present."
|
msg: "Heketi config secret is not present."
|
||||||
|
|
Loading…
Reference in a new issue