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:
parent
de1699bb94
commit
0f83d6503b
1 changed files with 13 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue