master
HgO 2020-04-13 15:27:39 +02:00
parent 961498e32b
commit 476746f999
5 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,6 @@
- hosts: monitoring - hosts: monitoring
become: yes
roles: roles:
- common - common
- monitoring - monitoring

View File

@ -71,10 +71,11 @@
- name: Enable default Nginx config - name: Enable default Nginx config
file: file:
src: /etc/nginx/sites-available/default src: /etc/nginx/sites-available/default
dest: /etc/nginx/sites-enabled/default path: /etc/nginx/sites-enabled/default
owner: root owner: root
group: www-data group: www-data
mode: "755" mode: "755"
state: link
notify: reload nginx notify: reload nginx
- name: Allow default Nginx ports - name: Allow default Nginx ports

View File

@ -6,7 +6,7 @@
update_cache: yes update_cache: yes
cache_valid_time: "3600" cache_valid_time: "3600"
- name: Install unattend-upgrades for automatic upgrades - name: Install unattended-upgrades for automatic upgrades
apt: apt:
name: unattended-upgrades name: unattended-upgrades
state: present state: present

View File

@ -1,5 +1,5 @@
- name: Install Alertmanager - name: Install Alertmanager
import_role: include_role:
name: cloudalchemy.alertmanager name: cloudalchemy.alertmanager
public: yes public: yes
vars: vars:
@ -9,7 +9,7 @@
alertmanager_web_listen_address: "0.0.0.0:{{ alertmanager_port }}" alertmanager_web_listen_address: "0.0.0.0:{{ alertmanager_port }}"
- name: Configure Nginx for Alertmaneger - name: Configure Nginx for Alertmaneger
import_role: import_role:
name: nginx name: nginx
vars: vars:
nginx_config_file: "{{ inventory_hostname }}.d/alertmanager.conf" nginx_config_file: "{{ inventory_hostname }}.d/alertmanager.conf"

View File

@ -1,5 +1,5 @@
- name: Install Prometheus - name: Install Prometheus
import_role: include_role:
name: cloudalchemy.prometheus name: cloudalchemy.prometheus
public: yes public: yes
vars: vars:
@ -11,7 +11,7 @@
prometheus_web_listen_address: "0.0.0.0:{{ prometheus_port }}" prometheus_web_listen_address: "0.0.0.0:{{ prometheus_port }}"
- name: Configure Nginx for Prometheus - name: Configure Nginx for Prometheus
import_role: import_role:
name: nginx name: nginx
vars: vars:
nginx_config_file: "{{ inventory_hostname }}.d/prometheus.conf" nginx_config_file: "{{ inventory_hostname }}.d/prometheus.conf"
@ -23,4 +23,4 @@
password: "{{ prometheus_password }}" password: "{{ prometheus_password }}"
proxy_pass: proxy_pass:
port: "{{ prometheus_port }}" port: "{{ prometheus_port }}"
path: / path: /