Skip to content

Commit

Permalink
Set default permission for prometheus config files
Browse files Browse the repository at this point in the history
Regardless of the outcome of Ansible 2.9.12 issue 71200
we can set a default permission for these files.

Closes: #5677

Signed-off-by: John Fulton <fulton@redhat.com>
(cherry picked from commit 95dee6f)
  • Loading branch information
fultonj authored and dsavineau committed Aug 18, 2020
1 parent 81d116b commit 489efd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/ceph-prometheus/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 489efd5

Please sign in to comment.