Skip to content

Commit 992e2fe

Browse files
committed
CI: Install python3-venv on Ubuntu in configure-aio-resources.yml
1 parent 6e2f2dc commit 992e2fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

etc/kayobe/ansible/configure-aio-resources.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
tasks:
99
- name: Install python build dependencies
1010
package:
11-
name:
12-
- "{% if ansible_facts.os_family == 'RedHat' %}gcc{% else %}build-essential{% endif %}"
13-
- "python3-dev{% if ansible_facts.os_family == 'RedHat' %}el{% endif %}"
11+
name: "{{ packages | select | list }}"
1412
cache_valid_time: "{{ apt_cache_valid_time if ansible_facts.os_family == 'Debian' else omit }}"
1513
update_cache: "{{ True if ansible_facts.os_family == 'Debian' else omit }}"
1614
state: present
1715
become: true
16+
vars:
17+
packages:
18+
- "{% if ansible_facts.os_family == 'RedHat' %}gcc{% else %}build-essential{% endif %}"
19+
- "python3-dev{% if ansible_facts.os_family == 'RedHat' %}el{% endif %}"
20+
- "{% if ansible_facts.os_family == 'Debian' %}python3-venv{% endif %}"
1821

1922
- name: Ensure latest version of pip is installed
2023
pip:

0 commit comments

Comments
 (0)