Reputation: 2354
I have
@roles('production')
def submethod():
run('service restart')
@roles('all')
def deploy():
put('somefile.conf')
submethod()
I call deploy(), but then all services are restarted, in all hosts, what is the best way to get this done? It seems the @roles('production') is not working...
Thanks a lot.
Upvotes: 1
Views: 161