Fix swapfile permissions

Forgot to add "become: yes"
This commit is contained in:
ducoterra
2022-01-31 12:50:12 -05:00
parent 4e7e3d4b78
commit b2e9bcccd8

View File

@@ -355,6 +355,7 @@
file:
state: absent
path: "{{ swap_file_path }}"
become: yes
- name: Create swap file
command: truncate -s 0 "{{ swap_file_path }}"
creates="{{ swap_file_path }}"