---
- hosts: ambari-server
  sudo: true
  tasks:
  - include: ../roles/ambari-server/tasks/stop.yml
  - name: Download IOP-SOLR mpack
    get_url:
      url: "{{ iop_solr_mpack_url | default('http://s3.amazonaws.com/dev.hortonworks.com/IOPSOLR/centos6/1.x/BUILDS/1.0.0.0-20/tars/iopsolr/iop-solr-mpack-6.3.0.1.0.0.0-20.tar.gz') }}"
      dest: /tmp/iop-solr-mpack.tar.gz
  - name: Install IOP-SOLR mpack
    sudo: ture
    action: shell sudo ambari-server install-mpack --mpack=/tmp/iop-solr-mpack.tar.gz --verbose
  - include: ../roles/ambari-server/tasks/start.yml

---
- hosts: ambari-server
  sudo: true
  tasks:
  - include: ../roles/ambari-server/tasks/stop.yml
  - name: Download IOP-SOLR mpack
    get_url:
      url: "{{ iop_solr_mpack_url | default('http://s3.amazonaws.com/dev.hortonworks.com/IOPSOLR/centos6/1.x/BUILDS/1.0.0.0-24/tars/iopsolr/iop-solr-mpack-6.3.0.1.0.0.0-24.tar.gz') }}"
      dest: /tmp/iop-solr-mpack.tar.gz
  - name: Install IOP-SOLR mpack
    sudo: ture
    action: shell sudo ambari-server install-mpack --mpack=/tmp/iop-solr-mpack.tar.gz --verbose
  - include: ../roles/ambari-server/tasks/start.yml

Upgrade IOP Solr mpack version to the latest one
Upgrade IOP Solr mpack version to the latest one
