This commit is contained in:
Chris Evich 2017-09-22 17:19:18 +00:00 committed by GitHub
commit 914d67587f

View file

@ -172,11 +172,15 @@
when: ansible_distribution == 'Fedora' when: ansible_distribution == 'Fedora'
- name: Setup swap to prevent kernel firing off the OOM killer - name: Setup swap to prevent kernel firing off the OOM killer
shell: | shell: |
[ ! -f /root/swap ] && \
truncate -s 8G /root/swap && \ truncate -s 8G /root/swap && \
export SWAPDEV=$(losetup --show -f /root/swap | head -1) && \ export SWAPDEV=$(losetup --show -f /root/swap | head -1) && \
mkswap $SWAPDEV && \ mkswap $SWAPDEV && \
swapon $SWAPDEV && \ swapon $SWAPDEV || true
swapon --show - name: Capture current state of swap for debugging
command: swapon --show
register: result
- debug: var=result
- name: Make testing directories to conform to testing standards - name: Make testing directories to conform to testing standards
file: file:
path: "{{ item }}" path: "{{ item }}"