fix: update directory permissions and ownership for Minecraft deployment tasks
This commit is contained in:
@@ -25,15 +25,21 @@
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure remote base directory exists
|
- name: Ensure remote base directory exists
|
||||||
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ compose_remote_base }}"
|
path: "{{ compose_remote_base }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
group: "{{ ansible_user }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Ensure remote env directory exists
|
- name: Ensure remote env directory exists
|
||||||
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ compose_remote_base }}/env"
|
path: "{{ compose_remote_base }}/env"
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
group: "{{ ansible_user }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Fail if persistent Minecraft env file is missing
|
- name: Fail if persistent Minecraft env file is missing
|
||||||
@@ -67,14 +73,18 @@
|
|||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: Recreate remote compose directory
|
- name: Recreate remote compose directory
|
||||||
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ compose_remote_dir }}"
|
path: "{{ compose_remote_dir }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Ensure remote compose directory exists
|
- name: Ensure remote compose directory exists
|
||||||
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ compose_remote_dir }}"
|
path: "{{ compose_remote_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
group: "{{ ansible_user }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Extract archive on remote host
|
- name: Extract archive on remote host
|
||||||
|
|||||||
Reference in New Issue
Block a user