Remove get_md5 parameter from stat module.

The get_md5 parameter was removed with ansible 9.
https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_9.html#id44

If it is being used the following error appears:
"Unsupported parameters for (stat) module: get_md5..."

Unrelated, but also blocking testing/merging of this change, the
Ansible version specs for older python versions is loosened
to allow installing older versions of Ansible on test nodes (like
focal) that have older pythons that are unsupported by newer Ansible.

Change-Id: I99dd4f16fde659d84eb3dfa191557b3d9508b0fb
This commit is contained in:
Lukas Kranz 2024-06-10 07:58:27 +02:00 committed by James E. Blair
parent bd1d95ccdd
commit d8ec17cab0
13 changed files with 6 additions and 20 deletions

View File

@ -4,7 +4,6 @@
path: "{{ zuul_work_dir }}/releasenotes/source/locale" path: "{{ zuul_work_dir }}/releasenotes/source/locale"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: translations register: translations
- name: Prepare release note translations - name: Prepare release note translations

View File

@ -9,7 +9,6 @@
path: "{{ constraints_file }}" path: "{{ constraints_file }}"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: stat_results register: stat_results
when: constraints_file is defined when: constraints_file is defined

View File

@ -21,7 +21,6 @@
stat: stat:
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
path: "{{ zuul_work_dir }}/requirements.txt" path: "{{ zuul_work_dir }}/requirements.txt"
register: requirements_file register: requirements_file

View File

@ -4,7 +4,6 @@
path: "{{ zuul_work_dir }}/yarn.lock" path: "{{ zuul_work_dir }}/yarn.lock"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: yarn_lock_exists register: yarn_lock_exists
- name: Set js_build_tool fact - name: Set js_build_tool fact

View File

@ -3,7 +3,6 @@
path: "{{ tox_constraints_file }}" path: "{{ tox_constraints_file }}"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: stat_results register: stat_results
when: tox_constraints_file is defined when: tox_constraints_file is defined
@ -26,7 +25,6 @@
path: "{{ zuul_work_dir }}/yarn.lock" path: "{{ zuul_work_dir }}/yarn.lock"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: yarn_lock_exists register: yarn_lock_exists
- name: Set js_build_tool fact - name: Set js_build_tool fact

View File

@ -22,7 +22,6 @@
path: "{{ zuul_work_dir }}/yarn.lock" path: "{{ zuul_work_dir }}/yarn.lock"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: yarn_lock register: yarn_lock
- name: Check for shrinkwrap - name: Check for shrinkwrap
@ -30,7 +29,6 @@
path: "{{ zuul_work_dir }}/npm-shrinkwrap.json" path: "{{ zuul_work_dir }}/npm-shrinkwrap.json"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
when: not yarn_lock.stat.exists when: not yarn_lock.stat.exists
register: shrinkwrap register: shrinkwrap
@ -59,7 +57,6 @@
path: "{{ zuul_work_dir }}/reports" path: "{{ zuul_work_dir }}/reports"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: reports_stat register: reports_stat
- name: Collect npm reports - name: Collect npm reports
@ -77,7 +74,6 @@
path: "{{ zuul_work_dir }}/karma.subunit" path: "{{ zuul_work_dir }}/karma.subunit"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: karma_stat register: karma_stat
- name: Collect karma subunit files - name: Collect karma subunit files
@ -96,7 +92,6 @@
path: "{{ zuul_work_dir }}/npm-shrinkwrap.json" path: "{{ zuul_work_dir }}/npm-shrinkwrap.json"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: shrinkwrap_final register: shrinkwrap_final
- name: Collect shrinkwrap file - name: Collect shrinkwrap file
@ -116,7 +111,6 @@
path: "{{ zuul_work_dir }}/{{ javascript_content_dir }}" path: "{{ zuul_work_dir }}/{{ javascript_content_dir }}"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: javascript_output register: javascript_output
- name: Collect javascript output - name: Collect javascript output

View File

@ -7,7 +7,6 @@
path: "{{ zuul_work_dir }}/{{ sphinx_build_dir }}/pdf/{{ zj_sphinx_pdf }}" path: "{{ zuul_work_dir }}/{{ sphinx_build_dir }}/pdf/{{ zj_sphinx_pdf }}"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
with_items: "{{ sphinx_pdf_files }}" with_items: "{{ sphinx_pdf_files }}"
loop_control: loop_control:
loop_var: zj_sphinx_pdf loop_var: zj_sphinx_pdf

View File

@ -3,7 +3,6 @@
path: "{{ constraints_file | default('missing') }}" path: "{{ constraints_file | default('missing') }}"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: stat_results register: stat_results
when: constraints_file is defined when: constraints_file is defined

View File

@ -20,7 +20,6 @@
path: "{{ zuul_work_dir }}/yarn.lock" path: "{{ zuul_work_dir }}/yarn.lock"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: yarn_lock_exists register: yarn_lock_exists
- name: Set js_build_tool fact - name: Set js_build_tool fact

View File

@ -3,7 +3,6 @@
path: "{{ nox_constraints_file }}" path: "{{ nox_constraints_file }}"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: stat_results register: stat_results
when: nox_constraints_file is defined when: nox_constraints_file is defined

View File

@ -68,7 +68,6 @@
path: "{{ zuul_work_virtualenv }}/bin/whereto" path: "{{ zuul_work_virtualenv }}/bin/whereto"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: whereto register: whereto
- name: Check for htaccess - name: Check for htaccess
@ -76,7 +75,6 @@
path: "{{ zuul_work_dir }}/{{ sphinx_source_dir }}/_extra/.htaccess" path: "{{ zuul_work_dir }}/{{ sphinx_source_dir }}/_extra/.htaccess"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: htaccess register: htaccess
- name: Run whereto - name: Run whereto

View File

@ -3,7 +3,6 @@
path: "{{ tox_constraints_file }}" path: "{{ tox_constraints_file }}"
get_checksum: false get_checksum: false
get_mime: false get_mime: false
get_md5: false
register: stat_results register: stat_results
when: tox_constraints_file is defined when: tox_constraints_file is defined

View File

@ -7,7 +7,12 @@
# by 4 weeks to give people time to update before any roles start # by 4 weeks to give people time to update before any roles start
# depending on new features. # depending on new features.
ansible>=8,<9 # Some older versions of Ansible don't support older versions of
# python we have on older test nodes, so do the best we can in those
# cases.
ansible>=6,<9;python_version<'3.9'
ansible>=8,<9;python_version>='3.9'
stestr>=1.0.0,<3.0.0;python_version<'3.5' # Apache-2.0 stestr>=1.0.0,<3.0.0;python_version<'3.5' # Apache-2.0
stestr>=1.0.0;python_version>='3.5' # Apache-2.0 stestr>=1.0.0;python_version>='3.5' # Apache-2.0