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"
|
dest: "/usr/local/bin/rtorrent_exporter"
|
||||||
checksum: "sha256:{{ rtorrent_exporter_sha256 }}"
|
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
|
- name: check if rtorrent_exporter service exists
|
||||||
tags:
|
tags:
|
||||||
- rtorrent_exporter
|
- rtorrent_exporter
|
||||||
|
@ -27,8 +35,8 @@
|
||||||
- rtorrent_exporter
|
- rtorrent_exporter
|
||||||
file:
|
file:
|
||||||
path: "/usr/local/bin/rtorrent_exporter"
|
path: "/usr/local/bin/rtorrent_exporter"
|
||||||
owner: prometheus
|
owner: rtorrent_exporter
|
||||||
group: prometheus
|
group: rtorrent_exporter
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: create rtorrent_exporter systemd unit
|
- name: create rtorrent_exporter systemd unit
|
||||||
|
|
|
@ -6,8 +6,8 @@ Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=prometheus
|
User=rtorrent_exporter
|
||||||
Group=prometheus
|
Group=rtorrent_exporter
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/bin/rtorrent_exporter \
|
ExecStart=/usr/local/bin/rtorrent_exporter \
|
||||||
-rtorrent.addr {{ rtorrent_exporter_scgi }}
|
-rtorrent.addr {{ rtorrent_exporter_scgi }}
|
||||||
|
|
Loading…
Reference in a new issue