Commit d79e29b9 authored by nanahira's avatar nanahira

rev

parent 26e0be96
Pipeline #473 failed with stage
in 5 minutes and 47 seconds
......@@ -6,7 +6,7 @@
- utility
- sshd_config
- name: detect swap
shell: '/sbin/swapon'
shell: 'swapon'
register: swap_result
- name: add swap
include_tasks: 'swapon.yml'
......
---
- name: make swap
become: true
shell: "fallocate -l 1G /swapfile || dd if=/dev/zero of=/swapfile bs=1M count=1024 ; chmod 600 /swapfile ; mkswap /swapfile ; /sbin/swapon /swapfile"
shell: "fallocate -l 1G /swapfile || dd if=/dev/zero of=/swapfile bs=1M count=1024 ; chmod 600 /swapfile ; mkswap /swapfile ; swapon /swapfile"
args:
creates: /swapfile
- name: swap fstab
......
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