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:
|
2023-05-19 11:59:02 +02:00
|
|
|
src: "systemd/{{ item.src }}.j2"
|
|
|
|
dest: "/etc/systemd/system/{{ item.dest }}"
|
2023-03-19 01:12:43 +01:00
|
|
|
mode: "0644"
|
2021-07-28 18:28:22 +02:00
|
|
|
loop:
|
2023-05-19 11:59:02 +02:00
|
|
|
- src: zammad.service
|
|
|
|
dest: "{{ zammad_service }}"
|
|
|
|
- src: zammad-rails.service
|
|
|
|
dest: "{{ zammad_rails_service }}"
|
|
|
|
- src: zammad-worker.service
|
|
|
|
dest: "{{ zammad_worker_service }}"
|
|
|
|
- src: zammad-websocket.service
|
|
|
|
dest: "{{ zammad_websocket_service }}"
|
2021-07-28 18:28:22 +02:00
|
|
|
|
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:
|
2023-05-19 11:59:02 +02:00
|
|
|
name: "{{ zammad_service }}"
|
2022-12-13 16:43:40 +01:00
|
|
|
enabled: true
|
|
|
|
daemon_reload: true
|
2021-07-28 18:28:22 +02:00
|
|
|
state: started
|