community.grafana.grafana_team – Manage Grafana Teams¶
Note
This plugin is part of the community.grafana collection (version 1.1.0).
To install it use: ansible-galaxy collection install community.grafana
.
To use it in a playbook, specify: community.grafana.grafana_team
.
New in version 1.0.0: of community.grafana
Synopsis¶
Create/update/delete Grafana Teams through the Teams API.
Also allows to add members in the team (if members exists).
The Teams API is only available starting Grafana 5 and the module will fail if the server version is lower than version 5.
Parameters¶
Examples¶
---
- name: Create a team
community.grafana.grafana_team:
url: "https://grafana.example.com"
grafana_api_key: "{{ some_api_token_value }}"
name: "grafana_working_group"
email: "foo.bar@example.com"
state: present
- name: Create a team with members
community.grafana.grafana_team:
url: "https://grafana.example.com"
grafana_api_key: "{{ some_api_token_value }}"
name: "grafana_working_group"
email: "foo.bar@example.com"
members:
- john.doe@example.com
- jane.doe@example.com
state: present
- name: Create a team with members and enforce the list of members
community.grafana.grafana_team:
url: "https://grafana.example.com"
grafana_api_key: "{{ some_api_token_value }}"
name: "grafana_working_group"
email: "foo.bar@example.com"
members:
- john.doe@example.com
- jane.doe@example.com
enforce_members: yes
state: present
- name: Delete a team
community.grafana.grafana_team:
url: "https://grafana.example.com"
grafana_api_key: "{{ some_api_token_value }}"
name: "grafana_working_group"
email: "foo.bar@example.com"
state: absent
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rémi REY (@rrey)