telegraf: 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
309aa18d61
commit
c8030de88b
1 changed files with 7 additions and 2 deletions
|
@ -30,14 +30,19 @@
|
|||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: '0700'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
with_items:
|
||||
- "{{ telegraf_install_location }}"
|
||||
become: true
|
||||
|
||||
- name: Create data directory
|
||||
- name: Create config directory
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
mode: "0700"
|
||||
mode: '0700'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
state: directory
|
||||
setype: "container_file_t"
|
||||
with_items:
|
||||
|
|
Loading…
Add table
Reference in a new issue