diff --git a/inventory/host_vars/copr-dist-git.aws.fedoraproject.org b/inventory/host_vars/copr-dist-git.aws.fedoraproject.org index 76b14a5ddd..54fcb128dd 100644 --- a/inventory/host_vars/copr-dist-git.aws.fedoraproject.org +++ b/inventory/host_vars/copr-dist-git.aws.fedoraproject.org @@ -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 }}" diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index e9567a195e..517b6b9b5c 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -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: