diff options
author | Justin chi <chigang@huawei.com> | 2017-10-16 01:46:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-16 01:46:57 +0000 |
commit | 45af5111e2c39105cdfd38a7ab8f3def25c3779d (patch) | |
tree | 8a2750d18690174100ff24697d39b05e2545ba01 /deploy/adapters/ansible/kubernetes/roles/kargo/tasks | |
parent | b3aec6773447e8ab0b532723b08fd76ebddf9d8c (diff) | |
parent | 179cd6db9f1bd9be1606187cf74e128bede7a8e6 (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.yml | 9 |
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 |