swap: fix file creation to be idempotent, pt2

This commit is contained in:
Jakub Kadlcik 2022-01-23 23:15:49 +01:00
parent 358b3c5130
commit 259b3878c1

View file

@ -3,8 +3,10 @@
# swap_file_path
- name: Touch an empty file that we will use for swap
file:
path: "{{ swap_file_path }}"
copy:
content: ""
dest: "{{ swap_file_path }}"
force: no
register: swap_touch
- name: On BTRFS we need NoCOW