Prefix heketi kubectl calls with {{ bin_dir }}

This commit is contained in:
Simon Li
2018-07-30 16:44:02 +01:00
committed by Sascha Marcel Schmidt
parent 2bd8fbb2dd
commit 8ac57201a7
12 changed files with 63 additions and 63 deletions

View File

@@ -12,7 +12,7 @@
- name: "Test heketi setup."
register: "heketi_service_state"
command: "kubectl get service heketi -o=name --ignore-not-found=true"
command: "{{ bin_dir }}/kubectl get service heketi -o=name --ignore-not-found=true"
changed_when: false
- name: "Setup heketi."
@@ -21,14 +21,14 @@
- name: "Test storage class."
changed_when: false
command: "kubectl get storageclass gluster --ignore-not-found=true --output=json"
command: "{{ bin_dir }}/kubectl get storageclass gluster --ignore-not-found=true --output=json"
register: "storageclass"
- name: "Setup storage class."
when: "storageclass.stdout == \"\""
include_tasks: "storageclass.yml"
- name: "Test storage class."
changed_when: false
command: "kubectl get storageclass gluster --ignore-not-found=true --output=json"
command: "{{ bin_dir }}/kubectl get storageclass gluster --ignore-not-found=true --output=json"
register: "storageclass"
- name: "Ensure storage class is up."
assert: { that: "storageclass.stdout != \"\"" }