teamspeak: 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
753cbed180
commit
309aa18d61
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,9 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: '0700'
|
||||||
|
owner: 'root'
|
||||||
|
group: 'root'
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ teamspeak_install_location }}"
|
- "{{ teamspeak_install_location }}"
|
||||||
tags:
|
tags:
|
||||||
|
@ -38,7 +41,7 @@
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Create data directory
|
- name: Create data directory
|
||||||
file:
|
file: # noqa 208 # Container manages permissions on its own
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
setype: "container_file_t"
|
setype: "container_file_t"
|
||||||
|
|
Loading…
Add table
Reference in a new issue