I want to change the env.hosts dynamically because sometimes I want to deploy to one machine first, check if ok then deploy to many machines.
Currently I need to set env.hosts first, how could I set the env.hosts in a method and not in global at script start?
I want to change the env.hosts dynamically because sometimes I want to deploy to
Share
Yes you can set
env.hostsdynamically. One common pattern we use is:You would use this to chain the tasks such as
fab staging deployorfab production deploy.