
Ansible 9 removes the get_md5 parameter and it is an error to use it. Currently openstack's zuul tenant defaults to ansible 8 but at some point (hopefully in the not too distant future) we will set ansible 9 to be default and we'll need to stop setting this parameter. Go ahead and do so now. Note this may cause ansible 8 tasks to run a little bit longer but the impact should be minimal and makes use more future proof. Change-Id: I9ebae82e5ab485d2d9adb4e0ef26868cbec0f80f
27 lines
773 B
YAML
27 lines
773 B
YAML
- name: Check for tox_install.sh
|
|
stat:
|
|
path: "{{ zuul_work_dir }}/tools/tox_install.sh"
|
|
get_checksum: false
|
|
get_mime: false
|
|
register: tox_install
|
|
|
|
- name: Require Constraints File
|
|
when: tox_install.stat.exists and constraints_file is not defined
|
|
fail:
|
|
msg: tox_install.sh projects require a constraints file to be set
|
|
|
|
- name: Ensure log directory exists for backwards compat
|
|
when: tox_install.stat.exists
|
|
file:
|
|
path: '{{ zuul_work_virtualenv }}/log'
|
|
state: directory
|
|
|
|
- name: Install extra things needed by tox_install.sh
|
|
when: tox_install.stat.exists
|
|
shell:
|
|
executable: /bin/bash
|
|
cmd: |
|
|
source {{ zuul_work_virtualenv }}/bin/activate
|
|
tools/tox_install.sh {{ constraints_file }}
|
|
chdir: "{{ zuul_work_dir }}"
|