minecraft: Adjust directory permissions
This patch reduces the permissions on the install directory to just the root user and also fixes the ansible-lint issue by specifying the `mode`. For all container mounted volumes, the ansible-lint rule is disabled, as the container takes care of the permissions etc.
This commit is contained in:
parent
1d7d56814e
commit
de1699bb94
1 changed files with 4 additions and 2 deletions
|
@ -33,7 +33,9 @@
|
|||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: '0600'
|
||||
mode: '0700'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
with_items:
|
||||
- "{{ minecraft_install_location }}"
|
||||
become: true
|
||||
|
@ -41,7 +43,7 @@
|
|||
- minecraft
|
||||
|
||||
- name: Create data directories
|
||||
file:
|
||||
file: # noqa 208 # Container manages permissions on its own
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
setype: "container_file_t"
|
||||
|
|
Loading…
Add table
Reference in a new issue