1、commit the file privilege that is changed

2、add function that is to reboot and  stop device manager in mxn
This commit is contained in:
fumingwei
2021-03-08 10:54:59 +08:00
parent 853b24c9e3
commit c80ec96e6e
20 changed files with 133 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
- hosts:
- adc_mxn
- adc_mcn0
- adc_mcn1
- adc_mcn2

View File

@@ -0,0 +1,12 @@
- hosts: adc_mxn
remote_user: root
tasks:
- name: "reboot adc in mxn by ipmitool"
shell: "{{ item }}"
ignore_errors: true
with_items:
- ipmitool -t 0x90 chassis power reset
- ipmitool -t 0x80 chassis power reset
- ipmitool -t 0x98 chassis power reset
- ipmitool -t 0x88 chassis power reset
- reboot