summaryrefslogtreecommitdiff
path: root/test/utils/ansible-playbook_integration_runner/roles/ansible_test_deps/test/main.yml
blob: b66d699d5d6ee5a5d3fbae682c5974022bfc33f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- 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"