require admin role to use update-alternatives
promote `update-alternatives` command to run as admin role
This commit is contained in:
parent
046f5c2500
commit
b7b0793b37
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue