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 @@ ...@@ -6,7 +6,7 @@
- utility - utility
- sshd_config - sshd_config
- name: detect swap - name: detect swap
shell: '/sbin/swapon' shell: '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 ; /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: 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