2022-11-11 23:30:04 +01:00
|
|
|
---
|
|
|
|
- name: Configure Grafana
|
|
|
|
hosts: localhost
|
|
|
|
tasks:
|
2022-11-12 15:22:34 +01:00
|
|
|
- name: Create netz39 user
|
2022-11-11 23:30:04 +01:00
|
|
|
community.grafana.grafana_user:
|
|
|
|
url: "https://{{ hostvars['pottwal.n39.eu']['grafana_domain_name'] }}"
|
|
|
|
url_username: admin
|
2022-11-12 15:22:34 +01:00
|
|
|
url_password: >
|
|
|
|
"{{ hostvars['pottwal.n39.eu']['grafana_admin_password'] }}"
|
2022-11-11 23:30:04 +01:00
|
|
|
name: "{{ item.name }}"
|
|
|
|
email: "{{ item.email }}"
|
|
|
|
login: "{{ item.login }}"
|
|
|
|
password: "{{ item.password }}"
|
|
|
|
is_admin: true
|
|
|
|
state: present
|
|
|
|
loop: "{{ grafana_users }}"
|