ansible-role-zammad/tasks/systemd.yml
2021-07-28 18:28:22 +02:00

32 lines
696 B
YAML

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