blob: 5b34654d3465c318546eb54b4a8075ff89862198 [file] [log] [blame]
Zack Williamsce63eb02017-02-28 10:46:22 -07001---
2# genconfig/tasks/main.yml
3
4- name: Create cord_profile file
5 copy:
6 dest: "{{ ( genconfig_dir ~ '/cord_profile' ) | realpath }}"
7 content: "{{ cord_profile }}"
8
9- name: Create cord_scenario file
10 copy:
11 dest: "{{ ( genconfig_dir ~ '/cord_scenario' ) | realpath }}"
12 content: "{{ cord_scenario }}"
13
14- name: Generate config files
15 template:
16 src: "{{ item }}.j2"
17 dest: "{{ ( genconfig_dir ~ '/' ~ item ) | realpath }}"
18 with_items:
19 - inventory.ini
20 - config.mk
21 - config.yml
22