X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=fdio.infra.ansible%2Froles%2Ftopology%2Ftasks%2Fmain.yaml;h=e5b4bb14a422da22c710532029fb6055fcf400dc;hp=cf3eb5367f5593e6a8526fd8e371ff5448010906;hb=0b947247146f27936e986c262fc9f1d641b5ac4f;hpb=df5672b3d9c29b51397f4770eb992c9f3f3955ce diff --git a/fdio.infra.ansible/roles/topology/tasks/main.yaml b/fdio.infra.ansible/roles/topology/tasks/main.yaml index cf3eb5367f..e5b4bb14a4 100644 --- a/fdio.infra.ansible/roles/topology/tasks/main.yaml +++ b/fdio.infra.ansible/roles/topology/tasks/main.yaml @@ -1,9 +1,23 @@ --- # file: roles/topology/tasks/main.yaml -- name: Create topology file - template: - src: "templates/topology_{{ cloud_topology }}.j2" - dest: "../../../../topologies/available/{{ cloud_topology }}_{{ testbed_name }}.yaml" +- name: Create Topology File + ansible.builtin.template: + src: "templates/topology-{{ cloud_topology }}.j2" + dest: "../topologies/available/{{ cloud_topology }}-{{ testbed_name }}.yaml" tags: - create-topology-file + +- name: Create Inventory Folder + ansible.builtin.file: + path: "./inventories/cloud_inventory/" + state: directory + tags: + - create-inventory-folder-cloud + +- name: Create Hosts File + ansible.builtin.template: + src: "templates/hosts.j2" + dest: "./inventories/cloud_inventory/hosts" + tags: + - create-hosts-file-cloud