Drop Ansible support for v2.9 and v2.10 (#8925)

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
This commit is contained in:
Kenichi Omichi
2022-06-09 07:07:42 -07:00
committed by GitHub
parent f53764f949
commit cd7381d8de
14 changed files with 10 additions and 73 deletions

View File

@@ -1,6 +1,6 @@
[all]
{% for instance in vms.results %}
instance-{{ loop.index }} ansible_ssh_host={{instance.stdout}}
instance-{{ loop.index }} ansible_host={{instance.stdout}}
{% endfor %}
{% if mode is defined and mode in ["separate", "separate-scale"] %}

View File

@@ -6,7 +6,7 @@
tasks:
- name: Wait until SSH is available
wait_for:
host: "{{ ansible_ssh_host }}"
host: "{{ ansible_host }}"
port: 22
timeout: 240
delegate_to: localhost