---
- hosts: solr
  become: yes
  gather_facts: yes
  vars:
    role: solr
    #dir_role_templates: "roles/{{ role }}/templates"
    docker_image_name: ucldc/solr
    dir_code: code/solr_api
    dir_index: /opt/solr/data
  roles:
    - solr5_docker_rm
    - solr5_docker

---
- hosts: solr
  become: yes
  gather_facts: yes
  vars:
    role: solr
    #dir_role_templates: "roles/{{ role }}/templates"
    docker_image_name: ucldc/solr
    dir_code: code/solr_api
    dir_index: /opt/solr/data
    java_heap_max: "{{ (ansible_memtotal_mb * 0.75)|int|abs }}"
  roles:
    - solr5_docker_rm
    - solr5_docker

Add dynamic heap size var
Add dynamic heap size var
