Read the code and do not run this script without first testing in a non-operational environment. The code is not idempotent, use the Ansible role in instead. Use the newly installed and configured ...