Question about running a piece of task only once

5 views
Skip to first unread message

Joe McDonagh

unread,
Nov 23, 2009, 2:51:48 PM11/23/09
to capis...@googlegroups.com
Say i have a task on like 6 servers (deploying the web code) but at the
end i want only one email to go out that says "Website updated to
revision whatever" how do i make a run or local statement only run once
and not once per whole task and not once per host in the role?

I'm thinking an after deploy hook that runs a task that has just one
local command that has the deploy, the problem with that is I need to
send out a list of changes in the e-mail, which I am not too sure about
right now.

--
Joe McDonagh
Silent Penguin Services
Operations Engineer
AIM: YoosingYoonickz
IRC: joe-mac on freenode
Blog: www.colonfail.com

Lee Hambley

unread,
Nov 29, 2009, 1:58:43 PM11/29/09
to capis...@googlegroups.com
Joe do you not add :once => true to the task definition/

-- Lee Hambley

Twitter: @leehambley | @capistranorb
Reply all
Reply to author
Forward
0 new messages