You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
428 B
20 lines
428 B
- name: Disable swap.
|
|
become: true
|
|
shell: >
|
|
/usr/sbin/dphys-swapfile swapoff &&
|
|
/usr/sbin/dphys-swapfile uninstall &&
|
|
update-rc.d -f dphys-swapfile remove
|
|
systemctl disable dphys-swapfile
|
|
# when:
|
|
# - ansible_swaptotal_mb > 0
|
|
- name: copy dphys-swapfile
|
|
become: true
|
|
copy:
|
|
src: resources/{{ item }}
|
|
dest: /etc
|
|
owner: root
|
|
group: root
|
|
mode: '0744'
|
|
with_items:
|
|
- dphys-swapfile
|
|
|
|
|