ansible-role-zammad/tasks/systemd.yml

30 lines
699 B
YAML

---
- name: "systemd | Kopiere Services"
ansible.builtin.template:
src: "systemd/{{ item }}.j2"
dest: "/etc/systemd/system/{{ item }}"
mode: "0644"
loop:
- zammad.service
- zammad-rails.service
- zammad-worker.service
- zammad-websocket.service
- name: "systemd | Erstelle Konfigurationsverzeichnis"
ansible.builtin.file:
path: /etc/zammad
state: directory
mode: "0755"
- name: "systemd | Kopiere Konfiguration"
ansible.builtin.copy:
src: zammad.env
dest: "{{ zammad_env_file }}"
mode: "0644"
- name: "systemd | Aktiviere Service"
ansible.builtin.systemd:
name: zammad
enabled: true
daemon_reload: true
state: started