Code Review
/
kuberef.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
add sudo
[kuberef.git]
/
functions.sh
diff --git
a/functions.sh
b/functions.sh
index
63f1490
..
4eaa281
100755
(executable)
--- a/
functions.sh
+++ b/
functions.sh
@@
-69,7
+69,7
@@
check_prerequisites() {
#-------------------------------------------------------------------------------
if [ "$OS_ID" == "ubuntu" ]; then
#-------------------------------------------------------------------------------
if [ "$OS_ID" == "ubuntu" ]; then
- apt update
+ sudo apt update -y
ansible --version
RESULT=$?
if [ $RESULT -ne 0 ]; then
ansible --version
RESULT=$?
if [ $RESULT -ne 0 ]; then
@@
-109,7
+109,7
@@
check_prerequisites() {
elif [ "$OS_ID" == "centos" ]; then
elif [ "$OS_ID" == "centos" ]; then
- yum update
+ sudo yum update -y
ansible --version
RESULT=$?
if [ $RESULT -ne 0 ]; then
ansible --version
RESULT=$?
if [ $RESULT -ne 0 ]; then