The script has been adapted from one in ansible-collections-openstack. Change-Id: I494b6d62c67ab66255f7a6a9e229f14021d48800