Compare commits
2 Commits
7a61866736
...
ce2e51bf06
| Author | SHA1 | Date | |
|---|---|---|---|
|
ce2e51bf06
|
|||
|
b6ccbcde2c
|
6
es.ini
Normal file
6
es.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[waykey]
|
||||
192.168.1.34
|
||||
192.168.1.36
|
||||
192.168.1.37
|
||||
192.168.1.47
|
||||
192.168.1.49
|
||||
@@ -16,6 +16,7 @@
|
||||
192.168.1.42
|
||||
192.168.1.43
|
||||
192.168.1.44
|
||||
192.168.1.45
|
||||
192.168.1.47
|
||||
192.168.1.48
|
||||
192.168.1.49
|
||||
|
||||
9
shutdown.yaml
Normal file
9
shutdown.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Shutdown remote servers
|
||||
hosts: all # 或者指定特定的主机组
|
||||
become: yes # 提升权限为root用户
|
||||
tasks:
|
||||
- name: Shutdown the server
|
||||
command: /sbin/shutdown -h now
|
||||
async: 1
|
||||
poll: 0
|
||||
ignore_errors: true # 忽略错误以防止连接中断后任务失败
|
||||
Reference in New Issue
Block a user