Merge remote-tracking branch 'upstream/master' into new_format

This commit is contained in:
Anarion 2023-04-10 10:43:10 +02:00
commit 44008e59a9
No known key found for this signature in database
GPG key ID: 6C9E149718A7D4EB
7 changed files with 32 additions and 2 deletions

View file

@ -21,10 +21,17 @@
- skip_ansible_lint
- role: geerlingguy.docker
when: ansible_architecture == "x86_64"
tags:
- docker
- skip_ansible_lint
- role: geerlingguy.docker_arm
when: ansible_architecture == "aarch64"
tags:
- docker_arm
- skip_ansible_lint
###
### Ansible-NAS Roles
###

View file

@ -2,6 +2,9 @@
- name: geerlingguy.docker
version: 6.0.0
- name: geerlingguy.docker_arm
version: 5.0.0
- name: bertvv.samba
version: v2.7.1

View file

@ -49,3 +49,7 @@ stats_grafana_memory: 1g
stats_prometheus_retention_time: 365d
stats_prometheus_retention_size: 30GB
stats_collection_interval: 15s
# uncomment to scrape more hosts
# stats_prometheus_additional_hosts:
# - 192.168.1.1:9100

View file

@ -20,7 +20,7 @@
- name: Template Prometheus config
ansible.builtin.template:
src: prometheus.yml
src: prometheus.yml.j2
dest: "{{ stats_prometheus_config_directory }}/prometheus.yml"
register: prometheus_config

View file

@ -43,3 +43,16 @@ scrape_configs:
"{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ stats_speedtest_exporter_port }}"
]
{% if stats_prometheus_additional_hosts is defined %}
- job_name: "additional_hosts"
static_configs:
- targets: [
{% for host in stats_prometheus_additional_hosts %}
{{ host }}
{% if not loop.last %}
,
{% endif %}
]
{% endfor %}
{% endif %}

View file

@ -44,3 +44,6 @@
[certificatesResolvers.letsencrypt.acme.dnsChallenge]
provider = "{{ traefik_dns_provider }}"
[metrics]
[metrics.prometheus]

View file

@ -9,7 +9,7 @@ Ansible-NAS is an Ansible playbook that sets up applications of your choice on y
## Requirements
- A Linux environment with Ansible installed (in Ansible terms the "control node"). See the official [Installing Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) docs for more info.
- SSH access to an Ubuntu 22.04 server that'll become your Ansible-NAS box. It's recommended to use a fresh Ubutu Server 22.04 installation. Do not use non-LTS releases.
- SSH access to an Ubuntu 22.04 server that'll become your Ansible-NAS box. It's recommended to use a fresh Ubuntu Server 22.04 installation. Do not use non-LTS releases.
:::tip