Adding a regexp to the lineinfile would avoid the duplicate lines, while the serialization here: https://review.openstack.org/#/c/426928/ would avoid the mess of the massive restart.
Adding a regexp to the lineinfile would avoid the duplicate lines, while the serialization here: https:/ /review. openstack. org/#/c/ 426928/ would avoid the mess of the massive restart.