You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
382 B

---
- name: Create service group
group: "name={{service}}"
- name: Create service user
user: "name={{service}} group={{service}} home=/home/{{service}}"
- name: Change user folder to more permissive
file: "path=/home/{{service}} mode=0755"
- name: Create service
template: "src=systemd.service.j2 dest=/etc/systemd/system/{{service}}.service"
notify: reload services