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

Change-Id: I2ea9b2ec58913722c4defffbeee88cc420dcbdab
This commit is contained in:
Will Szumski 2024-02-28 14:14:45 +00:00 committed by Michal Nasiadka
parent 27ece2622b
commit 9a5d572a09
9 changed files with 11 additions and 15 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

@ -12,16 +12,16 @@ collections:
- name: stackhpc.network
version: 1.0.0
- name: stackhpc.openstack
version: 0.1.0
version: 0.2.1
roles:
- src: ahuffman.resolv
version: 1.3.1
- src: giovtorres.tuned
version: 1.1.0
version: 1.1.1
- src: jriguera.configdrive
# There are no versioned releases of this role.
version: 29871bf3279ef95fc8f7339b9abd13f869980750
version: acd08fd126d0e442ab8b3bc518e37761390d8c2f
- src: MichaelRigart.interfaces
version: v1.14.4
- src: mrlesmithjr.chrony
@ -45,4 +45,4 @@ roles:
- src: stackhpc.os-ironic-state
version: v1.3.1
- src: stackhpc.timezone
version: 1.2.1
version: 1.2.2