Quellcode durchsuchen

Issue #489: Updated configure_new_devices role

Signed-off-by: abhishek-s-a <a_sa@dellteam.com>
abhishek-s-a vor 3 Jahren
Ursprung
Commit
96ba8f51c6
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      control_plane/tools/roles/configure_new_devices/tasks/main.yml

+ 5 - 1
control_plane/tools/roles/configure_new_devices/tasks/main.yml

@@ -93,6 +93,10 @@
       changed_when: true
       no_log: true
 
+    - name: Wait for 10 mins for DHCP to assign IP to devices
+      wait_for:
+        timeout: "{{ dhcp_wait_time }}"
+
     - name: Launch idrac_template
       command: >-
         awx --conf.host {{ awx_host }} --conf.username {{ awx_username }} --conf.password {{ awx_password }}
@@ -101,4 +105,4 @@
       changed_when: false
       no_log: true
       when: inventory_hostname not in fetch_inventory.stdout
-  when: provisioned_idrac_inventory_name in inventory_list.stdout
+  when: provisioned_idrac_inventory_name in inventory_list.stdout