From 12143086e8d5018a5d2d78ecf75936b3fa670b1d Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Wed, 28 Jun 2023 13:51:26 +0100 Subject: [PATCH] Chore: Openstack/devstack template updates Add further Ubuntu packages and fix missing conditional statements Issue: RELENG-4765 Change-Id: Ic1a42f501a688eeb8202cd8baa1e1da21512aed3 Signed-off-by: Matthew Watkins --- provision/devstack.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/provision/devstack.yaml b/provision/devstack.yaml index cf037c1..811a49d 100644 --- a/provision/devstack.yaml +++ b/provision/devstack.yaml @@ -11,13 +11,22 @@ tasks: - name: "Install devstack dependencies" block: - - name: Install xpath dependencies + - name: Install xpath dependencies (CentOS/RedHat) yum: name: - perl-XML-XPath - crudini state: present become: true + when: ansible_os_family == 'RedHat' + - name: Install xpath dependencies (Ubuntu/Debian) + apt: + name: + - libxml-xpath-perl + - crudini + state: present + become: true + when: ansible_os_family == 'Debian' - name: Installing non-baseline requirements (CentOS/RedHat) yum: name: @@ -28,6 +37,7 @@ - "@development" state: present become: true + when: ansible_os_family == 'RedHat' - name: Installing non-baseline requirements (Ubuntu/Debian) apt: name: @@ -38,7 +48,7 @@ - build-essential state: present become: true - when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian" + when: ansible_os_family == 'Debian' - name: check if net link setup exists stat: path: /etc/udev/rules.d/80-net-setup-link.rules -- 2.16.6