No config system really handles "this shall not be X".

FWIW, this nothing to do with "idempotence".  It's unfortunately one of the
most misued words, and I blame Puppet/CFengine for making it so popular.

Idempotence is the mathematical property that F(X) = F(F(X)), such that
repeated actions applied to the same hosts achieve the same state as
applying them the first time.

If you are using cloud hosts, it's easier to destroy the hosts, and that's
the generally accepted way to do it.





On Thu, May 22, 2014 at 1:07 AM, Dmitry Makovey <[email protected]>wrote:

> I've tried to research the subject a bit via Google searches but nothing
> useful came up. So here I am, seeking collective wisdom.
>
> Hypothetical scenario: using ansible playbook I set up machines A, B and C
> with services s1 (A), s2 (A), s3 (B), s4 (C). Playbook allows for
> modification of "hosts" so that s2 can be moved over to B. Which is fine -
> just adding B into appropriate group would do that trick and after next run
> of playbook service would end up where I want it to be. However now we have
> a ghost s2 on A that has not been removed. To have that cleanup done - I
> have to write a very targeted (perhaps non-idempotent) playbook to deal
> with "left-overs" (for example: packages installed, config files present on
> FS, etc.)
>
> I'm sure this topic had come up previously, and will appreciate pointer to
> the archives as much as any other bits of information.
>
>
>  --
> 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/2ad77f9c-a49f-4fb6-bbb7-52fa09ebbc54%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/2ad77f9c-a49f-4fb6-bbb7-52fa09ebbc54%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CA%2BnsWgyoJUYDQ6J_oMUkZ5g3rL_YohSGHGrhvP6reKDQAQ1Lvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to