Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Commit daa74fa

Browse files
committed
Fix the debug task syntax
1 parent 1a18cec commit daa74fa

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
Automatically publish annotations in grafana when you execute your playbooks !
44

5+
# Configuration
6+
7+
The configuration can be set through ansible cfg by declaring te callback section.
8+
The following configuration represent the default values:
9+
10+
```
11+
[callback_grafana_annotations]
12+
13+
grafana_url = "http://127.0.0.1:3000/api/annotations"
14+
validate_grafana_certs = 1
15+
http_agent = 'Ansible (grafana_annotations callback)'
16+
grafana_user = ansible
17+
grafana_password = ansible
18+
```
19+
20+
The configuration can be overridden using environment variables.
21+
Check the DOCUMENTATION string to have the full list of parameters.
22+
523
# Quickstart
624

725
* Copy the callback_plugins directory in you playbook directory
@@ -27,7 +45,7 @@ $ export GRAFANA_USER=<your_grafana_user>
2745
$ export GRAFANA_PASSWORD=<your_grafana_user_password>
2846
```
2947

30-
* Run you playbook:
48+
* Run your playbook:
3149
```
3250
$ ansible-playbook test.yml
3351
```

ansible.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[callback_grafana_annotations]
2+
3+
grafana_url = "http://127.0.0.1:3000/api/annotations"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ansible==2.4
1+
ansible==2.5
22
pycodestyle==2.3.1

test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
connection: local
33
tasks:
44
- debug:
5-
msg: "Hello world"
5+
msg: "Hello world"
66
- command: sleep 2

0 commit comments

Comments
 (0)