From 707dc6e7da32387df6e2b2fa667b60a7af96c636 Mon Sep 17 00:00:00 2001 From: Joe Talerico Date: Mon, 20 Jun 2016 14:28:53 -0400 Subject: [PATCH] Fix Path issue We have a browbeat_path, however we were not using it. Change-Id: Ie265301b633d086613385794ae153a7b82a07eb9 Closes-bug: 1594509 --- ansible/install/roles/browbeat/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/install/roles/browbeat/tasks/main.yml b/ansible/install/roles/browbeat/tasks/main.yml index 5bc4b5737..bc504dd58 100644 --- a/ansible/install/roles/browbeat/tasks/main.yml +++ b/ansible/install/roles/browbeat/tasks/main.yml @@ -40,22 +40,22 @@ command: virtualenv {{ shaker_venv }} creates={{ shaker_venv }} - name: Determine if browbeat directory exists already - stat: path={{ home_dir }}/browbeat + stat: path={{ browbeat_path }} register: browbeat_exists - debug: msg="Browbeat directory exists already." when: browbeat_exists.stat.isdir is defined and browbeat_exists.stat.isdir - name: Clone browbeat on undercloud - git: repo=https://github.com/openstack/browbeat.git dest={{ home_dir }}/browbeat + git: repo=https://github.com/openstack/browbeat.git dest={{ browbeat_path }} when: browbeat_exists.stat.isdir is undefined - name: Generate hosts and ~/.ssh/config on undercloud - shell: . {{ home_dir }}/stackrc; {{ home_dir }}/browbeat/ansible/generate_tripleo_hostfile.sh localhost {{ home_dir }}/.ssh/config + shell: . {{ home_dir }}/stackrc; {{ browbeat_path }}/ansible/generate_tripleo_hostfile.sh localhost {{ home_dir }}/.ssh/config when: tripleo - name: Move hosts file to correct location - command: mv {{ home_dir }}/hosts {{ home_dir }}/browbeat/ansible/hosts + command: mv {{ home_dir }}/hosts {{ browbeat_path }}/ansible/hosts - name: Install requirements.txt into browbeat-venv pip: requirements={{ browbeat_path }}/requirements.txt virtualenv={{ browbeat_venv }}