diff --git a/contrib/test/crio-integration-playbook.yaml b/contrib/test/crio-integration-playbook.yaml index 44441bb0..7369a024 100644 --- a/contrib/test/crio-integration-playbook.yaml +++ b/contrib/test/crio-integration-playbook.yaml @@ -84,11 +84,12 @@ when: ansible_distribution == 'Fedora' - name: Setup swap to prevent kernel firing off the OOM killer shell: | + [ ! -f /root/swap ] && \ truncate -s 8G /root/swap && \ export SWAPDEV=$(losetup --show -f /root/swap | head -1) && \ mkswap $SWAPDEV && \ swapon $SWAPDEV && \ - swapon --show + swapon --show || true - name: Make testing directories to conform to testing standards file: path: "{{ item }}"