From: John Fulton Date: Tue, 18 Aug 2020 14:41:42 +0000 (-0400) Subject: Set default permission for prometheus config files X-Git-Tag: v4.0.29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5b73af9c34b8ef929a8dbd9c29a21212f204d000;p=ceph-ansible.git Set default permission for prometheus config files Regardless of the outcome of Ansible 2.9.12 issue 71200 we can set a default permission for these files. Closes: https://github.com/ceph/ceph-ansible/issues/5677 Signed-off-by: John Fulton (cherry picked from commit 95dee6f1cad71cddb69f7bcddbd199ebcad45d8c) --- diff --git a/roles/ceph-prometheus/tasks/main.yml b/roles/ceph-prometheus/tasks/main.yml index 55ce5e2e2..a9fb9b9e5 100644 --- a/roles/ceph-prometheus/tasks/main.yml +++ b/roles/ceph-prometheus/tasks/main.yml @@ -13,6 +13,7 @@ src: prometheus.yml.j2 dest: "{{ prometheus_conf_dir }}/prometheus.yml" owner: "{{ prometheus_user_id }}" + mode: 0640 notify: service handler - name: make sure the alerting rules directory exists @@ -42,7 +43,8 @@ template: src: alertmanager.yml.j2 dest: "{{ alertmanager_conf_dir }}/alertmanager.yml" - owner: "root" + owner: "{{ prometheus_user_id }}" + mode: 0640 notify: service handler - name: include setup_container.yml