add pauses after certain config actions

Change-Id: Icddb0df375b0354c59d30d2d48aeb511d13e1230
diff --git a/cord-pod-ansible/roles/config/tasks/main.yml b/cord-pod-ansible/roles/config/tasks/main.yml
index 3016471..d418765 100644
--- a/cord-pod-ansible/roles/config/tasks/main.yml
+++ b/cord-pod-ansible/roles/config/tasks/main.yml
@@ -1,9 +1,5 @@
 ---
 
-- name: run config recipe {{ item.name }}
-  xostosca:
-     port={{ ui_port }}
-     username={{ bootstrap_user }}
-     password={{ bootstrap_password }}
-     recipe={{ lookup('file', item.yaml) }}
+- name: run config recipes
+  include: run_config.yml
   with_items: "{{ config_recipes | default([]) }}"
diff --git a/cord-pod-ansible/roles/config/tasks/run_config.yml b/cord-pod-ansible/roles/config/tasks/run_config.yml
new file mode 100644
index 0000000..cfb64fc
--- /dev/null
+++ b/cord-pod-ansible/roles/config/tasks/run_config.yml
@@ -0,0 +1,12 @@
+- set_fact: recipe="{{ item }}"
+
+- name: run config recipe {{ recipe.name }}
+  xostosca:
+     port={{ ui_port }}
+     username={{ bootstrap_user }}
+     password={{ bootstrap_password }}
+     recipe={{ lookup('file', recipe.yaml) }}
+
+- name: post-recipe delay
+  pause: seconds="{{ recipe.post_delay }}"
+  when: recipe.post_delay is defined
diff --git a/cord-pod-ansible/vars/cord-stack_defaults.yml b/cord-pod-ansible/vars/cord-stack_defaults.yml
index bc0e4e3..5d4081b 100644
--- a/cord-pod-ansible/vars/cord-stack_defaults.yml
+++ b/cord-pod-ansible/vars/cord-stack_defaults.yml
@@ -22,10 +22,10 @@
 config_recipes:
  - { name: "setup", yaml: "{{ setup_dir }}/setup.yaml" }
  - { name: "nodes", yaml: "{{ setup_dir }}/nodes.yaml" }
- - { name: "images", yaml: "{{ setup_dir }}/images.yaml" }
+ - { name: "images", yaml: "{{ setup_dir }}/images.yaml", post_delay: 120 }
  - { name: "vtn-external", yaml: "{{ setup_dir }}/vtn-external.yaml" }
- - { name: "fabric", yaml: "{{ setup_dir }}/fabric.yaml" }
- - { name: "mgmt-net", yaml: "{{ setup_dir }}/mgmt-net.yaml" }
+ - { name: "fabric", yaml: "{{ setup_dir }}/fabric.yaml", post_delay: 30 }
+ - { name: "mgmt-net", yaml: "{{ setup_dir }}/mgmt-net.yaml"}
  - { name: "cord-services", yaml: "{{ setup_dir }}/cord-services.yaml" }
  - { name: "cord-volt-devices", yaml: "{{ setup_dir }}/cord-volt-devices.yaml" }
  - { name: "cord-test-subscriber", yaml: "{{ setup_dir }}/cord-test-subscriber.yaml" }