I have a fabric file where I set the env.password as I read about on its docs:
from fabric.api import *
env.password = "mypassword"
print env.user
print env.password
def update():
local("sudo apt-get update")
Yet when I run the file, it's still prompting me for a password:
cchilders@cchilders-Dell-Precision-M3800:~$ fab -f fab_setup_new_linux_box.py update
cchilders
mypassword
[localhost] local: sudo apt-get update
[sudo] password for cchilders:
I thought that was the idea for setting env.password? When I use sudo or run, it says:
"No hosts found. Please specify (single) host string for connection: "
How do I make it run things using the password I set? Thank you