Skip to content

Commit 1f1c50e

Browse files
committed
feat: install python minimum dependencies
Fortunately, Debian/Ubuntu help us on that with `build-dep` option of `apt`.
1 parent cb86c7d commit 1f1c50e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tasks/deps.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
---
22

3+
- name: Add source repository into sources list
4+
ansible.builtin.apt_repository:
5+
repo: deb-src http://archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }} main
6+
state: present
7+
38
- name: Update APT sources
49
become: true
510
ansible.builtin.apt:
611
update_cache: true
712

13+
# See https://devguide.python.org/getting-started/setup-building/#install-dependencies
14+
- name: Dependencies Python | Install build time dependencies
15+
become: true
16+
ansible.builtin.apt:
17+
state: build-dep
18+
name:
19+
- python3
20+
21+
# Again, see https://devguide.python.org/getting-started/setup-building/#install-dependencies
822
- name: Dependencies Python | Install compile time dependencies
923
become: true
1024
ansible.builtin.apt:

0 commit comments

Comments
 (0)