Skip to content

Grafana

Auto Documentation

Documentation Generated with Python on 2021-04-03

Default Variables

Tasks

main.yml

- name: "[Docker] ensures Grafana directory dir exists"
  file:
    path: "{{ item }}"
    state: directory
    owner: "{{ main_user}}"
    group: "{{ main_group }}"
  loop:
    - "{{ docker_dir }}/grafana_storage/"

- name: "[Docker] Create Docker Container"
  docker_container:
    name: grafana
    image: grafana/grafana:latest-ubuntu
    restart_policy: always
    networks:
      - name: web
        aliases: grafana
    ports:
      - "8004:3000"
    mounts:
      - type: bind
        source: "{{ docker_dir }}/grafana_storage/"
        target: /var/lib/influxdb
    env:
      GF_SECURITY_ALLOW_EMBEDDING: "true"
      GF_INSTALL_PLUGINS: "grafana-clock-panel,vonage-status-panel,natel-discrete-panel,grafana-piechart-panel,"