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.

13 lines
380 B

  1. ---
  2. - name: Create service group
  3. group: "name={{service}}"
  4. - name: Create service user
  5. user: "name={{service}} group={{service}} home=/home/{{service}}"
  6. - name: Change user folder to more permissive
  7. file: "path=/home/{{service}} mode=0755"
  8. - name: Create service
  9. template: "src=systemd.service.j2 dest=/etc/systemd/system/{{service}}.service"
  10. notify: reload services