From 7f78d8023aaa3431900c095876d6a227bf011f25 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sat, 9 Dec 2023 00:17:37 +0000 Subject: [PATCH] ansible: add swap to test-rackspace-debian11-x64-1 (#3587) --- ansible/inventory.yml | 2 +- ansible/roles/bootstrap/tasks/partials/debian11.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/bootstrap/tasks/partials/debian11.yml diff --git a/ansible/inventory.yml b/ansible/inventory.yml index ee40e88c6..38f6988c8 100644 --- a/ansible/inventory.yml +++ b/ansible/inventory.yml @@ -311,7 +311,7 @@ hosts: - rackspace: centos7-x64-1: {ip: 119.9.27.82} debian10-x64-1: {ip: 104.239.140.184} - debian11-x64-1: {ip: 23.253.109.216} + debian11-x64-1: {ip: 23.253.109.216, swap_file_size_mb: 4096} fedora32-x64-1: {ip: 119.9.51.79} ubuntu1604-x64-1: {ip: 119.9.51.176} ubuntu1604-x64-2: {ip: 104.130.124.194} diff --git a/ansible/roles/bootstrap/tasks/partials/debian11.yml b/ansible/roles/bootstrap/tasks/partials/debian11.yml new file mode 100644 index 000000000..65b091e91 --- /dev/null +++ b/ansible/roles/bootstrap/tasks/partials/debian11.yml @@ -0,0 +1,9 @@ +--- + +# +# debian 11 +# + +- name: set up swap on Linux + include_tasks: linux-swap.yml + when: swap_file_size_mb is defined