Fix swapfile permissions
Forgot to add "become: yes"
This commit is contained in:
@@ -355,6 +355,7 @@
|
|||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: "{{ swap_file_path }}"
|
path: "{{ swap_file_path }}"
|
||||||
|
become: yes
|
||||||
- name: Create swap file
|
- name: Create swap file
|
||||||
command: truncate -s 0 "{{ swap_file_path }}"
|
command: truncate -s 0 "{{ swap_file_path }}"
|
||||||
creates="{{ swap_file_path }}"
|
creates="{{ swap_file_path }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user