From 787a4c17dbbd8db138f4fe0045bc30d5f3a000bb Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Wed, 27 Sep 2017 13:43:33 +0200 Subject: [PATCH] add openstack client on machine that is running keystone --- roles/keystone/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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'