浏览代码

wait for ssh port

master
父节点
当前提交
0e98ec0861
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. +5
    -6
      tasks/main.yml

+ 5
- 6
tasks/main.yml 查看文件

@@ -13,15 +13,14 @@
pause:
seconds: "{{ reboot_pause_seconds }}"

- name: wait for ssh
local_action: wait_for
args:
host: "{{ ansible_host | default(inventory_hostname) }}"
- name: wait for ssh port
wait_for:
host: "{{ ansible_host | default(inventory_hostname) }}"
port: 22
search_regex: OpenSSH
delay: 0
timeout: "{{ reboot_wait_timeout_seconds }}"
state: started
vars:
ansible_connection: local

- include_role:
name: ssh_host_key


正在加载...
取消
保存