simple roledefs example
This commit is contained in:
parent
51bbd51bcb
commit
c9f0a3ff1d
8
roldefs.py
Normal file
8
roldefs.py
Normal file
@ -0,0 +1,8 @@
|
||||
from fabric.api import env, run
|
||||
env.roledefs = {
|
||||
'web': ['web1', 'web2', 'web3'],
|
||||
'db': ['db1', 'db2']
|
||||
}
|
||||
|
||||
def hello():
|
||||
run('hostname')
|
Loading…
Reference in New Issue
Block a user