copr-dist-git: use the default swap layout

This commit is contained in:
Pavel Raiskup 2022-11-29 15:02:17 +01:00
parent 851f1474f8
commit b69b07c110
2 changed files with 2 additions and 19 deletions

View file

@ -6,8 +6,8 @@ ansible_ssh_user: fedora
copr_hostbase: copr-dist-git
datacenter: aws
description: copr dist git - prod instance
#swap_file_size_mb: 2048
#swap_file_path: /swap
swap_file_size_mb: 50000
swap_file_path: /swap
#instance_type: t3a.medium
#image: "{{ fedora31_x86_64 }}"

View file

@ -386,23 +386,6 @@
command: semodule -i /usr/local/share/copr/copr_rules.pp
when: selinux_module is changed
- name: disable swap mount in fstab
mount:
path: none
src: /dev/vdb
fstype: swap
state: absent
# - name: detect if swap is enabled
# shell: test -z "$(swapon -s)"
# register: swap_enabled
# changed_when: false
# failed_when: false
#
# - name: disable swap so that OOM killer can do his job
# command: swapoff -a
# when: swap_enabled.rc != 0
- name: setup AWS access
import_tasks: "aws.yml"
tags: