Created
June 23, 2017 01:17
-
-
Save syfun/263c355f581f3271f0fdfd532d38d61a to your computer and use it in GitHub Desktop.
fabric env sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import env, cd, sudo, run | |
env.user = 'user' | |
env.hosts = ['192.168.0.2'] | |
env.password = '123456' | |
env.prompts = { | |
'continue connecting (yes/no)? ': 'yes', | |
'password: ': env.password | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment