1.backup origin deploy.yml to backup_deploy_yml_file
2.merge small task file to one directory
This commit is contained in:
12
tasks/reboot/reboot_adc_mcn_by_ssh.yml
Normal file
12
tasks/reboot/reboot_adc_mcn_by_ssh.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user