From b7b0793b373bb7a2a049f32a80fa16c90354fdb0 Mon Sep 17 00:00:00 2001 From: Chainarong Tangsurakit Date: Thu, 26 Apr 2018 14:45:12 +0700 Subject: [PATCH] require admin role to use update-alternatives promote `update-alternatives` command to run as admin role --- tasks/java.yml | 1 + 1 file changed, 1 insertion(+) 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