Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: all
- gather_facts: true
- tasks:
- - name: Remove swapfile from /etc/fstab
- mount:
- name: "{{ item }}"
- fstype: swap
- state: absent
- with_items:
- - swap
- - none
- - name: Disable swap
- command: swapoff -a
- when: ansible_swaptotal_mb > 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement