Chore: Openstack/devstack template updates 77/71877/3
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Wed, 28 Jun 2023 12:51:26 +0000 (13:51 +0100)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Wed, 28 Jun 2023 13:10:24 +0000 (14:10 +0100)
Add further Ubuntu packages and fix missing conditional statements

Issue: RELENG-4765
Change-Id: Ic1a42f501a688eeb8202cd8baa1e1da21512aed3
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
provision/devstack.yaml

index cf037c1..811a49d 100644 (file)
   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