Bind grafana to :80

certbot_on_virtu
Alexandre Iooss 2019-12-07 08:18:29 +01:00
parent 984c2ed859
commit d2b4984ade
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,13 @@
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
# This capability enables grafana to bind :80
- name: Add cap_net_bind_service to grafana
capabilities:
path: /usr/sbin/grafana-server
capability: cap_net_bind_service+ep
state: present
- name: Configure Grafana - name: Configure Grafana
ini_file: ini_file:
path: /etc/grafana/grafana.ini path: /etc/grafana/grafana.ini
@ -39,6 +46,9 @@
value: "{{ item.value }}" value: "{{ item.value }}"
mode: 0640 mode: 0640
loop: loop:
- section: server
option: http_port
value: "80"
- section: server - section: server
option: root_url option: root_url
value: "{{ grafana_root_url }}" value: "{{ grafana_root_url }}"