Comment 13 for bug 1750233

Reviewed: https://review.openstack.org/638289
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=87a4b7b5dd8cc0701931f0c535c74b2213ddaf3e
Submitter: Zuul
Branch: stable/rocky

commit 87a4b7b5dd8cc0701931f0c535c74b2213ddaf3e
Author: Shannon Mitchell <email address hidden>
Date: Sun Feb 17 16:59:29 2019 -0600

    Dynamic inventory backup corruption fix

    When multiple users and process are accessing the dynamic inventory
    the inventory backup and json can get corrupted. This change checks
    for inventory modifictions and only saves if needed. The backup
    is also moved to right before the actual save.

    Change-Id: Ifd348ddd9c21526f5b523963dd1fd247edd6b109
    Closes-Bug: #1750233