Commit d177774c by Braden MacDonald

Use 'mount' instead of 'lineinfile'

parent 32da53d6
......@@ -23,7 +23,7 @@
when: SWAPFILE_SIZE != false and create_swapfile.changed
- name: Add swapfile to /etc/fstab
lineinfile: dest=/etc/fstab line="{{ SWAPFILE_LOCATION }} none swap sw 0 0" state=present
mount: name=none src="{{ SWAPFILE_LOCATION }}" fstype=swap opts=sw passno=0 dump=0 state=present
when: SWAPFILE_SIZE != false
- name: Configure vm.swappiness
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment