cd7381d8de
Ansible v2.9 and v2.10 are EOL as [1]. This drops those version supports by following the upstream Ansible. This sets use_ssh_args true always because that is required to use ssh_args on ansible.cfg on Ansible v2.11 or later[2]. ansible_ssh_host is replaced with ansible_host because ansible_ssh_host has been deprecated already and cenots7 jobs were failed due to the deprecated ansible_ssh_host. [1]: https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-changelogs [2]: https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html#parameter-use_ssh_args
12 lines
211 B
YAML
12 lines
211 B
YAML
---
|
|
- hosts: all
|
|
become: False
|
|
gather_facts: False
|
|
|
|
tasks:
|
|
- name: Wait until SSH is available
|
|
wait_for:
|
|
host: "{{ ansible_host }}"
|
|
port: 22
|
|
timeout: 240
|
|
delegate_to: localhost
|