e6a3f3affd
- Introduced custom HTML error pages for various HTTP status codes (400, 401, 403, 404, 408, 429, 500, 502, 503, 504) in the proxy module. - Created a .gitignore file to exclude non-HTML files in the error resources directory. - Updated Nginx configuration to serve custom error pages for upstream errors. - Added new Nginx configuration templates for handling HTTP and stream protocols. - Implemented Wireguard configuration templates and associated variables for secure connections. - Established Kubernetes resources for Stunnel and Wireguard, including deployment, service accounts, and config maps. - Defined variables for the Stunnel and Wireguard modules to facilitate configuration. - Created a new Wol Proxy module with Kubernetes resources for deployment and service management.
28 lines
717 B
YAML
28 lines
717 B
YAML
---
|
|
- name: Prometheus Playbook (K8s)
|
|
hosts: prometheus
|
|
gather_facts: true
|
|
|
|
# Specific tasks for this playbook
|
|
tasks:
|
|
- name: Set required facts
|
|
ansible.builtin.set_fact:
|
|
monitoring_home: "{{ persistent_data | default('/var/lib') }}/monitoring"
|
|
monitoring_user_id: 1000
|
|
monitoring_group_id: 1000
|
|
tags: always
|
|
|
|
- name: Create required monitoring data folder
|
|
become: true
|
|
ansible.builtin.file:
|
|
state: directory
|
|
path: "{{ item }}"
|
|
mode: "0750"
|
|
owner: "{{ monitoring_user_id }}"
|
|
group: "{{ monitoring_group_id }}"
|
|
with_items:
|
|
- "{{ monitoring_home }}"
|
|
tags:
|
|
- tasks
|
|
- tasks::folders
|