aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/topology/tasks/main.yaml
blob: 1dc704331d74f7576f073650ee8785ae522b2642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
# file: tasks/main.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