From a77eebe911b9651575c32dec8cb5ac84e4057192 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 24 Oct 2023 08:54:29 -0700 Subject: [PATCH] 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 --- playbooks/roles/install-ansible/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/install-ansible/tasks/main.yaml b/playbooks/roles/install-ansible/tasks/main.yaml index dabfba0ad2..76a9223dec 100644 --- a/playbooks/roles/install-ansible/tasks/main.yaml +++ b/playbooks/roles/install-ansible/tasks/main.yaml @@ -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