blob: 5b34654d3465c318546eb54b4a8075ff89862198 [file] [log] [blame]
---
# genconfig/tasks/main.yml
- name: Create cord_profile file
copy:
dest: "{{ ( genconfig_dir ~ '/cord_profile' ) | realpath }}"
content: "{{ cord_profile }}"
- name: Create cord_scenario file
copy:
dest: "{{ ( genconfig_dir ~ '/cord_scenario' ) | realpath }}"
content: "{{ cord_scenario }}"
- name: Generate config files
template:
src: "{{ item }}.j2"
dest: "{{ ( genconfig_dir ~ '/' ~ item ) | realpath }}"
with_items:
- inventory.ini
- config.mk
- config.yml