Unfortunately some of the scripts can't be run via init so have to be manually started. Though theoretically we could make a separate script in bash to kick start those applications...
What I do need to do though, is make sure that the processes get started and are running as expected (i.e. check a network port). The updates would be system updates so there is a possibility of things like /etc/localtime being updated - which on some environments we'd need to revert these to GMT from BST. I'll look through the rolling updates one and see if I can get the yum updates working. I did notice that when I use sudo in a playbook it sits there and waits on the server, presumably asking for the authentication password. Perhaps I need to go back and RTFM a bit more on that one. On Sunday, June 15, 2014 5:43:10 PM UTC+1, Dick Davies wrote: > > 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] <javascript:>> 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] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > 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/1c8038ca-4a6c-44b1-aba2-c9de51b59bf0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
