This commit is contained in:
felix.niederwanger@suse.com 2021-03-25 14:25:18 +01:00
parent af244868d5
commit 89cd34adad
4 changed files with 9 additions and 11 deletions

View file

@ -5,19 +5,19 @@
name: "{{ packages_grafana }}"
state: present
tags: ['grafana']
- name: Ensure grafana is started
systemd:
name: grafana-server
state: started
enabled: true
tags: ['grafana']
- name: Ensure grafana firewall port is open
firewalld:
zone: "{{ firewall_zone }}"
port: "{{grafana_port}}/tcp"
permanent: yes
permanent: true
state: enabled
when: config_firewall and open_grafana_port
notify: reload firewalld

View file

@ -15,19 +15,19 @@
mode: 0640
tags: ['influxdb']
notify: restart influxdb
- name: Ensure influxdb is enabled
systemd:
name: influxdb
state: started
enabled: true
tags: ['influxdb']
- name: Ensure influxdb firewall port is open
firewalld:
zone: "{{ firewall_zone }}"
port: "{{influxdb_port}}/tcp"
permanent: yes
permanent: true
state: enabled
when: config_firewall and open_influxdb_port
notify: reload firewalld
@ -37,10 +37,8 @@
firewalld:
zone: "{{ firewall_zone }}"
port: "{{influxdb_collectd_port}}/udp"
permanent: yes
permanent: true
state: enabled
when: config_firewall and open_collectd_port
notify: reload firewalld
tags: ['influxdb', 'firewalld']

View file

@ -5,7 +5,7 @@
- name: include distribution specific vars
include_vars: "{{ansible_distribution}}_{{ansible_distribution_version}}.yml"
tags: ['grafana']
- include: influxdb.yml
when: influxdb == true
- include: grafana.yml

View file

@ -1,2 +1,2 @@
---
# vars file for geekoops-grafana
# vars file for geekoops-grafana