monitoring: 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
39b70494c8
commit
545236d175
1 changed files with 7 additions and 0 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:
|
||||||
- "{{ monitoring_install_location }}"
|
- "{{ monitoring_install_location }}"
|
||||||
become: true
|
become: true
|
||||||
|
@ -39,6 +42,7 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: '0750'
|
||||||
owner: '472'
|
owner: '472'
|
||||||
group: '472'
|
group: '472'
|
||||||
setype: "container_file_t"
|
setype: "container_file_t"
|
||||||
|
@ -50,6 +54,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:
|
||||||
- "{{ monitoring_influxdb_location }}"
|
- "{{ monitoring_influxdb_location }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue