Browse Source

Merge "Limit ensure-python to Debian/Ubuntu use"

master
Zuul 7 months ago
parent
commit
7bf2ddec83
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      roles/ensure-python/tasks/main.yaml

+ 3
- 1
roles/ensure-python/tasks/main.yaml View File

@@ -1,5 +1,7 @@
1 1
 - name: Install specified version of python interpreter and development files
2
-  when: python_version is defined
2
+  when:
3
+    - python_version is defined
4
+    - ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
3 5
   package:
4 6
     name: python{{ python_version }}-dev
5 7
     state: present

Loading…
Cancel
Save