From 5b6c0cc415b68a467abe76546fb95af6ce6ad2fb Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sun, 24 Nov 2024 19:32:23 -0500 Subject: [PATCH] Initial commit --- ansible.cfg | 4 ++++ inventory.yml | 37 +++++++++++++++++++++++++++++++++++++ promtail.yml | 17 +++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 ansible.cfg create mode 100644 inventory.yml create mode 100644 promtail.yml diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..d29218d --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,4 @@ +[defaults] +host_key_checking=False +interpreter_python=auto_silent +inventory=./inventory.yml diff --git a/inventory.yml b/inventory.yml new file mode 100644 index 0000000..b041872 --- /dev/null +++ b/inventory.yml @@ -0,0 +1,37 @@ +servers: + hosts: + reason: + ansible_host: 192.168.1.183 + nomadix: + ansible_host: 192.168.1.5 + +applicances: + hosts: + ipowerswitch: + ansible_host: 192.168.1.99 + +proxmox: + hosts: + pihole: + ansible_host: 192.168.1.2 + wireguard: + ansible_host: 192.168.1.6 + lldap: + ansible_host: 192.168.1.7 + traefik: + ansible_host: 192.168.1.8 + ansible_user: root + homeassistant: + ansible_host: 192.168.1.13 + mqtt: + ansible_host: 192.168.1.14 + asterisk: + ansible_host: 192.168.1.21 + heimdall: + ansible_host: heimdall-dashboard.sailmaker.fenix.lgbt + +sailmaker: + children: + servers: + appliances: + proxmox: diff --git a/promtail.yml b/promtail.yml new file mode 100644 index 0000000..76ce8c5 --- /dev/null +++ b/promtail.yml @@ -0,0 +1,17 @@ +- name: Manage promtail service + hosts: traefik + become: true + vars: + promtail_clients: + - url: http://192.168.1.183:3100/loki/api/v1/push + promtail_scrape_configs: + - job_name: system + static_configs: + - targets: + - localhost + labels: + job: traefik + instance: "{{ ansible_fqdn }}" + __path__: /var/log/traefik/*.log + roles: + - role: grafana.grafana.promtail