aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes/roles/kargo/tasks
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-10-16 01:46:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-16 01:46:57 +0000
commit45af5111e2c39105cdfd38a7ab8f3def25c3779d (patch)
tree8a2750d18690174100ff24697d39b05e2545ba01 /deploy/adapters/ansible/kubernetes/roles/kargo/tasks
parentb3aec6773447e8ab0b532723b08fd76ebddf9d8c (diff)
parent179cd6db9f1bd9be1606187cf74e128bede7a8e6 (diff)
Merge "Modification for kargo to generate dynamic inventory"
Diffstat (limited to 'deploy/adapters/ansible/kubernetes/roles/kargo/tasks')
-rw-r--r--deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml9
1 files changed, 8 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 4e902606..d3dcb878 100644
--- a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
+++ b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
@@ -58,11 +58,18 @@
tags:
- ansible
+- name: copy inventoriy.json file
+ copy:
+ src: /var/ansible/run/kubernetes-opnfv2/inventories/inventory.json
+ dest: /tmp/inventory.json
+ tags:
+ - ansible
+
- name: generate kargo inventories
shell: >
python /tmp/generate_inventories.py \
"/opt/kargo_k8s/inventory/inventory.cfg" \
- "{{ ip_settings | to_json }}"
+ "/tmp/inventory.json"
tags:
- ansible