From f0b816431766d78c9cfa45bdf5629af692336f31 Mon Sep 17 00:00:00 2001 From: Greg Swallow Date: Thu, 24 Mar 2016 13:33:27 -0400 Subject: [PATCH] Add swap on ephemeral storage. --- ansible/site.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/site.yml b/ansible/site.yml index e880c72..9a2bed2 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -3,6 +3,7 @@ vars: enable_streaming_logs: "{{ lookup('env', 'ENABLE_STREAMING_LOGS') }}" enable_sumologic: "{{ lookup('env', 'ENABLE_SUMOLOGIC') }}" + mem2x: "{{ ansible_memtotal_mb * 1024 * 2 }}" roles: - common - swap @@ -16,6 +17,7 @@ vars: enable_streaming_logs: "{{ lookup('env', 'ENABLE_STREAMING_LOGS') }}" enable_sumologic: "{{ lookup('env', 'ENABLE_SUMOLOGIC') }}" + mem2x: "{{ ansible_memtotal_mb * 1024 * 2 }}" roles: - common - swap