ansible-role-zammad/tasks/systemd.yml
2021-11-28 16:40:51 +01:00

27 lines
591 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: yes
daemon_reload: yes
state: started