On 09.02.17 14:00 Cev Ing wrote:
> Background: I have a playbook and I use it on my hosts. Then I
> change it. The change affects about half of the hosts. But the
> change was erroneous. Next I correct the playbook. And now I would
> like to run the playbook on those hosts changed by the last run.
Read up on ansible's idempotency. This allows you to run your playbook
multiple times on whatever hosts, and (if done well) it will assure
the state of each host ist what it should be. Changes are only made,
if the state deviates from the desired state (e.g. a file is deleted,
if it exists and you want it absent, but if there is no file then
ansible has nothing to do).
Johannes