ansible-role-zammad/tasks/zammad.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2021-11-28 16:40:51 +01:00
- name: "zammad | Hole Zammad Repo"
2021-07-28 18:28:22 +02:00
git:
repo: "{{ zammad_repo }}"
dest: "{{ zammad_home }}"
version: stable
2021-07-28 18:28:22 +02:00
force: yes
2021-11-28 16:40:51 +01:00
- name: "zammad | Ändere Besitzrechte"
2021-07-28 18:28:22 +02:00
file:
path: "{{ zammad_home }}"
state: directory
recurse: yes
owner: "{{ zammad_user }}"
group: "{{ zammad_user }}"
# https://github.com/zammad/zammad/issues/325
2021-11-28 16:40:51 +01:00
- name: "zammad | Wende plain-Text-Patch an"
2021-07-28 18:28:22 +02:00
patch:
src: plain-text.patch
dest: "{{ zammad_home }}/app/models/channel/email_build.rb"
2021-07-28 23:20:13 +02:00
# https://github.com/zammad/zammad/pull/3682
2021-11-28 16:40:51 +01:00
- name: "zammad | Wende ldap-user-filter-Patch an"
2021-07-28 23:20:13 +02:00
patch:
src: ldap-user-filter.patch
dest: "{{ zammad_home }}/lib/ldap/user.rb"
2021-11-28 16:40:51 +01:00
- name: "zammad | Ermittle Ruby-Version"
2021-07-29 16:06:21 +02:00
shell: cat "{{ zammad_home }}/.ruby-version"
register: ruby_version
2021-11-27 20:29:06 +01:00
changed_when: false
2021-11-28 16:40:51 +01:00
- name: "zammad | Kopiere Skripte"
template:
src: zammad-delete-customers.rb.j2
dest: "{{ local_scripts_dir }}/zammad-delete-customers.rb"
2021-11-28 16:40:51 +01:00
- name: "zammad | Kopiere Updater"
2021-10-30 01:35:25 +02:00
template:
2021-11-27 20:29:06 +01:00
src: zammad-updater.j2
2021-10-30 01:35:25 +02:00
dest: "{{ local_scripts_dir }}/zammad-updater"
mode: 0755
2021-11-28 16:40:51 +01:00
- name: "zammad | Erstelle Alias"
lineinfile:
path: /root/.bashrc
line: 'alias zammad="cd {{ zammad_home }} && sudo -u {{ zammad_user }} RAILS_ENV=production rbenv exec rails"'