This short guide explains how to use directly the Ansible playbook to install OSM to an OpenStack infrastructure.
The ansible playbook requires ansible and openstacksdk to be executed. python-openstackclient is not mandatory but highly recommended. They are part of Python pip and can be installed as follows:
$ sudo -H pip install python-openstackclient "openstacksdk<1" "ansible>=2.10,<2.11"
In order to execute the playbook, it is required an OpenStack openrc file. It can be downloaded from the OpenStack web interface Horizon.
After that, it can be loaded with the following command:
$ . openrc
Then, all the credentials are loaded in the bash environment. Now it is possible to execute the playbook to configure OpenStack and install OSM:
$ ansible-playbook -e external_network_name=<your openstack external network> site.yml