I normally have 3 plays for my deployment playbook.

- hosts: localhost
  tasks:
   - notify start (mail/jabber/irc)
   - checkout from repo
   - generate unique ids for release (git rev-parse --short HEAD)
   - build stuff
   - create deployment package

And then a deploy play:

- hosts: targets
  tasks:
  - take out of rotation
  - copy package
  - install package/symlink into place
  - restart services
  - put into rotation

And a cleanup play

- hosts: localhost
  tasks:
   -  notify end
   -  cleanup!

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to