ts3audiobot: 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:
saibotk 2020-09-26 21:46:20 +02:00
parent 7732e5d43f
commit 0180f6a599
No known key found for this signature in database
GPG key ID: A3299C587D5DF523

View file

@ -31,6 +31,9 @@
file:
path: "{{ item }}"
state: directory
mode: '0700'
owner: 'root'
group: 'root'
with_items:
- "{{ ts3audiobot_install_location }}"
tags:
@ -41,6 +44,7 @@
file:
path: "{{ item }}"
state: directory
mode: '0750'
owner: '9999'
group: '9999'
setype: "container_file_t"