Skip to content

Commit 8a34892

Browse files
committed
Disable earlyoom on staging instance
The staging instance is quite small and running the playbook fails because earlyoom terminates its execution.
1 parent 131ce3a commit 8a34892

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

ansible/roles/dev-desktop/tasks/dependencies.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
- clang
1717
- cmake
1818
- gcc-mingw-w64-x86-64 # Allows running `x check --target x86_64-pc-windows-gnu`
19-
- earlyoom # Earlyoom kills processes using too much memory before they can cause trouble.
2019
- jq
2120
- libssl-dev
2221
- llvm

ansible/roles/dev-desktop/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22

3+
- include_tasks: oom.yml
34
- include_tasks: dependencies.yml
45
- include_tasks: podman.yml
56
- include_tasks: quota.yml
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
# earlyoom kills processes using too much memory before they can cause trouble.
3+
- name: Install earlyoom
4+
ansible.builtin.apt:
5+
name: earlyoom
6+
state: present
7+
8+
# The staging instance is so small that earlyoom prevents Ansible from executing
9+
# the playbook successfully.
10+
- name: Disable earlyoom on staging
11+
ansible.builtin.service:
12+
name: earlyoom
13+
enabled: no
14+
state: stopped
15+
when: ansible_hostname == "dev-desktop-staging"

0 commit comments

Comments
 (0)