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.
 
 

19 lines
393 B

- name: Disable swap.
shell: >
dphys-swapfile swapoff &&
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