diff --git a/tasks/cinder_qos.yml b/tasks/cinder_qos.yml index 37a93c5b..eed27424 100644 --- a/tasks/cinder_qos.yml +++ b/tasks/cinder_qos.yml @@ -17,8 +17,8 @@ shell: | . {{ ansible_env.HOME }}/openrc CLI_OPTIONS="{{ ((keystone_service_adminuri_insecure | bool) or (cinder_service_internaluri_insecure | bool)) | ternary('--insecure','') }}" - {{ cinder_bin }}/openstack volume qos list --format value --column Name | grep -x {{ item.name }} || \ - {{ cinder_bin }}/openstack volume qos create {{ item.name }} \ + {{ cinder_bin }}/openstack ${CLI_OPTIONS} volume qos list --format value --column Name | grep -x {{ item.name }} || \ + {{ cinder_bin }}/openstack ${CLI_OPTIONS} volume qos create {{ item.name }} \ --consumer {{ item.options.consumer }}\ {% for k,v in item.options.items() %} --property {{ k }}={{ v }}{% endfor %} args: @@ -33,8 +33,8 @@ . {{ ansible_env.HOME }}/openrc CLI_OPTIONS="{{ ((keystone_service_adminuri_insecure | bool) or (cinder_service_internaluri_insecure | bool)) | ternary('--insecure','') }}" {% for vtype in item.cinder_volume_types %} - if {{ cinder_bin }}/openstack volume type show "{{ vtype }}"; then - {{ cinder_bin }}/openstack volume qos associate {{ item.name }} {{ vtype }} + if {{ cinder_bin }}/openstack ${CLI_OPTIONS} volume type show "{{ vtype }}"; then + {{ cinder_bin }}/openstack ${CLI_OPTIONS} volume qos associate {{ item.name }} {{ vtype }} fi {% endfor %} args: