if these are init scripts, you can probably skip 1. and 4. is there any danger the yum upgrades might change config files? i'm guessing you want to do this across N servers in serial, not parallel - read over :
http://docs.ansible.com/guide_rolling_upgrade.html and work through the links til that makes sense, your use case doesn't sound as complicated as that one. On 15 June 2014 16:50, <[email protected]> wrote: > Hey all, > > I'm just looking at putting in Ansible and wanting to get some use cases in. > The one thing I really want to do is get Linux updates via Ansible going. We > have a few servers that need to have things killed/run before and after > reboot (which, for some reason won't work via rc). So basically I'm just > wondering if it's possible for Ansible to have a playbook that will: > > 1. Execute script (which kills off processes) > 2. Run yum update > 3. Reboot > 4. Execute script (start processes) > > Would be great to see any examples. Can't seem to find anything like it on > the web... Really looking forward to getting Ansible working, the things > that I've been doing so far look really positive. > > Cheers, > Allan > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/ef40ac95-a901-40a3-88a6-f114394e3a20%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK5eLPRxgCgC1849HeOAOrFxuiQzzO7%3DkJFqiabkM6v2nC4TQg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
