Bump up Ansible supported versions to 8.x/9.x

This change bumps up the maximum supported Ansible version to 9.x
(ansible-core 2.16.x) and minimum to 8.x. This synchronises Kayobe with
Kolla Ansible.

Notable changes
---------------

- Removed use of get_md5 when using stat module, See:
  d955fb1590

- Remove use of include (instead of import_tasks/include_tasks) which
  has now been removed. See:
  8db9bd7574

Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/907522
Change-Id: I2ea9b2ec58913722c4defffbeee88cc420dcbdab
This commit is contained in:
Will Szumski 2024-02-28 14:14:45 +00:00
parent b9ca63dbea
commit 02b971b83d
9 changed files with 19 additions and 19 deletions

View File

@ -33,7 +33,6 @@
stat:
path: "{{ kolla_config_path ~ '/.environment' }}"
get_checksum: False
get_md5: False
mime: False
register: kolla_environment_file

View File

@ -31,7 +31,6 @@
- name: Check for the presence of locally built Ironic Python Agent (IPA) images
stat:
path: "{{ image_cache_path }}/{{ ipa_image_name }}/{{ item }}"
get_md5: False
get_checksum: False
mime: False
with_items: "{{ ipa_images }}"
@ -52,7 +51,6 @@
local_action:
module: stat
path: "{{ hostvars.localhost.image_cache_path }}"
get_md5: False
get_checksum: False
mime: False
register: image_cache_stat

View File

@ -38,7 +38,6 @@
- name: Check for the presence of locally built Ironic Python Agent (IPA) images
stat:
path: "{{ image_cache_path }}/{{ ipa_image_name }}/{{ item }}"
get_md5: False
get_checksum: False
mime: False
with_items: "{{ ipa_images }}"
@ -69,7 +68,6 @@
- name: Check whether the image cache directory exists
stat:
path: "{{ image_cache_path }}"
get_md5: False
get_checksum: False
mime: False
register: image_cache_stat

View File

@ -14,7 +14,6 @@
stat:
path: "{{ bootstrap_ssh_private_key_path }}"
get_checksum: False
get_md5: False
mime: False
register: ssh_key_stat

View File

@ -45,7 +45,6 @@
stat:
path: "{{ vm_configdrive_path }}"
get_checksum: False
get_md5: False
mime: False
register: stat_result

View File

@ -98,7 +98,6 @@
stat:
path: "{{ seed_vm_configdrive_path }}"
get_checksum: False
get_md5: False
mime: False
register: stat_result

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
Updates the maximum supported version of Ansible from 8.x (ansible-core
2.15) to 9.x (ansible-core 2.16). The minimum supported version is updated
from 7.x to 8.x. This is true for both Kayobe and Kolla Ansible.

View File

@ -1,8 +1,6 @@
pbr>=2.0 # Apache-2.0
Jinja2>3 # BSD
ansible>=7,<9.0 # GPLv3
# NOTE(priteau): Temporary pin while we figure out issues with new ansible-core
ansible-core<2.15.7 # GPLv3
ansible>=8,<10 # GPLv3
cliff>=3.1.0 # Apache
netaddr!=0.7.16,>=0.7.13 # BSD
PyYAML>=3.10.0 # MIT

View File

@ -11,17 +11,20 @@ collections:
version: 1.2.1
- name: stackhpc.network
version: 1.0.0
- name: stackhpc.openstack
version: 0.1.0
- name: https://github.com/stackhpc/ansible-collection-openstack.git
type: git
version: feature/2.16
roles:
- src: ahuffman.resolv
version: 1.3.1
- src: giovtorres.tuned
version: 1.1.0
- src: jriguera.configdrive
- name: giovtorres.tuned
src: git+https://github.com/stackhpc/ansible-role-tuned
version: feature/2.16
- name: jriguera.configdrive
src: git+https://github.com/stackhpc/ansible-role-configdrive
# There are no versioned releases of this role.
version: 29871bf3279ef95fc8f7339b9abd13f869980750
version: feature/2.16
- src: MichaelRigart.interfaces
version: v1.14.4
- src: mrlesmithjr.chrony
@ -44,5 +47,6 @@ roles:
version: 0.4.2
- src: stackhpc.os-ironic-state
version: v1.3.1
- src: stackhpc.timezone
version: 1.2.1
- name: stackhpc.timezone
src: git+https://github.com/stackhpc/ansible-timezone
version: feature/2.16