update requirements.yml to correctly install collection
This commit is contained in:
parent
4e4cd46102
commit
cc0dcb3188
4 changed files with 24 additions and 43 deletions
|
@ -2,11 +2,12 @@
|
||||||
- name: Configure Grafana
|
- name: Configure Grafana
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
- name: create netz39 user
|
- name: Create netz39 user
|
||||||
community.grafana.grafana_user:
|
community.grafana.grafana_user:
|
||||||
url: "https://{{ hostvars['pottwal.n39.eu']['grafana_domain_name'] }}"
|
url: "https://{{ hostvars['pottwal.n39.eu']['grafana_domain_name'] }}"
|
||||||
url_username: admin
|
url_username: admin
|
||||||
url_password: "{{ hostvars['pottwal.n39.eu']['grafana_admin_password'] }}"
|
url_password: >
|
||||||
|
"{{ hostvars['pottwal.n39.eu']['grafana_admin_password'] }}"
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
email: "{{ item.email }}"
|
email: "{{ item.email }}"
|
||||||
login: "{{ item.login }}"
|
login: "{{ item.login }}"
|
||||||
|
@ -14,18 +15,3 @@
|
||||||
is_admin: true
|
is_admin: true
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ grafana_users }}"
|
loop: "{{ grafana_users }}"
|
||||||
|
|
||||||
- name: Create influxdb datasource
|
|
||||||
community.grafana.grafana_datasource:
|
|
||||||
name: "datasource-influxdb"
|
|
||||||
url: "https://{{ hostvars['pottwal.n39.eu']['grafana_domain_name'] }}"
|
|
||||||
url_username: admin
|
|
||||||
url_password: "{{ hostvars['pottwal.n39.eu']['grafana_admin_password'] }}"
|
|
||||||
org_id: "1"
|
|
||||||
ds_type: "influxdb"
|
|
||||||
ds_url: "https://{{ hostvars['pottwal.n39.eu']['influxdb_domain_name'] }}:8086"
|
|
||||||
database: "{{ item.database }}"
|
|
||||||
user: "{{ item.user }}"
|
|
||||||
password: "{{ item.password }}"
|
|
||||||
time_interval: ">10s"
|
|
||||||
loop: "{{ grafana_datasources }}"
|
|
|
@ -3,8 +3,3 @@ grafana_users:
|
||||||
email: accounts+grafana@netz39.de
|
email: accounts+grafana@netz39.de
|
||||||
login: netz39
|
login: netz39
|
||||||
password: "{{ vault_grafana_user_password }}"
|
password: "{{ vault_grafana_user_password }}"
|
||||||
|
|
||||||
grafana_datasources:
|
|
||||||
- database: "power_usage"
|
|
||||||
user: "grafana"
|
|
||||||
password: "{{ vault_influx_user_pasword }}"
|
|
|
@ -1,10 +1,7 @@
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
63656563373764373039316666323737643030646338353161383534333266363663346537353465
|
66303836663730383331396265363534666661326163643634306332613038653530333333326236
|
||||||
3966323233643737393035643461663533373230656232360a626165653365386339376563303531
|
3163343062656262363364373561646163623666623738620a373039353861306261643435346330
|
||||||
38643864353234663839326631633634303233353736393631303834343839363831616132636565
|
64333139336536346130646435393235643838356634636233363035306437353230333864346437
|
||||||
6462353664653130620a306435303963643663303363653738616535386465623336666538626161
|
6562366564373461380a393265656437303531396234613266383334373762646536643733323565
|
||||||
30383732393464313139343464626131303464393564333865633861303136363035623534656435
|
61366261303965316263303434313462656661666530636662306633663336316462303339633531
|
||||||
37376636663564666234636164623339383136653565366432343762396138663763356330383832
|
3832643731646535306562326162363864646338343165633834
|
||||||
62386363326164363165373265623863323634363538626132366132616135646332366133323535
|
|
||||||
39633831616463633637636362623733303039313666666662616666383232656231653363643538
|
|
||||||
3864
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
roles:
|
||||||
- src: hifis.unattended_upgrades
|
- src: hifis.unattended_upgrades
|
||||||
version: v1.12.2
|
version: v1.12.2
|
||||||
- src: git+https://github.com/adriagalin/ansible.timezone.git
|
- src: git+https://github.com/adriagalin/ansible.timezone.git
|
||||||
|
@ -9,5 +10,7 @@
|
||||||
version: v1.0.0
|
version: v1.0.0
|
||||||
- src: git+https://github.com/maz3max/ble-keykeeper-role.git
|
- src: git+https://github.com/maz3max/ble-keykeeper-role.git
|
||||||
version: v1.1.0
|
version: v1.1.0
|
||||||
- src: community.grafana
|
|
||||||
|
collections:
|
||||||
|
- name: community.grafana
|
||||||
version: 1.5.3
|
version: 1.5.3
|
||||||
|
|
Loading…
Reference in a new issue