Ah... gotcha.. I guess that makes sense. We tend to use physical machines but we could just re-image or use docker.
I could have a remove-role that just resets the machine and removes packages. On Friday, September 19, 2014 6:59:45 AM UTC-7, Michael Peters wrote: > > Removing a role or changing a machine's role is pretty rare. Most > people in that situation would just shutdown that vm and spin up > another with the new role. If you aren't running virtual machines then > I'd suggestion having a separate playbook called something like > "remove-role-X.yml" where X is the name of the role to remove. Then > that playbook would know how to remove and shutdown anything from the > X role. You'd have to work to make sure they are in sync, but again, > changing a machine's role isn't something that's usually done that > often. > > On Thu, Sep 18, 2014 at 7:43 PM, Kevin Burton <[email protected] > <javascript:>> wrote: > > Let's say I have a role called 'foo' and that runs a playbook which > installs > > a debian package 'foo'. > > > > If I remove host0 from the foo role, I need it to remove the debian > package > > foo and stop the foo daemon. > > > > How is that best done? > > > > Leaving the daemon running and the package installed could lead to > errors... > > > > -- > > 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/1120d39b-b8da-4bc5-83f5-eac9e4334d1e%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/55ac1fef-7b1c-45ca-a0fb-25ab7ab5def2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
