mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-10 14:24:25 +00:00
Merge pull request #14 from cudevmaxwell/issue-13
node_exporter: Support filesystems mounted under '/home'
This commit is contained in:
commit
4d73260d46
1 changed files with 4 additions and 4 deletions
|
@ -34,11 +34,11 @@ Restart=always
|
|||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
{% for m in ansible_mounts if m.mount == '/home' %}
|
||||
ProtectHome=read-only
|
||||
{% else %}
|
||||
ProtectHome=yes
|
||||
{% set protect_home = 'yes' %}
|
||||
{% for m in ansible_mounts if m.mount.startswith('/home') %}
|
||||
{% set protect_home = 'read-only' %}
|
||||
{% endfor %}
|
||||
ProtectHome={{ protect_home }}
|
||||
NoNewPrivileges=yes
|
||||
|
||||
{% if node_exporter_systemd_version | int >= 232 %}
|
||||
|
|
Loading…
Reference in a new issue