Skip to content

Commit b01eb51

Browse files
committed
Install requirements
1 parent bd69277 commit b01eb51

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

ansible/roles/base/tasks/main.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,3 @@
3030
user: ubuntu
3131
state: present
3232
key: "{{ authorized_key.stdout }}"
33-
34-
- name: Add Deadsnakes PPA for Python 3.12
35-
ansible.builtin.apt_repository:
36-
repo: ppa:deadsnakes/ppa
37-
state: present
38-
39-
- name: Install Python 3.12
40-
ansible.builtin.apt:
41-
name: ansible
42-
state: present
43-
update_cache: true

ansible/roles/wikipedia-mongodb-seeder/files/requirements.txt

Whitespace-only changes.

ansible/roles/wikipedia-mongodb-seeder/tasks/main.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
- name: Add Deadsnakes PPA for Python 3.12
2+
ansible.builtin.apt_repository:
3+
repo: ppa:deadsnakes/ppa
4+
state: present
5+
6+
- name: Install Python 3.12
7+
ansible.builtin.apt:
8+
name:
9+
- python3.12
10+
- python3-pip
11+
state: present
12+
update_cache: true
13+
114
- name: Copy python scripts to remote server
215
ansible.builtin.copy:
316
src: "{{ item }}"
@@ -6,3 +19,14 @@
619
mode: "0775"
720
with_fileglob:
821
- "files/*.py"
22+
23+
- name: Copy requirements to remote server
24+
ansible.builtin.copy:
25+
src: files/requirements.txt
26+
dest: /home/ubuntu/
27+
owner: ubuntu
28+
mode: "0775"
29+
30+
- name: Install Python requirements
31+
ansible.builtin.pip:
32+
requirements: requirements.txt

0 commit comments

Comments
 (0)