# TODO (tjamrisk): Need to somehow skip this if deployment exists
- name: Create Rally deployment
  shell: |
      source ~/keystonerc
      {{ rally.path }}/bin/rally deployment create --fromenv --name {{ test.deployment }} | awk '/{{ test.deployment }}/ {print $2}'
  register: rally_deployment_uuid
  ignore_errors: true

- name: Use Rally deployment
  shell: |
      {{ rally.path }}/bin/rally deployment use {{ test.deployment }} | awk '/Using deployment/ {print $3}'
  register: rally_deployment_uuid
  when: "'Deployment' in rally_deployment_uuid.stdout"

- name: Copy Task file from vars
  template:
      src: "{{ test.tests }}"
      dest: "{{ rally.dir }}/{{ test.taskfile }}"
      force: yes

- name: Check Rally deployment
  command: "{{ rally.path }}/bin/rally deployment check"

- name: Start Rally task
  command: "{{ rally.path }}/bin/rally -v task start --task {{ rally.dir }}/{{ test.taskfile }}"

# TODO (tjamrisk): Need to somehow skip this if deployment exists
- name: Create Rally deployment
  shell: |
      source ~/keystonerc
      {{ rally.path }}/bin/rally deployment create --fromenv --name {{ test.deployment }} | awk '/{{ test.deployment }}/ {print $2}'
  register: rally_deployment_uuid
  ignore_errors: true

- name: Use Rally deployment
  shell: |
      {{ rally.path }}/bin/rally deployment use {{ test.deployment }} | awk '/Using deployment/ {print $3}'
  register: rally_deployment_uuid
  when: "'Deployment' in rally_deployment_uuid.stdout"

- name: Copy Task file from vars
  template:
      src: "{{ test.tests }}"
      dest: "{{ rally.dir }}/{{ test.taskfile }}"
      force: yes

- name: Check Rally deployment
  command: "{{ rally.path }}/bin/rally deployment check"

- name: Start Rally task
  command: "{{ rally.path }}/bin/rally task start --task {{ rally.dir }}/{{ test.taskfile }}"

Remove option "-v" when stating rally
Remove option "-v" when stating rally

The option "-v" was dropped in latest rally and is unrecognized,
let's drop it from rally invocation in rally plugin.

Change-Id: I5e2e8ba50db5c98b8e19e701ba029a226c9ce2ae
