Revert "integration-playbook: Idempotent Swapping"

This reverts commit b198c57cfb.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Chris Evich 2017-09-20 17:34:01 -04:00 committed by Mrunal Patel
parent 7ab9c55a12
commit 61c643330e
3 changed files with 7 additions and 47 deletions

View file

@ -72,8 +72,13 @@
async: 600
poll: 10
- name: Check / setup swap
include: "swap.yml"
- name: Setup swap to prevent kernel firing off the OOM killer
shell: |
truncate -s 8G /root/swap && \
export SWAPDEV=$(losetup --show -f /root/swap | head -1) && \
mkswap $SWAPDEV && \
swapon $SWAPDEV && \
swapon --show
- name: ensure directories exist as needed
file: