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