Created
December 19, 2013 21:48
-
-
Save quicksnap/8046801 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: check swapfile existence | |
| file: path=/swapfile state=file | |
| ignore_errors: True | |
| register: swap_test | |
| tags: swap | |
| # Creates a 512MB Swapfile | |
| - name: create swapfile | |
| command: dd if=/dev/zero of=/swapfile bs=1024 count=512k | |
| when: swap_test|failed | |
| tags: swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment