This commit is contained in:
parent
ccba030a2e
commit
2fd7a06640
@ -8,5 +8,9 @@ qrz:
|
||||
version: 1.3.4
|
||||
os: linux
|
||||
arch: amd64
|
||||
user: qrz
|
||||
group: qrz
|
||||
user:
|
||||
name: qrz
|
||||
uid: 902
|
||||
group:
|
||||
name: qrz
|
||||
gid: 902
|
||||
|
@ -20,11 +20,32 @@ qrz-binary-symlink:
|
||||
- watch_in:
|
||||
- service: qrz-service
|
||||
|
||||
qrz-group:
|
||||
group.present:
|
||||
- name: {{ qrz.group.name }}
|
||||
- gid: {{ qrz.group.gid }}
|
||||
- watch_in:
|
||||
- service: qrz-service
|
||||
|
||||
qrz-user:
|
||||
user.present:
|
||||
- name:{{ qrz.user.name }}
|
||||
- uid: {{ qrz.user.uid }}
|
||||
- gid: {{ qrz.group.gid }}
|
||||
- shell: /sbin/nologin
|
||||
- allow_uid_change: true
|
||||
- allow_gid_change: true
|
||||
- home: /var/lib/qrz
|
||||
- watch_in:
|
||||
- service: qrz-service
|
||||
|
||||
qrz-directory:
|
||||
file.directory:
|
||||
- name: /var/lib/qrz
|
||||
- user: {{ qrz.user }}
|
||||
- group: {{ qrz.group }}
|
||||
- user: {{ qrz.user.name }}
|
||||
- group: {{ qrz.group.name }}
|
||||
- watch_in:
|
||||
- service: qrz-service
|
||||
|
||||
qrz-cleanup:
|
||||
software.cleanup:
|
||||
|
@ -6,7 +6,7 @@ After=network.target postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ qrz.user }}
|
||||
User={{ qrz.user.name }}
|
||||
ExecStart={{ qrz.install_dir }}/qrz/qrz -configfile {{ qrz.install_dir }}/config/common.ini -port {{ qrz.port }}
|
||||
|
||||
[Install]
|
||||
|
Loading…
Reference in New Issue
Block a user