# Import Fabric's API module from fabric.api import run env.hosts = '192.168.0.188' # Set the username env.user = "root" def host_type(): run('uname -s') def diskspace(): run('df') def check(): # check host type host_type() # Check diskspace diskspace()