From a46422838d7bb2a1f78c6e5f3fb27ed3385a2875 Mon Sep 17 00:00:00 2001
From: Ian Wienand <iwienand@redhat.com>
Date: Thu, 7 May 2020 14:58:20 +1000
Subject: [PATCH] Move build-essential arm64 things to base

The "there's no wheel for that" problem is a pretty generic thing on
arm64 nodes; also install the basic builder packages to during base so
it applies to all arm64 servers.

Change-Id: Ib420001de673f4d8f935be9b97f7d16818195cd5
---
 playbooks/roles/base-server/tasks/Debian.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/playbooks/roles/base-server/tasks/Debian.yaml b/playbooks/roles/base-server/tasks/Debian.yaml
index 342c3577d4..d5e8c89ebe 100644
--- a/playbooks/roles/base-server/tasks/Debian.yaml
+++ b/playbooks/roles/base-server/tasks/Debian.yaml
@@ -75,3 +75,12 @@
      dest: /etc/apt/apt.conf.d/50unattended-upgrades
      owner: root
      group: root
+
+- name: Ensure required build packages for non-wheel architectures
+  apt:
+    update_cache: yes
+    name:
+      - libffi-dev
+      - libssl-dev
+      - build-essential
+  when: ansible_architecture == 'aarch64'