Cleanup role
This commit is contained in:
parent
8f72c4bd68
commit
62c1026254
15 changed files with 1 additions and 237 deletions
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
- name: "cron | Setze Umgebungsvariablen"
|
||||
ansible.builtin.cron:
|
||||
user: "{{ zammad_user }}"
|
||||
name: RAILS_ENV
|
||||
job: production
|
||||
env: true
|
||||
|
||||
- name: "cron | Richte cron ein"
|
||||
ansible.builtin.cron:
|
||||
user: "{{ zammad_user }}"
|
||||
name: "Loesche unbenutzte Zammad-Kunden"
|
||||
minute: "1"
|
||||
hour: "1"
|
||||
day: "1"
|
||||
job: " cd {{ zammad_home }} && chronic rbenv exec rails r {{ local_scripts_dir }}/zammad-delete-customers.rb"
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
- name: "customizations | Kopiere custom css"
|
||||
ansible.builtin.copy:
|
||||
src: senselab.css
|
||||
dest: "{{ zammad_home }}/app/assets/stylesheets/custom/senselab.css"
|
||||
owner: "{{ zammad_user }}"
|
||||
group: "{{ zammad_user }}"
|
||||
mode: "0644"
|
|
@ -1,29 +0,0 @@
|
|||
---
|
||||
- name: "gateway: Domain zur Zertifikatsliste hinzufügen"
|
||||
lineinfile:
|
||||
path: /etc/dehydrated/domains.txt
|
||||
insertafter: "^### systemausfall"
|
||||
line: "{{ zammad_domain }}"
|
||||
when: "'dehydrated' in ansible_facts.packages"
|
||||
register: add_certificate
|
||||
delegate_to: "{{ gateway_host }}"
|
||||
|
||||
- name: "gateway: Zertifikat erstellen"
|
||||
command: dehydrated --cron -g
|
||||
when: add_certificate.changed
|
||||
delegate_to: "{{ gateway_host }}"
|
||||
|
||||
- name: "gateway: Proxy einrichten"
|
||||
template:
|
||||
src: nginx-rp-site.j2
|
||||
dest: "/etc/nginx/sites-available/{{ zammad_domain }}"
|
||||
force: no
|
||||
delegate_to: "{{ gateway_host }}"
|
||||
|
||||
- name: "gateway: Seite aktivieren"
|
||||
file:
|
||||
src: "/etc/nginx/sites-available/{{ zammad_domain }}"
|
||||
dest: "/etc/nginx/sites-enabled/{{ zammad_domain }}"
|
||||
state: link
|
||||
notify: reload reverse_proxy
|
||||
delegate_to: "{{ gateway_host }}"
|
|
@ -10,12 +10,6 @@
|
|||
- import_tasks: zammad.yml
|
||||
tags: zammad
|
||||
|
||||
- import_tasks: customizations.yml
|
||||
tags: customizations
|
||||
|
||||
- import_tasks: cron.yml
|
||||
tags: cron
|
||||
|
||||
- import_tasks: ruby.yml
|
||||
tags: ruby
|
||||
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
home: "{{ zammad_user_home }}"
|
||||
shell: /bin/bash
|
||||
password_lock: true
|
||||
system: yes
|
||||
system: true
|
||||
|
|
|
@ -10,6 +10,3 @@
|
|||
dest: "/etc/nginx/sites-enabled/{{ zammad_domain }}"
|
||||
state: link
|
||||
notify: reload nginx
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -19,30 +19,12 @@
|
|||
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
|
||||
check_mode: 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue