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