swap: fix file creation to be idempotent, pt2
This commit is contained in:
parent
358b3c5130
commit
259b3878c1
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue