minecraft_blockmap: 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`.
This commit is contained in:
saibotk 2020-09-26 21:37:15 +02:00
parent de1699bb94
commit 0f83d6503b
No known key found for this signature in database
GPG key ID: A3299C587D5DF523

View file

@ -31,7 +31,9 @@
file:
path: "{{ item }}"
state: directory
mode: '0600'
mode: '0700'
owner: 'root'
group: 'root'
with_items:
- "{{ minecraft_blockmap_install_location }}"
become: true
@ -42,6 +44,9 @@
file:
path: "{{ item }}"
state: directory
mode: '0750'
owner: 'root'
group: 'root'
setype: "container_file_t"
with_items:
- "{{ minecraft_blockmap_output_location }}"
@ -54,6 +59,9 @@
file:
path: "{{ item }}"
state: directory
mode: '0755'
owner: 'root'
group: 'root'
with_items:
- "{{ minecraft_blockmap_archive_location }}"
become: true
@ -96,6 +104,9 @@
file:
path: "/blockmap_snapshot"
state: directory
mode: '0700'
owner: 'root'
group: 'root'
recurse: true
become: true
@ -103,7 +114,7 @@
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: '1700'
mode: '0700'
owner: root
group: root
with_items: