Merge "Make ansible ask for sudo password"
This commit is contained in:
commit
c081db93b3
|
@ -242,8 +242,7 @@ def check_for_root():
|
||||||
'[ $(whoami) == root ] || sudo --non-interactive true',
|
'[ $(whoami) == root ] || sudo --non-interactive true',
|
||||||
shell=True, stderr=subprocess.DEVNULL)
|
shell=True, stderr=subprocess.DEVNULL)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
# TODO(dtantsur): tell ansible to ask for password
|
COMMON_PARAMS.append('--ask-become-pass')
|
||||||
sys.exit('Sudo without password is required for Bifrost')
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue