aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes
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/kubernetes
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/kubernetes')
-rw-r--r--deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
index 2763e53e..0ce79824 100644
--- a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
+++ b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
@@ -67,7 +67,7 @@
- name: copy inventoriy.json file
copy:
- src: /var/ansible/run/kubernetes-opnfv2/inventories/inventory.json
+ src: "{{ run_dir }}/inventories/inventory.json"
dest: /tmp/inventory.json
tags:
- ansible