fabpreso/hosts.py

8 lines
105 B
Python

from fabric.api import env, run
env.hosts = ['web1', 'web2', 'web3']
def hello():
run('hostname')