diff --git a/roles/telegraf/tasks/main.yml b/roles/telegraf/tasks/main.yml index 1e8566f..d6eca92 100644 --- a/roles/telegraf/tasks/main.yml +++ b/roles/telegraf/tasks/main.yml @@ -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: