diff --git a/roles/keystone/tasks/main.yml b/roles/keystone/tasks/main.yml index 78b2450..41cca97 100644 --- a/roles/keystone/tasks/main.yml +++ b/roles/keystone/tasks/main.yml @@ -82,3 +82,14 @@ -e "OS_AUTH_URL=http://${KEYSTONE_HOST}:35357/v3" -e "OS_PASSWORD={{ secrets['OS_PASSWORD'] }}" {{ docker_image }} bash /etc/bootstrap.sh + +- name: install openstack client for management + apt: + name: python-openstackclient + state: latest + update_cache: yes + +- name: source admin-openrc.sh in root .bashrc + lineinfile: + path: /root/.bashrc + line: 'source /srv/keystone/root/admin-openrc.sh'