Actually mount swapfile
This commit is contained in:
parent
5decde69dc
commit
e6b81127e1
|
@ -57,10 +57,10 @@
|
||||||
blocksize: 512B
|
blocksize: 512B
|
||||||
owner: root
|
owner: root
|
||||||
mode: u=rw,go=
|
mode: u=rw,go=
|
||||||
when: swap_mounted is undefined
|
when: swap_mounted.rc != 0
|
||||||
|
|
||||||
- name: Mount swapfile
|
- name: Mount swapfile
|
||||||
shell: |
|
shell: |
|
||||||
mkswap {{ ssd_mount_point }}/swapfile
|
mkswap {{ ssd_mount_point }}/swapfile
|
||||||
swapon {{ ssd_mount_point }}/swapfile
|
swapon {{ ssd_mount_point }}/swapfile
|
||||||
when: swap_mounted is undefined
|
when: swap_mounted.rc != 0
|
||||||
|
|
Reference in a new issue