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