Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #22 from lucacaimi/fix_issue#20
Browse files Browse the repository at this point in the history
Fixed #20: prevent creating swap file if already exists
  • Loading branch information
gabriperego committed May 12, 2016
2 parents 65cad51 + 2a1e3d3 commit b013bca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vagrant/ansible/include/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@
shell: systemctl enable ntpd
- name: Enable swap file
shell: /bin/dd if=/dev/zero of=/swapfile bs=1M count=1024 && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab'
args:
creates: /swapfile

0 comments on commit b013bca

Please sign in to comment.