ansible-role-zammad/tasks/systemd.yml
2022-12-13 16:43:40 +01:00

27 lines
597 B
YAML

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