ansible-role-zammad/tasks/systemd.yml

28 lines
591 B
YAML
Raw Normal View History

2021-07-28 18:28:22 +02:00
- name: "systemd: Kopiere Services"
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
- name: "systemd: Erstelle Konfigurationsverzeichnis"
file:
path: /etc/zammad
state: directory
- name: "systemd: Kopiere Konfiguration"
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
- name: "systemd: Aktiviere Service"
systemd:
2021-11-28 16:40:51 +01:00
name: zammad
2021-07-28 18:28:22 +02:00
enabled: yes
daemon_reload: yes
state: started