copr-dist-git: use the default swap layout
This commit is contained in:
parent
851f1474f8
commit
b69b07c110
2 changed files with 2 additions and 19 deletions
|
@ -6,8 +6,8 @@ ansible_ssh_user: fedora
|
||||||
copr_hostbase: copr-dist-git
|
copr_hostbase: copr-dist-git
|
||||||
datacenter: aws
|
datacenter: aws
|
||||||
description: copr dist git - prod instance
|
description: copr dist git - prod instance
|
||||||
#swap_file_size_mb: 2048
|
swap_file_size_mb: 50000
|
||||||
#swap_file_path: /swap
|
swap_file_path: /swap
|
||||||
|
|
||||||
#instance_type: t3a.medium
|
#instance_type: t3a.medium
|
||||||
#image: "{{ fedora31_x86_64 }}"
|
#image: "{{ fedora31_x86_64 }}"
|
||||||
|
|
|
@ -386,23 +386,6 @@
|
||||||
command: semodule -i /usr/local/share/copr/copr_rules.pp
|
command: semodule -i /usr/local/share/copr/copr_rules.pp
|
||||||
when: selinux_module is changed
|
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
|
- name: setup AWS access
|
||||||
import_tasks: "aws.yml"
|
import_tasks: "aws.yml"
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue