zammad: Fix lint errors
This commit is contained in:
parent
7893ecdb92
commit
777c1ee74a
6 changed files with 27 additions and 22 deletions
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: "cron | Setze Umgebungsvariablen"
|
- name: "cron | Setze Umgebungsvariablen"
|
||||||
cron:
|
ansible.builtin.cron:
|
||||||
user: "{{ zammad_user }}"
|
user: "{{ zammad_user }}"
|
||||||
name: RAILS_ENV
|
name: RAILS_ENV
|
||||||
job: production
|
job: production
|
||||||
env: true
|
env: true
|
||||||
|
|
||||||
- name: "cron | Richte cron ein"
|
- name: "cron | Richte cron ein"
|
||||||
cron:
|
ansible.builtin.cron:
|
||||||
user: "{{ zammad_user }}"
|
user: "{{ zammad_user }}"
|
||||||
name: "Loesche unbenutzte Zammad-Kunden"
|
name: "Loesche unbenutzte Zammad-Kunden"
|
||||||
minute: "1"
|
minute: "1"
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: "customizations | Kopiere custom css"
|
- name: "customizations | Kopiere custom css"
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: senselab.css
|
src: senselab.css
|
||||||
dest: "{{ zammad_home }}/app/assets/stylesheets/custom/senselab.css"
|
dest: "{{ zammad_home }}/app/assets/stylesheets/custom/senselab.css"
|
||||||
owner: "{{ zammad_user }}"
|
owner: "{{ zammad_user }}"
|
||||||
group: "{{ zammad_user }}"
|
group: "{{ zammad_user }}"
|
||||||
|
mode: "0644"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: "database | Datenbank anlegen"
|
- name: "database | Datenbank anlegen"
|
||||||
postgresql_db:
|
community.postgresql.postgresql_db:
|
||||||
name: "{{ zammad_database_name }}"
|
name: "{{ zammad_database_name }}"
|
||||||
encoding: UTF8
|
encoding: UTF8
|
||||||
template: template0
|
template: template0
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
register: database_created
|
register: database_created
|
||||||
|
|
||||||
- name: "database | Benutzer einrichten"
|
- name: "database | Benutzer einrichten"
|
||||||
postgresql_user:
|
community.postgresql.postgresql_user:
|
||||||
name: "{{ zammad_database_user }}"
|
name: "{{ zammad_database_user }}"
|
||||||
password: "{{ zammad_database_password }}"
|
password: "{{ zammad_database_password }}"
|
||||||
db: "{{ zammad_database_name }}"
|
db: "{{ zammad_database_name }}"
|
||||||
|
@ -19,15 +19,15 @@
|
||||||
delegate_to: "{{ database_host }}"
|
delegate_to: "{{ database_host }}"
|
||||||
|
|
||||||
- name: "database | Konfiguration kopieren"
|
- name: "database | Konfiguration kopieren"
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: database.yml.j2
|
src: database.yml.j2
|
||||||
dest: "{{ zammad_database_configuration }}"
|
dest: "{{ zammad_database_configuration }}"
|
||||||
owner: "{{ zammad_user }}"
|
owner: "{{ zammad_user }}"
|
||||||
group: "{{ zammad_user }}"
|
group: "{{ zammad_user }}"
|
||||||
mode: 0600
|
mode: "0600"
|
||||||
|
|
||||||
- name: "database | Stoppe Service"
|
- name: "database | Stoppe Service"
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: zammad
|
name: zammad
|
||||||
state: stopped
|
state: stopped
|
||||||
register: unused_disable
|
register: unused_disable
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
failed_when: "unused_disable is failed and ('find' not in unused_disable.msg and 'found' not in unused_disable.msg)"
|
failed_when: "unused_disable is failed and ('find' not in unused_disable.msg and 'found' not in unused_disable.msg)"
|
||||||
|
|
||||||
- name: "database | Führe Migrationen aus"
|
- name: "database | Führe Migrationen aus"
|
||||||
shell: "rbenv exec bundle exec rake db:migrate"
|
ansible.builtin.shell: "rbenv exec bundle exec rake db:migrate"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
|
|
||||||
- name: "database | Führe Seeds aus"
|
- name: "database | Führe Seeds aus"
|
||||||
shell: "rbenv exec bundle exec rake db:seed"
|
ansible.builtin.shell: "rbenv exec bundle exec rake db:seed"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
when: database_created.changed
|
when: database_created.changed
|
||||||
|
|
||||||
- name: "database | Precompile Assets"
|
- name: "database | Precompile Assets"
|
||||||
shell: "rbenv exec bundle exec rake assets:precompile"
|
ansible.builtin.shell: "rbenv exec bundle exec rake assets:precompile"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
|
|
||||||
- name: "database | Synchronisiere Locales"
|
- name: "database | Synchronisiere Locales"
|
||||||
shell: rbenv exec bundle exec rails r "Locale.sync"
|
ansible.builtin.shell: rbenv exec bundle exec rails r "Locale.sync"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
|
|
||||||
- name: "database | Synchronisiere Translations"
|
- name: "database | Synchronisiere Translations"
|
||||||
shell: rbenv exec bundle exec rails r "Translation.sync"
|
ansible.builtin.shell: rbenv exec bundle exec rails r "Translation.sync"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
- name: "locales: Richte locales ein"
|
---
|
||||||
locale_gen:
|
- name: "Locales | Richte locales ein"
|
||||||
|
community.general.locale_gen:
|
||||||
name: en_US.UTF-8
|
name: en_US.UTF-8
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: opensearch.yml
|
src: opensearch.yml
|
||||||
dest: /etc/opensearch/opensearch.yml
|
dest: /etc/opensearch/opensearch.yml
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
|
|
||||||
- name: "Opensearch | Setze empfohlene Optionen"
|
- name: "Opensearch | Setze empfohlene Optionen"
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
|
@ -94,5 +94,5 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: opensearch.monit
|
src: opensearch.monit
|
||||||
dest: /etc/monit/conf-enabled/opensearch
|
dest: /etc/monit/conf-enabled/opensearch
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
notify: reload monit
|
notify: reload monit
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
---
|
||||||
- name: "systemd | Kopiere Services"
|
- name: "systemd | Kopiere Services"
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "systemd/{{ item }}.j2"
|
src: "systemd/{{ item }}.j2"
|
||||||
dest: "/etc/systemd/system/{{ item }}"
|
dest: "/etc/systemd/system/{{ item }}"
|
||||||
|
mode: "0644"
|
||||||
loop:
|
loop:
|
||||||
- zammad.service
|
- zammad.service
|
||||||
- zammad-rails.service
|
- zammad-rails.service
|
||||||
|
@ -9,18 +11,19 @@
|
||||||
- zammad-websocket.service
|
- zammad-websocket.service
|
||||||
|
|
||||||
- name: "systemd | Erstelle Konfigurationsverzeichnis"
|
- name: "systemd | Erstelle Konfigurationsverzeichnis"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/zammad
|
path: /etc/zammad
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
- name: "systemd | Kopiere Konfiguration"
|
- name: "systemd | Kopiere Konfiguration"
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: zammad.env
|
src: zammad.env
|
||||||
dest: "{{ zammad_env_file }}"
|
dest: "{{ zammad_env_file }}"
|
||||||
force: no
|
mode: "0644"
|
||||||
|
|
||||||
- name: "systemd | Aktiviere Service"
|
- name: "systemd | Aktiviere Service"
|
||||||
systemd:
|
ansible.builtin.systemd:
|
||||||
name: zammad
|
name: zammad
|
||||||
enabled: true
|
enabled: true
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
Loading…
Reference in a new issue