46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
- name: "zammad: Hole Zammad Repo"
|
|
git:
|
|
repo: "{{ zammad_repo }}"
|
|
dest: "{{ zammad_home }}"
|
|
version: stable
|
|
force: yes
|
|
single_branch: yes
|
|
|
|
- name: "zammad: Ändere Besitzrechte"
|
|
file:
|
|
path: "{{ zammad_home }}"
|
|
state: directory
|
|
recurse: yes
|
|
owner: "{{ zammad_user }}"
|
|
group: "{{ zammad_user }}"
|
|
|
|
# https://github.com/zammad/zammad/issues/325
|
|
- name: "zammad: Wende plain-Text-Patch an"
|
|
patch:
|
|
src: plain-text.patch
|
|
dest: "{{ zammad_home }}/app/models/channel/email_build.rb"
|
|
|
|
# https://github.com/zammad/zammad/pull/3682
|
|
- name: "zammad: Wende ldap-user-filter-Patch an"
|
|
patch:
|
|
src: ldap-user-filter.patch
|
|
dest: "{{ zammad_home }}/lib/ldap/user.rb"
|
|
|
|
- name: "zammad: Ermittle Ruby-Version"
|
|
shell: cat "{{ zammad_home }}/.ruby-version"
|
|
register: ruby_version
|
|
|
|
- name: "zammad: Kopiere Skripte"
|
|
template:
|
|
src: zammad-delete-customers.rb.j2
|
|
dest: "{{ local_scripts_dir }}/zammad-delete-customers.rb"
|
|
|
|
- name: "zammad: Richte cron ein"
|
|
cron:
|
|
cron_file: "{{ cron_file }}"
|
|
user: "{{ zammad_user }}"
|
|
name: "Loesche unbenutzte Zammad-Kunden"
|
|
minute: "1"
|
|
hour: "1"
|
|
day: "1"
|
|
job: "cd {{ zammad_home }} && RAILS_ENV=production rbenv exec rails r {{ local_scripts_dir }}/zammad-delete-customers.rb"
|