Automated changes from linter ;P
This commit is contained in:
parent
44b73a216f
commit
f7f04e7a41
65 changed files with 392 additions and 324 deletions
|
@ -2,10 +2,11 @@
|
|||
- name: monitoring
|
||||
tags: monitoring
|
||||
block:
|
||||
- import_tasks: ../../../snippets/common-nginx.yaml
|
||||
- ansible.builtin.import_tasks:
|
||||
file: ../../../snippets/common-nginx.yaml
|
||||
|
||||
- name: Install nginx site
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: nginx-site.conf
|
||||
dest: /etc/nginx/sites-available/monitoring
|
||||
owner: root
|
||||
|
@ -14,20 +15,20 @@
|
|||
notify: reload nginx
|
||||
|
||||
- name: Enable nginx site
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
src: /etc/nginx/sites-available/monitoring
|
||||
dest: /etc/nginx/sites-enabled/monitoring
|
||||
state: link
|
||||
notify: reload nginx
|
||||
|
||||
- name: Start nginx
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: nginx
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: Allow HTTP/HTTPS
|
||||
iptables:
|
||||
ansible.builtin.iptables:
|
||||
chain: INPUT
|
||||
protocol: tcp
|
||||
destination_port: "{{ item.port }}"
|
||||
|
@ -42,16 +43,20 @@
|
|||
|
||||
- name: mqtt_exporter
|
||||
tags: mqtt_exporter
|
||||
import_tasks: mqtt_exporter.yaml
|
||||
ansible.builtin.import_tasks:
|
||||
file: mqtt_exporter.yaml
|
||||
|
||||
- name: blackbox
|
||||
tags: blackbox
|
||||
import_tasks: blackbox.yaml
|
||||
ansible.builtin.import_tasks:
|
||||
file: blackbox.yaml
|
||||
|
||||
- name: prometheus
|
||||
tags: prometheus
|
||||
import_tasks: prometheus.yaml
|
||||
ansible.builtin.import_tasks:
|
||||
file: prometheus.yaml
|
||||
|
||||
- name: grafana
|
||||
tags: grafana
|
||||
import_tasks: grafana.yaml
|
||||
ansible.builtin.import_tasks:
|
||||
file: grafana.yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue