Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Fix dashboard permissions for idempotency.
Browse files Browse the repository at this point in the history
  • Loading branch information
mxbossard committed Jan 3, 2019
1 parent d527369 commit e45dde2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tasks/dashboards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,20 +174,21 @@
rsync_opts:
- "--no-motd"
when: grafana_use_provisioning
register: synchronize_result

- name: Set privileges on provisioned dashboards
file:
path: "/var/lib/grafana/dashboards"
recurse: true
owner: root
owner: grafana
group: grafana
mode: 0640
when: grafana_use_provisioning and synchronize_result.changed

- name: Set privileges on provisioned dashboards
- name: Set privileges on provisioned dashboards directory
file:
path: "/var/lib/grafana/dashboards"
state: directory
recurse: false
owner: root
group: grafana
mode: 0755
when: grafana_use_provisioning and synchronize_result.changed

0 comments on commit e45dde2

Please sign in to comment.