Add swap space for integration job

... to avoid frequent memory allocation failure.

Change-Id: Id2012de86c066bef75e4151e502cd2aac890d794
This commit is contained in:
Takashi Kajinami 2022-03-30 08:37:56 +09:00
parent 52470cfe8c
commit f4429e07d8
1 changed files with 9 additions and 0 deletions

View File

@ -42,3 +42,12 @@
EOF
environment:
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"
- name: Prepare swap
shell:
cmd: |
dd if=/dev/zero of=/tmp/swapfile bs=1GiB count=4 && \
chmod 0600 /tmp/swapfile && \
mkswap /tmp/swapfile && \
swapon /tmp/swapfile
become: yes