vagrant/libvirt/dcos/provisioning/roles/hadoop/tasks/download.yml [19:49]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
- name: Check that you can connect (GET) to a page and it returns a status 200
  uri:
    url: "{{ hadoop_binary_download_url }}"
  tags: download_hadoop

- name: Download Hadoop binary from Apache releases
  get_url:
    url: "{{ hadoop_binary_package }}"
    dest: "{{ nfs_shared_folder }}"
  tags: download_hadoop

- name: Check if already moved
  stat: path="{{ nfs_shared_folder }}/hadoop"
  register: hadoop_stat
  tags: download_hadoop

- name: Unarchive a file that is already on the remote machine
  unarchive:
    src: "{{ nfs_shared_folder }}/hadoop-{{ hadoop_version }}.tar.gz"
    dest: "{{ nfs_shared_folder }}"
    remote_src: yes
    owner: vagrant
    group: vagrant
  when: hadoop_stat.stat.isdir is not defined
  tags: download_hadoop

- name: Rename folder name
  command: mv "{{ nfs_shared_folder }}/hadoop-{{ hadoop_version }}" "{{ nfs_shared_folder }}/hadoop"
  when: hadoop_stat.stat.isdir is not defined
  tags: download_hadoop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



vagrant/libvirt/mesos/provisioning/roles/hadoop/tasks/build.yml [19:49]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
- name: Check that you can connect (GET) to a page and it returns a status 200
  uri:
    url: "{{ hadoop_binary_download_url }}"
  tags: download_hadoop

- name: Download Hadoop binary from Apache releases
  get_url:
    url: "{{ hadoop_binary_package }}"
    dest: "{{ nfs_shared_folder }}"
  tags: download_hadoop

- name: Check if already moved
  stat: path="{{ nfs_shared_folder }}/hadoop"
  register: hadoop_stat
  tags: download_hadoop

- name: Unarchive a file that is already on the remote machine
  unarchive:
    src: "{{ nfs_shared_folder }}/hadoop-{{ hadoop_version }}.tar.gz"
    dest: "{{ nfs_shared_folder }}"
    remote_src: yes
    owner: vagrant
    group: vagrant
  when: hadoop_stat.stat.isdir is not defined
  tags: download_hadoop

- name: Rename folder name
  command: mv "{{ nfs_shared_folder }}/hadoop-{{ hadoop_version }}" "{{ nfs_shared_folder }}/hadoop"
  when: hadoop_stat.stat.isdir is not defined
  tags: download_hadoop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



