---
- name: Copy to Task Files Rally
  hosts: tester
  tasks:
  - name: Copy Task file from settings
    copy:
      dest: "{{ tester.rally.dir }}/{{ tester.rally.taskfile }}"
      src: "{{ tester.tests.rally.task  }}"
      force: yes

- name: Run Rally Task
  hosts: tester
  tasks:
  - name: Check Rally deployment
    command: "{{ tester.rally.path }}/bin/rally deployment check"
  - name: Start Rally task
    command: "{{ tester.rally.path }}/bin/rally -v task start --task {{ tester.rally.dir }}/{{ tester.rally.taskfile }}"

---
- name: Copy to Task Files Rally
  hosts: tester
  tasks:
  - name: Copy Task file from settings
    copy:
      dest: "{{ tester.rally.dir }}/{{ tester.rally.taskfile }}"
      content: "{{ tester.tests.rally.task | to_nice_json }}"
      force: yes

- name: Run Rally Task
  hosts: tester
  tasks:
  - name: Check Rally deployment
    command: "{{ tester.rally.path }}/bin/rally deployment check"
  - name: Start Rally task
    command: "{{ tester.rally.path }}/bin/rally -v task start --task {{ tester.rally.dir }}/{{ tester.rally.taskfile }}"

Revert "Running Rally task from a file"
Revert "Running Rally task from a file"

This reverts commit c22a8037bfb813cd4b58b201755e274bbaf47097.

Based on comment, please submit a new patch that aligns the ODL to the rest of the rally tests

Change-Id: I08712dab14216a2fd1f268e830c490567d70ba25
