---

- hosts: localhost

  become: true

  vars:
    # geerlingguy.git
    git_install_from_source: false
    git_install_from_source_force_update: false
    git_version: 2.9.3
    # fubarhouse.curl
    curl_configure_flags:
      - disable-shared
    # fubarhouse.nodejs
    install_ivm: true
    install_iojs: true
    node_version: 7.9.0
    node_versions:
      - 1.0.0
      - 2.0.0
      - 3.0.0
      - 4.0.0
      - 5.0.0
      - 6.0.0
      - 7.0.0
    node_packages:
      - grunt

  pre_tasks:
    # Debian
    - name: Update apt cache.
      apt:
        update_cache: yes
        cache_valid_time: 600
      when: ansible_os_family == 'Debian'
      changed_when: false
      failed_when: false
    # RedHat
    - shell: dnf clean all --enablerepo=\*
      changed_when: false
      failed_when: false
    # Install dependencies
    - name: Install dependencies.
      package:
        name:: "{{ item }}"
        state: installed
      with_items:
        - curl
        - findutils
        - git
        - git-svn
        - rsync
        - openssh-server
        - openssh-client
        - python
        - python-dev
        - unzip
        - tar
        - gtar
        - gzip
        - wget
        - gettext-devel
        - expat-devel
        - curl-devel
        - zlib-devel
        - perl-devel
        - openssl-devel
        - subversion-perl
        - make
        - libdevel
        - libcurl4-openssl-dev
        - libexpat1-dev
        - gettext
        - libssl-dev
        - build-essential
        - zip
        - xz-utils
        - sudo
      failed_when: false
      changed_when: false

  roles:
    - fubarhouse.curl
    - geerlingguy.git
    - role_under_test

---

- hosts: localhost

  become: true

  vars:
    # geerlingguy.git
    git_install_from_source: false
    git_install_from_source_force_update: false
    # fubarhouse.curl
    curl_source: http://curl.askapache.com/download
    curl_configure_flags:
      - disable-shared
    # fubarhouse.nodejs
    install_ivm: true
    install_iojs: true
    node_version: 7.9.0
    node_versions:
      - 1.0.0
      - 2.0.0
      - 3.0.0
      - 4.0.0
      - 5.0.0
      - 6.0.0
      - 7.0.0
    node_packages:
      - grunt

  roles:
    - fubarhouse.curl
    - geerlingguy.git
    - role_under_test

Remove dependency install pre_tasks; add curl mirror variable.
Remove dependency install pre_tasks; add curl mirror variable.

Signed-off-by: Karl Hepworth <c14c6f041bb80410635ef9142e07c8627a565b5a@gmail.com>
