diff --git a/tasks/java.yml b/tasks/java.yml index a4ecac04..0ea2760e 100644 --- a/tasks/java.yml +++ b/tasks/java.yml @@ -14,6 +14,7 @@ - name: Get the installed java path shell: "update-alternatives --display java | grep '^/' | awk '{print $1}' | grep 1.8.0" + become: yes register: java_full_path failed_when: False changed_when: False