From 6534749691bb6b6d803e875bc9579f04c87aa064 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 24 Nov 2020 20:36:35 +0100 Subject: [PATCH] grafana: add switch to install rendering deps --- host_vars/stats.regensburg.freifunk.net | 2 ++ roles/grafana/defaults/main.yml | 3 +++ roles/grafana/tasks/main.yml | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 roles/grafana/defaults/main.yml diff --git a/host_vars/stats.regensburg.freifunk.net b/host_vars/stats.regensburg.freifunk.net index 5132d99..7a748a0 100644 --- a/host_vars/stats.regensburg.freifunk.net +++ b/host_vars/stats.regensburg.freifunk.net @@ -1,5 +1,7 @@ --- +grafana_rendering: True + # yanic needs this site_code: ffrgb_cty diff --git a/roles/grafana/defaults/main.yml b/roles/grafana/defaults/main.yml new file mode 100644 index 0000000..bb8d9ee --- /dev/null +++ b/roles/grafana/defaults/main.yml @@ -0,0 +1,3 @@ +--- + +grafana_rendering: False diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml index 1c7ca03..77d39fc 100644 --- a/roles/grafana/tasks/main.yml +++ b/roles/grafana/tasks/main.yml @@ -8,3 +8,27 @@ - name: Install grafana apt: name=grafana + +- nane: Install grafana rendering dependencies: + apt: + name: + - libxdamage1 + - libxext6 + - libxi6 + - libxtst6 + - libnss3 + - libnss3 + - libcups2 + - libxss1 + - libxrandr2 + - libasound2 + - libatk1.0-0 + - libatk-bridge2.0-0 + - libpangocairo-1.0-0 + - libpango-1.0-0 + - libcairo2 + - libatspi2.0-0 + - libgtk3.0-cil + - libgdk3.0-cil + - libx11-xcb-dev + when: grafana_rendering