From dcfb11ead79cc3071a4a1a606d76916dee01603b Mon Sep 17 00:00:00 2001
From: keshavprasadms <keshavprasadms@gmail.com>
Date: Fri, 13 May 2022 10:03:09 +0530
Subject: [PATCH] fix: python packages for ubuntu 18 and above

---
 ansible/roles/keycloak-deploy/tasks/bootstrap.yml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/ansible/roles/keycloak-deploy/tasks/bootstrap.yml b/ansible/roles/keycloak-deploy/tasks/bootstrap.yml
index 3926a6502..7df5d1e50 100644
--- a/ansible/roles/keycloak-deploy/tasks/bootstrap.yml
+++ b/ansible/roles/keycloak-deploy/tasks/bootstrap.yml
@@ -39,12 +39,16 @@
     update_cache: true
   run_once: true
 
-- name: Ensure pip is installed
-  apt: name=python-pip update_cache=yes
+- name: Ensure python packages are installed
+  apt: 
+    name: ["python-pip", "python-dev"]
+    update_cache: yes
   when: ansible_os_family == 'Debian' and ansible_distribution_version | float < 18
 
-- name: Ensure pip is installed
-  apt: name=python3-pip update_cache=yes
+- name: Ensure python packages are installed
+  apt:
+    name: ["python3-pip", "python3-dev"]
+    update_cache: yes
   when: ansible_os_family == 'Debian' and ansible_distribution_version | float > 18
 
 - name: Copying python libraries
-- 
GitLab