1.backup origin deploy.yml to backup_deploy_yml_file

2.merge small task file to one directory
This commit is contained in:
fumingwei
2020-11-27 16:56:49 +06:00
parent 6fc0a90da7
commit cf2e80c4d7
31 changed files with 0 additions and 412 deletions

View File

@@ -0,0 +1,9 @@
- hosts:
- adc_mcn0
- adc_mcn1
- adc_mcn2
- adc_mcn3
remote_user: root
tasks:
- name: "reboot"
reboot:

View File

@@ -0,0 +1,11 @@
- 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

View File

@@ -0,0 +1,12 @@
- hosts: adc_mxn
remote_user: root
tasks:
- name: "reboot adc mcn*"
shell: "{{ item }}"
ignore_errors: true
with_items:
- ssh 192.168.100.1 reboot
- ssh 192.168.100.2 reboot
- ssh 192.168.100.3 reboot
- ssh 192.168.100.4 reboot