Revert "integration-playbook: Idempotent Swapping"
This reverts commit b198c57cfb
.
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
7ab9c55a12
commit
61c643330e
3 changed files with 7 additions and 47 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue