From 7a41ca41872c665a7c5706c08469222a8781df4d Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Thu, 22 Feb 2018 16:31:18 +0100 Subject: [PATCH] iEnsure installation of same openstack client --- roles/keystone/tasks/main.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/roles/keystone/tasks/main.yml b/roles/keystone/tasks/main.yml index 19190bf..b8d8e46 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']) }} @@ -93,13 +93,16 @@ register: result retries: 7 delay: 3 - ignore_errors: yes +- name: install openstack repo key host. + 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