Usertwist has his own user

This commit is contained in:
2024-07-25 14:00:06 +02:00
parent f1dba7be06
commit 4a4e754f14
2 changed files with 8 additions and 2 deletions

View File

@@ -2,8 +2,8 @@
Description=Simple Web Service
[Service]
User=caddy
Group=caddy
User=usertwist
Group=usertwist
ExecStart=/usr/local/bin/usertwist
[Install]

View File

@@ -29,6 +29,12 @@
src: ../templates/Caddyfile.j2
dest: /etc/caddy/Caddyfile
- name: Create the usertwist user
ansible.builtin.user:
name: usertwist
group: usertwist
system: true
- name: Put the service binary on the remote server
ansible.builtin.copy:
src: ../files/usertwist