mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 19:48:47 +00:00
Merge remote-tracking branch 'upstream/master' into new_format
This commit is contained in:
commit
44008e59a9
7 changed files with 32 additions and 2 deletions
7
nas.yml
7
nas.yml
|
@ -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
|
||||
###
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
@ -44,3 +44,6 @@
|
|||
|
||||
[certificatesResolvers.letsencrypt.acme.dnsChallenge]
|
||||
provider = "{{ traefik_dns_provider }}"
|
||||
|
||||
[metrics]
|
||||
[metrics.prometheus]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue