Skip to content

Commit

Permalink
ansible: add swap to DigitalOcean Ubuntu 22.04 (#3877)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Sep 2, 2024
1 parent d638c14 commit 499c78e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ hosts:
ubuntu2204_docker-x64-1: {ip: 134.209.55.216}
ubuntu2204_docker-x64-2: {ip: 159.89.183.200}
ubuntu1804-x64-1: {ip: 178.128.181.213}
ubuntu2204-x64-1: {ip: 138.197.4.1}
ubuntu2204-x64-2: {ip: 167.99.124.188}
ubuntu2204-x64-1: {ip: 138.197.4.1, swap_file_size_mb: 2048}
ubuntu2204-x64-2: {ip: 167.99.124.188, swap_file_size_mb: 2048}

- equinix:
ubuntu2004_docker-arm64-1: {ip: 145.40.81.219}
Expand Down
9 changes: 9 additions & 0 deletions ansible/roles/bootstrap/tasks/partials/ubuntu2204.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---

#
# Ubuntu 22.04
#

- name: set up swap on Linux
include_tasks: linux-swap.yml
when: swap_file_size_mb is defined

0 comments on commit 499c78e

Please sign in to comment.