This website works better with JavaScript.
首頁
探索
說明
註冊
登入
ka
/
ansible-role-reboot
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
current
master
Markus Katharina Brechtel
7 年之前
父節點
75dfb344a2
當前提交
d251cedd11
共有
2 個文件被更改
,包括
9 次插入
和
2 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
defaults/main.yml
+7
-2
tasks/main.yml
+ 2
- 0
defaults/main.yml
查看文件
@@ -0,0 +1,2 @@
reboot_delay: 120
reboot_timeout: 300
+ 7
- 2
tasks/main.yml
查看文件
@@ -1,10 +1,15 @@
---
- name: reboot
command: shutdown -r
1
command: shutdown -r
30
async: 0
poll: 0
ignore_errors: true
- name: wait for ssh
local_action: wait_for host={{ ansible_host | default(inventory_hostname) }} port=22 search_regex=OpenSSH delay={{ reboot_delay | default(120) }} state=started
local_action: wait_for host={{ ansible_host | default(inventory_hostname) }} port=22 search_regex=OpenSSH delay={{ reboot_delay }} timeout={{ reboot_timeout }} state=started
- name: try to connect to ssh
setup:
retries: 10
delay: 5
Write
Preview
Loading…
取消
儲存