ansible-role-zammad/tasks/systemd.yml

34 lines
907 B
YAML

---
- name: "systemd | Kopiere Services"
ansible.builtin.template:
src: "systemd/{{ item.src }}.j2"
dest: "/etc/systemd/system/{{ item.dest }}"
mode: "0644"
loop:
- 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 }}"
- name: "systemd | Erstelle Konfigurationsverzeichnis"
ansible.builtin.file:
path: /etc/zammad
state: directory
mode: "0755"
- name: "systemd | Kopiere Konfiguration"
ansible.builtin.copy:
src: zammad.env
dest: "{{ zammad_env_file }}"
mode: "0644"
- name: "systemd | Aktiviere Service"
ansible.builtin.systemd:
name: "{{ zammad_service }}"
enabled: true
daemon_reload: true
state: started