|
|
|
@ -5,7 +5,7 @@ |
|
|
|
wait_for: |
|
|
|
wait_for: |
|
|
|
delay: 5 |
|
|
|
delay: 5 |
|
|
|
port: '{{ hostvars[inventory_hostname].ansible_ssh_port|default(22) }}' |
|
|
|
port: '{{ hostvars[inventory_hostname].ansible_ssh_port|default(22) }}' |
|
|
|
host: '{{ hostvars[inventory_hostname].ansible_ssh_host }}' |
|
|
|
host: '{{ hostvars[inventory_hostname].ansible_host }}' |
|
|
|
search_regex: OpenSSH|dropbear |
|
|
|
search_regex: OpenSSH|dropbear |
|
|
|
timeout: 300 |
|
|
|
timeout: 300 |
|
|
|
delegate_to: localhost |
|
|
|
delegate_to: localhost |
|
|
|
@ -16,7 +16,7 @@ |
|
|
|
-i {{ hostvars[inventory_hostname].ansible_ssh_private_key_file }} \ |
|
|
|
-i {{ hostvars[inventory_hostname].ansible_ssh_private_key_file }} \ |
|
|
|
-oStrictHostkeyChecking=no \ |
|
|
|
-oStrictHostkeyChecking=no \ |
|
|
|
-oBatchMode=yes \ |
|
|
|
-oBatchMode=yes \ |
|
|
|
{{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_ssh_host }} echo test |
|
|
|
{{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_host }} echo test |
|
|
|
register: connection_test |
|
|
|
register: connection_test |
|
|
|
ignore_errors: yes |
|
|
|
ignore_errors: yes |
|
|
|
delegate_to: localhost |
|
|
|
delegate_to: localhost |
|
|
|
|