require admin role to use update-alternatives

promote `update-alternatives` command to run as admin role
This commit is contained in:
Chainarong Tangsurakit 2018-04-26 14:45:12 +07:00 committed by GitHub
parent 046f5c2500
commit b7b0793b37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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