Actually mount swapfile

This commit is contained in:
Sam A. 2022-12-25 18:38:57 +01:00
parent 5decde69dc
commit e6b81127e1
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 2 additions and 2 deletions

View File

@ -57,10 +57,10 @@
blocksize: 512B
owner: root
mode: u=rw,go=
when: swap_mounted is undefined
when: swap_mounted.rc != 0
- name: Mount swapfile
shell: |
mkswap {{ ssd_mount_point }}/swapfile
swapon {{ ssd_mount_point }}/swapfile
when: swap_mounted is undefined
when: swap_mounted.rc != 0