commit 5b6c0cc415b68a467abe76546fb95af6ce6ad2fb Author: Correl Roush Date: Sun Nov 24 19:32:23 2024 -0500 Initial commit 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