Commit b239636d authored by nanahira's avatar nanahira

fix swapon

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