diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-01-23 17:10:58 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-01-23 17:10:58 +0800 |
commit | 280b401e7eb80b1ef47b0bfbc694e27930b096a2 (patch) | |
tree | 0c8a5171e743afcbb574b1fc03f3a0f307799112 /deploy/adapters/ansible/kubernetes/roles | |
parent | 24e25de8fc981e3b33ffaa71e76f27dedcf6b89e (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/roles')
-rw-r--r-- | deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml | 2 |
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 |