--- - name: install openjdk-11 from packages become: yes apt: update_cache: yes pkg: - openjdk-8-jdk