For example in:
task :restart, :roles => :app, :except => { :no_release => true } do
end
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looking at the handbook, it appears that you can pass the
:no_releaseattribute to theroledefinition (commonly done for the web role). This indicates that the code should not be checked out on servers in that role.So, I’m guessing that when a task specifies
:except => { :no_release => true }– it’s saying “Skip this task on the servers (roles) that have:no_releasedefined astrue.”…
In the above example, the restart operation should not run on the web server. Again, this is not tested… just going by my observations.