From f8a3179b74fefa2e3d2c5745e4dcae5f5a4b8a03 Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Thu, 22 Feb 2018 16:31:18 +0100 Subject: [PATCH] Ensure installation of same openstack client --- roles/keystone/tasks/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/roles/keystone/tasks/main.yml b/roles/keystone/tasks/main.yml index 386e0a2..6d2a04e 100644 --- a/roles/keystone/tasks/main.yml +++ b/roles/keystone/tasks/main.yml @@ -52,7 +52,7 @@ delay: 3 ignore_errors: yes -- name: keystone manage commands to setup db +- name: keystone manage commands to setup db_sync command: > /usr/bin/docker run --rm --add-host=mariadb:{{ listen_ip | default(hostvars[groups['databases'][0]]['ansible_default_ipv4']['address']) }} @@ -90,12 +90,18 @@ -e "OS_AUTH_URL=http://${KEYSTONE_HOST}:35357/v3" -e "OS_PASSWORD={{ secrets['OS_PASSWORD'] }}" {{ docker_image }} bash /etc/bootstrap.sh + register: result + retries: 7 + delay: 3 +- name: install openstack repo host key. + command: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5EDB1B62EC4926EA + tags: openstackclient - name: install openstack repo on host. - command: > - echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main" > /etc/apt/sources.list.d/ocata.list && - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5EDB1B62EC4926EA + apt_repository: + repo: "deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main" + filename: ocata tags: openstackclient - name: install openstack client for management