[CORD-795]
Docker image building/tagging/labeling, Makefile based build
Change-Id: I0d70ab01353999c0e0585547582af9c62d247987
diff --git a/ansible/roles/genconfig/tasks/main.yml b/ansible/roles/genconfig/tasks/main.yml
new file mode 100644
index 0000000..5b34654
--- /dev/null
+++ b/ansible/roles/genconfig/tasks/main.yml
@@ -0,0 +1,22 @@
+---
+# 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
+