---
- name: Sync ansible repo to ec2 instance
  synchronize: 
    src: "{{ sync_dir }}/"
    dest: "~/ansible"

- name: Get ansible source dir
  sudo: false
  shell: "cd ~ && pwd"
  register: results

- shell: ". hacking/env-setup && cd test/integration && make {{ run_integration_make_target }}"
  async: 3600
  poll: 0
  register: async_test_results
  sudo: true
  environment:
    TEST_FLAGS: "{{ run_integration_test_flags|default(lookup('env', 'TEST_FLAGS')) }}"
    CREDENTIALS_FILE: "{{ run_integration_credentials_file|default(lookup('env', 'CREDENTIALS_FILE')) }}"
  args:
    chdir: "{{ results.stdout }}/ansible"

- name: poll for test results
  async_status:
    jid: "{{async_test_results.ansible_job_id}}"
  register: test_results
  until: test_results.finished
  retries: 360
  wait: 10
  ignore_errors: true

---
- name: Sync ansible repo to ec2 instance
  synchronize: 
    src: "{{ sync_dir }}/"
    dest: "~/ansible"

- name: Get ansible source dir
  sudo: false
  shell: "cd ~ && pwd"
  register: results

- shell: ". hacking/env-setup && cd test/integration && make {{ run_integration_make_target }}"
  async: 3600
  poll: 0
  register: async_test_results
  sudo: true
  environment:
    TEST_FLAGS: "{{ run_integration_test_flags|default(lookup('env', 'TEST_FLAGS')) }}"
    CREDENTIALS_FILE: "{{ run_integration_credentials_file|default(lookup('env', 'CREDENTIALS_FILE')) }}"
  args:
    chdir: "{{ results.stdout }}/ansible"

- name: poll for test results
  async_status:
    jid: "{{async_test_results.ansible_job_id}}"
  register: test_results
  until: test_results.finished
  retries: 360
  delay: 10
  ignore_errors: true

Fix typo in integration test runner role
Fix typo in integration test runner role
