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:
@@ -1,4 +1,5 @@
|
||||
- hosts:
|
||||
- adc_mxn
|
||||
- adc_mcn0
|
||||
- adc_mcn1
|
||||
- adc_mcn2
|
||||
|
||||
12
tasks/reboot/reboot_adc_mxn_mcn_by_ipmitool.yml
Normal file
12
tasks/reboot/reboot_adc_mxn_mcn_by_ipmitool.yml
Normal 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
|
||||
@@ -0,0 +1,12 @@
|
||||
- hosts: adc_mxn
|
||||
remote_user: root
|
||||
tasks:
|
||||
- name: "oam stop and disable: stop oam_core, oam_snmp service, tsg-monitor"
|
||||
systemd:
|
||||
name: "{{ item }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
with_items:
|
||||
- oam_core.service
|
||||
- oam_snmp.service
|
||||
- tsg-monitor.service
|
||||
@@ -10,6 +10,7 @@
|
||||
name: telegraf_collect
|
||||
state: stopped
|
||||
enabled: no
|
||||
ignore_errors: yes
|
||||
|
||||
- name: 'telegraf_collect config file and service file'
|
||||
shell: rm /etc/telegraf/telegraf_collect.conf; rm /usr/lib/systemd/system/telegraf_collect.service; systemctl daemon-reload
|
||||
|
||||
Reference in New Issue
Block a user