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

Commit 861e34e

Browse files
authored
use become where needed (#98)
1 parent 8974dea commit 861e34e

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ Detection is done automatically and packages are taken from different channels a
8686
8787
```yaml
8888
- hosts: all
89-
become: true
9089
roles:
9190
- cloudalchemy.grafana
9291
```

tasks/datasources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
when: not grafana_use_provisioning
1616

1717
- name: Create/Update datasources file (provisioning)
18+
become: true
1819
copy:
1920
dest: "/etc/grafana/provisioning/datasources/ansible.yml"
2021
content: |
@@ -26,6 +27,5 @@
2627
owner: root
2728
group: grafana
2829
mode: 0640
29-
become: true
3030
notify: restart grafana
3131
when: grafana_use_provisioning

tasks/plugins.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
register: installed_plugins
88

99
- name: Install plugins
10+
become: true
1011
command: "grafana-cli --pluginsDir {{ grafana_data_dir }}/plugins plugins install {{ item }}"
1112
args:
1213
creates: "{{ grafana_data_dir }}/plugins/{{ item }}"

0 commit comments

Comments
 (0)