Sfoglia il codice sorgente

wait for ssh port

master
parent
commit
0e98ec0861
1 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. +5
    -6
      tasks/main.yml

+ 5
- 6
tasks/main.yml Vedi File

@@ -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


Loading…
Annulla
Salva