Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame] | 1 | --- |
| 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 | |