Thanks JYL. Looks promising. Will have a closer look. On Thursday, June 9, 2016 at 12:55:07 AM UTC+10, Jean-Yves LENHOF wrote: > > Le 2016-06-08 16:27, [email protected] <javascript:> a écrit : > > New to Ansible. Looking for help with orchestrating actions which > > depend on the state of applications on other servers. Can this be done > > in Ansible? > > > > Scenario: > > > > server 1 running app 1 > > server 2 running app 2 > > server 3 running app 3 > > > > Need to stop app2 on server 2 but app 2 must not be stopped if either > > app 1 or app 3 is up - app1 and app 3 are client apps which would > > crash if app2 was brought down > > i.e. need to know the state of app 1 and app 3 at the time a stop of > > app 2 is attempted to make a decision whether to proceed or not > > > > In other words can the state of multiple components on various servers > > be maintained and tested before an action is performed. Essentialy a > > state machine paradigm. > > > > Any help appreciated. > > Hi, > > Perhaps you should have a look at this page : > > http://docs.ansible.com/ansible/playbooks_delegation.html > > I think you should use serial & max_fail_percentage... > > But that does'nt change your organisation : you should test all changes > on qualification servers before production ones... > > Regards, > > JYL >
-- 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/f541d177-1999-403c-8458-ef6275c7a4e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
