---

- hosts: zookeeper
  become: yes
  vars_files:
    - "{{ play_dir }}/vars/common.yml"
    - "{{ play_dir }}/vars/versions.yml"

  roles:

    - role: zookeeper
      tags: ['mesos']

    - role: audit-deployment
      installed_component: zookeeper
      tags: ['mesos', 'container-platforms']

---

- hosts: zookeeper
  become: yes
  vars_files:
    - "{{ play_dir }}/vars/common.yml"
    - "{{ play_dir }}/vars/versions.yml"

  pre_tasks:

    - name: Install OpenJDK 8 on Ubuntu Xenial - fixes problematic install of openjdk-8-jre-headless
      apt: package=openjdk-8-jdk-headless
      when: ansible_distribution_release == 'xenial'

  roles:

    - role: zookeeper
      tags: ['mesos']

    - role: audit-deployment
      installed_component: zookeeper
      tags: ['mesos', 'container-platforms']

Install OpenJDK 8 JDK headless for Zookeeper on Ubuntu 16.04
Install OpenJDK 8 JDK headless for Zookeeper on Ubuntu 16.04
