aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/setup-infrastructure
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-01-23 17:10:58 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-01-23 17:10:58 +0800
commit280b401e7eb80b1ef47b0bfbc694e27930b096a2 (patch)
tree0c8a5171e743afcbb574b1fc03f3a0f307799112 /deploy/adapters/ansible/roles/setup-infrastructure
parent24e25de8fc981e3b33ffaa71e76f27dedcf6b89e (diff)
Use run_dir instead of hard coding
Cluster name now can be set in DHA file which makes ansible dir changeable. Use run_dir variable to point to correct dir. Change-Id: I673b0b472b86ce505a8ea29ce4fb3666b4b991bd Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/setup-infrastructure')
-rw-r--r--deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml b/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml
index 7cf5c86f..4e3a926f 100644
--- a/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/setup-infrastructure/tasks/main.yml
@@ -8,7 +8,7 @@
##############################################################################
---
- name: setup infrastructure
- shell: "export ANSIBLE_LOG_PATH=/var/ansible/run/openstack_pike-opnfv2/ansible.log; \
+ shell: "export ANSIBLE_LOG_PATH={{ run_dir }}/ansible.log; \
export ANSIBLE_SCP_IF_SSH=y; \
cd /opt/openstack-ansible/playbooks; \
openstack-ansible setup-infrastructure.yml \