--- - hosts: all tasks: - name: install openjdk-17 apt : name: openjdk-17-jdk state: present