ansible-role-zammad/tasks/systemd.yml

28 lines
597 B
YAML
Raw Normal View History

2022-12-13 16:43:40 +01:00
- name: "systemd | Kopiere Services"
2021-07-28 18:28:22 +02:00
template:
src: "systemd/{{ item }}.j2"
dest: "/etc/systemd/system/{{ item }}"
loop:
2021-11-28 16:40:51 +01:00
- zammad.service
2021-07-28 18:28:22 +02:00
- zammad-rails.service
- zammad-scheduler.service
- zammad-websocket.service
2022-12-13 16:43:40 +01:00
- name: "systemd | Erstelle Konfigurationsverzeichnis"
2021-07-28 18:28:22 +02:00
file:
path: /etc/zammad
state: directory
2022-12-13 16:43:40 +01:00
- name: "systemd | Kopiere Konfiguration"
2021-07-28 18:28:22 +02:00
copy:
src: zammad.env
2021-11-28 16:40:51 +01:00
dest: "{{ zammad_env_file }}"
2021-07-28 18:28:22 +02:00
force: no
2022-12-13 16:43:40 +01:00
- name: "systemd | Aktiviere Service"
2021-07-28 18:28:22 +02:00
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