---
- name: Bring up docker containers
  hosts: localhost
  gather_facts: false
  vars:
    inventory:
      - name: ansible_test_deps_host_1
        image: "chrismeyers/centos6"
      - name: ansible_test_deps_host_2
        image: "chrismeyers/ubuntu12.04"
      - name: ansible_test_deps_host_3
        image: "ubuntu-upstart:14.04"
  roles:
    - { role: provision_docker, provision_docker_company: 'ansible', provision_docker_inventory: "{{ inventory }}" }

- name: Run ansible_test_deps Tests
  hosts: docker_containers
  vars:
    git_dir: "/tmp/ansible"
  roles:
    - { role: ansible_test_deps }
  tasks:
    - name: Clone ansible
      git:
        repo: "https://github.com/ansible/ansible.git"
        dest: "{{ git_dir }}"
    - name: Invoke ansible in hacking mode
      shell: "cd {{ git_dir }} && . hacking/env-setup && ansible --version && ansible-playbook --version"
