48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
- name: "Zammad | Fix safedir warning"
|
|
ansible.builtin.command:
|
|
cmd: "git config --global --add safe.directory {{ zammad_home }}"
|
|
|
|
- name: "zammad | Hole Zammad Repo"
|
|
ansible.builtin.git:
|
|
repo: "{{ zammad_repo }}"
|
|
dest: "{{ zammad_home }}"
|
|
version: stable
|
|
force: true
|
|
notify: restart zammad
|
|
|
|
- name: "zammad | Ändere Besitzrechte"
|
|
ansible.builtin.file:
|
|
path: "{{ zammad_home }}"
|
|
state: directory
|
|
recurse: true
|
|
owner: "{{ zammad_user }}"
|
|
group: "{{ zammad_user }}"
|
|
|
|
# https://github.com/zammad/zammad/issues/325
|
|
- name: "zammad | Wende plain-Text-Patch an"
|
|
ansible.posix.patch:
|
|
src: plain-text.patch
|
|
dest: "{{ zammad_home }}/app/models/channel/email_build.rb"
|
|
|
|
- name: "zammad | Ermittle Ruby-Version"
|
|
ansible.builtin.command: cat "{{ zammad_home }}/.ruby-version"
|
|
register: ruby_version
|
|
changed_when: false
|
|
|
|
- name: "zammad | Kopiere Skripte"
|
|
ansible.builtin.template:
|
|
src: zammad-delete-customers.rb.j2
|
|
dest: "{{ local_scripts_dir }}/zammad-delete-customers.rb"
|
|
mode: "0644"
|
|
|
|
- name: "zammad | Kopiere Updater"
|
|
ansible.builtin.template:
|
|
src: zammad-updater.j2
|
|
dest: "{{ local_scripts_dir }}/zammad-updater"
|
|
mode: "0755"
|
|
|
|
- name: "zammad | Erstelle Alias"
|
|
ansible.builtin.lineinfile:
|
|
path: /root/.bashrc
|
|
line: 'alias zammad="cd {{ zammad_home }} && sudo -u {{ zammad_user }} RAILS_ENV=production rbenv exec rails"'
|