1--- 2# tasks file for openliberty 3# Docs here: https://openliberty.io/blog/2020/04/09/microprofile-3-3-open-liberty-20004.html#yum 4- name: Install OpenLiberty GPG key 5 become: true 6 ansible.builtin.apt_key: 7 url: https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/os-native-packages/public.key 8 state: present 9 when: 10 - ansible_distribution == "Ubuntu" 11- name: Add OpenLiberty repo 12 become: true 13 ansible.builtin.apt_repository: 14 repo: deb https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/os-native-packages/deb/ / 15 state: present 16 filename: openliberty 17- name: Install OpenLiberty packages 18 become: true 19 ansible.builtin.apt: 20 pkg: 21 - openliberty 22 - openliberty 23