Cap ruamel.yaml install for ARA

ARA is not compatible with latest ruamel.yaml which leads to errors
running ansible. Fix this by capping the ruamel.yaml version we install.

Change-Id: Ia5db3ba8579e7e5c1fe375b156323b94f341ad3e
This commit is contained in:
Clark Boylan 2023-10-24 08:54:29 -07:00
parent bd3fd30462
commit a77eebe911

View File

@ -13,7 +13,9 @@
- name: Add ARA to defaults if enabled
when: install_ansible_ara_enable
set_fact:
_install_ansible_requirements: '{{ _install_ansible_requirements + ["ara[server]"] }}'
# Ruamel.yaml 0.18.0 and newer removed a bunch of deprecated functions
# that ARA depends on. Cap the version until ARA updates.
_install_ansible_requirements: '{{ _install_ansible_requirements + ["ara[server]", "ruamel.yaml<0.18.0"] }}'
- name: Set variable
# NOTE(ianw) the block when: statement is calcuated for each task