diff --git a/ansible/roles/keycloak-deploy/tasks/bootstrap.yml b/ansible/roles/keycloak-deploy/tasks/bootstrap.yml index 3926a6502cfd78df25cec82601990538f6a43860..7df5d1e5038d84865cbf280fdfee7f9a2e83d402 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