diff --git a/roles/ensure-python/tasks/main.yaml b/roles/ensure-python/tasks/main.yaml index 7b3a59487..01a8cc0a1 100644 --- a/roles/ensure-python/tasks/main.yaml +++ b/roles/ensure-python/tasks/main.yaml @@ -1,5 +1,7 @@ - name: Install specified version of python interpreter and development files - when: python_version is defined + when: + - python_version is defined + - ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' package: name: python{{ python_version }}-dev state: present