FIX: Allow configuration of IPMI privilege level
[ta/infra-ansible.git] / roles / initial_poweroff_hosts / tasks / poweroff_real_nodes.yml
index 6a188f4..ea5f098 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 - name: Ensure all the nodes in the deployment are powered-off.
-  command: "/usr/bin/ipmitool -I lanplus -H {{item.value['hwmgmt']['address']}} -U {{item.value['hwmgmt']['user']}} -P {{item.value['hwmgmt']['password']}} chassis power off"
+  command: "/usr/bin/ipmitool -I lanplus -H {{item.value['hwmgmt']['address']}} -U {{item.value['hwmgmt']['user']}} -P {{item.value['hwmgmt']['password']}} -L {{item.value['hwmgmt']['priv_level']}} chassis power off"
   with_dict: "{{nodes_to_power_off}}"
   no_log: True
   when: