aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/topology/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/topology/tasks/main.yaml')
-rw-r--r--fdio.infra.ansible/roles/topology/tasks/main.yaml18
1 files changed, 16 insertions, 2 deletions
diff --git a/fdio.infra.ansible/roles/topology/tasks/main.yaml b/fdio.infra.ansible/roles/topology/tasks/main.yaml
index cf3eb5367f..a70107478e 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
+- name: Create Topology File
template:
src: "templates/topology_{{ cloud_topology }}.j2"
- dest: "../../../../topologies/available/{{ cloud_topology }}_{{ testbed_name }}.yaml"
+ dest: "../topologies/available/{{ cloud_topology }}_{{ testbed_name }}.yaml"
tags:
- create-topology-file
+
+- name: Create Inventory Folder
+ file:
+ path: "./inventories/cloud_inventory/"
+ state: directory
+ tags:
+ - create-inventory-folder-cloud
+
+- name: Create Hosts File
+ template:
+ src: "templates/hosts.j2"
+ dest: "./inventories/cloud_inventory/hosts"
+ tags:
+ - create-hosts-file-cloud