diff --git a/update_minecraft.yml b/update_minecraft.yml index f901914..831c753 100644 --- a/update_minecraft.yml +++ b/update_minecraft.yml @@ -25,15 +25,21 @@ tasks: - name: Ensure remote base directory exists + become: true ansible.builtin.file: path: "{{ compose_remote_base }}" state: directory + owner: "{{ ansible_user }}" + group: "{{ ansible_user }}" mode: "0755" - name: Ensure remote env directory exists + become: true ansible.builtin.file: path: "{{ compose_remote_base }}/env" state: directory + owner: "{{ ansible_user }}" + group: "{{ ansible_user }}" mode: "0755" - name: Fail if persistent Minecraft env file is missing @@ -67,14 +73,18 @@ mode: "0644" - name: Recreate remote compose directory + become: true ansible.builtin.file: path: "{{ compose_remote_dir }}" state: absent - name: Ensure remote compose directory exists + become: true ansible.builtin.file: path: "{{ compose_remote_dir }}" state: directory + owner: "{{ ansible_user }}" + group: "{{ ansible_user }}" mode: "0755" - name: Extract archive on remote host