---
- name: Add Zulu.org JDK repository key
  apt_key:
    keyserver: keyserver.ubuntu.com
    id: 0x219BD9C9
  when: corda_java == "openjdk"

- name: Add Zulu.org JDK repository
  apt_repository:
    repo: deb http://repos.azulsystems.com/ubuntu stable main
    state: present
  when: corda_java == "openjdk"

- name: Update APT cache
  apt: update_cache=yes

- name: Install os packages
  apt:
    pkg: "{{ item }}"
    state: present
  loop:
    - ntp

- name: Install OpenJDK (Zulu build)
  apt:
    pkg: "{{ item }}"
    state: present
  loop:
    - zulu-8
  when: corda_java == "openjdk"

- name: Install LXML (required for Maven Central download)
  apt:
    pkg: python-lxml
    state: present
  when: corda_source == "maven"


---
- name: Add Zulu.org JDK repository key
  apt_key:
    keyserver: keyserver.ubuntu.com
    id: "0xB1998361219BD9C9"
  when: corda_java == "openjdk"

- name: Add Zulu.org JDK repository
  apt_repository:
    repo: deb http://repos.azulsystems.com/ubuntu stable main
    state: present
  when: corda_java == "openjdk"

- name: Update APT cache
  apt: update_cache=yes

- name: Install os packages
  apt:
    pkg: "{{ item }}"
    state: present
  loop:
    - ntp

- name: Install OpenJDK (Zulu build)
  apt:
    pkg: "{{ item }}"
    state: present
  loop:
    - zulu-8
  when: corda_java == "openjdk"

- name: Install LXML (required for Maven Central download)
  apt:
    pkg: python-lxml
    state: present
  when: corda_source == "maven"


Fix problem with repo key id
Fix problem with repo key id

I think that actuall problem was that id wasn't string and ansible
translated it to decimal value
