mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
rtorrent_exporter: create service user
This commit is contained in:
parent
81b8b0cd30
commit
a2cbbb1a82
2 changed files with 12 additions and 4 deletions
|
@ -7,6 +7,14 @@
|
|||
dest: "/usr/local/bin/rtorrent_exporter"
|
||||
checksum: "sha256:{{ rtorrent_exporter_sha256 }}"
|
||||
|
||||
- name: create rtorrent_exporter user
|
||||
tags:
|
||||
- rtorrent_exporter
|
||||
user:
|
||||
name: rtorrent_exporter
|
||||
shell: "/bin/false"
|
||||
comment: "rtorrent_exporter service user"
|
||||
|
||||
- name: check if rtorrent_exporter service exists
|
||||
tags:
|
||||
- rtorrent_exporter
|
||||
|
@ -27,8 +35,8 @@
|
|||
- rtorrent_exporter
|
||||
file:
|
||||
path: "/usr/local/bin/rtorrent_exporter"
|
||||
owner: prometheus
|
||||
group: prometheus
|
||||
owner: rtorrent_exporter
|
||||
group: rtorrent_exporter
|
||||
mode: 0755
|
||||
|
||||
- name: create rtorrent_exporter systemd unit
|
||||
|
|
|
@ -6,8 +6,8 @@ Wants=network-online.target
|
|||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=prometheus
|
||||
Group=prometheus
|
||||
User=rtorrent_exporter
|
||||
Group=rtorrent_exporter
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/rtorrent_exporter \
|
||||
-rtorrent.addr {{ rtorrent_exporter_scgi }}
|
||||
|
|
Loading…
Reference in a new issue