2023-03-19 01:12:43 +01:00
|
|
|
---
|
2022-12-13 16:43:40 +01:00
|
|
|
- name: "systemd | Kopiere Services"
|
2023-03-19 01:12:43 +01:00
|
|
|
ansible.builtin.template:
|
2021-07-28 18:28:22 +02:00
|
|
|
src: "systemd/{{ item }}.j2"
|
|
|
|
dest: "/etc/systemd/system/{{ item }}"
|
2023-03-19 01:12:43 +01:00
|
|
|
mode: "0644"
|
2021-07-28 18:28:22 +02:00
|
|
|
loop:
|
2021-11-28 16:40:51 +01:00
|
|
|
- zammad.service
|
2021-07-28 18:28:22 +02:00
|
|
|
- zammad-rails.service
|
2023-05-06 23:34:18 +02:00
|
|
|
- zammad-worker.service
|
2021-07-28 18:28:22 +02:00
|
|
|
- zammad-websocket.service
|
|
|
|
|
2022-12-13 16:43:40 +01:00
|
|
|
- name: "systemd | Erstelle Konfigurationsverzeichnis"
|
2023-03-19 01:12:43 +01:00
|
|
|
ansible.builtin.file:
|
2021-07-28 18:28:22 +02:00
|
|
|
path: /etc/zammad
|
|
|
|
state: directory
|
2023-03-19 01:12:43 +01:00
|
|
|
mode: "0755"
|
2021-07-28 18:28:22 +02:00
|
|
|
|
2022-12-13 16:43:40 +01:00
|
|
|
- name: "systemd | Kopiere Konfiguration"
|
2023-03-19 01:12:43 +01:00
|
|
|
ansible.builtin.copy:
|
2021-07-28 18:28:22 +02:00
|
|
|
src: zammad.env
|
2021-11-28 16:40:51 +01:00
|
|
|
dest: "{{ zammad_env_file }}"
|
2023-03-19 01:12:43 +01:00
|
|
|
mode: "0644"
|
2021-07-28 18:28:22 +02:00
|
|
|
|
2022-12-13 16:43:40 +01:00
|
|
|
- name: "systemd | Aktiviere Service"
|
2023-03-19 01:12:43 +01:00
|
|
|
ansible.builtin.systemd:
|
2021-11-28 16:40:51 +01:00
|
|
|
name: zammad
|
2022-12-13 16:43:40 +01:00
|
|
|
enabled: true
|
|
|
|
daemon_reload: true
|
2021-07-28 18:28:22 +02:00
|
|
|
state: started
|