From e874697108e73852e68961af1c0bc564b72290cc Mon Sep 17 00:00:00 2001 From: rajeshP524 Date: Thu, 19 Jan 2023 10:00:45 +0530 Subject: [PATCH] Set dell hosts boot order to director --- scaleout.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/scaleout.yml b/scaleout.yml index 1c27b5b..790f61e 100644 --- a/scaleout.yml +++ b/scaleout.yml @@ -59,6 +59,23 @@ lab_vars: "{{ (lab_name == 'scale') | ternary(scale, alias) }}" when: lab_name in ['scale', 'alias'] + - block: + - name: clear existing dell-hosts file + shell: echo "" > {{ playbook_dir }}/badfish/dell-hosts + + - name: prepare dell hosts for badfish + shell: echo "mgmt-{{ item[1].stdout }}" >> {{ playbook_dir }}/badfish/dell-hosts + when: vendors is defined and item[0] == "dell" + with_together: + - "{{ vendors }}" + - "{{ host_list.results }}" + + - name: set boot order to director + include_tasks: tasks/set_boot_order_director.yml + vars: + chassis_password: "{{ stack_data.nodes[0].pm_password }}" + when: lab_name in ['scale', 'alias'] and set_boot_order == true + - name: set machine count set_fact: total_machine_count: {}