31 lines
895 B
YAML
31 lines
895 B
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 }}"
|
|
|
|
- name: "zammad | Ermittle Ruby-Version"
|
|
ansible.builtin.command: cat "{{ zammad_home }}/.ruby-version"
|
|
register: ruby_version
|
|
changed_when: false
|
|
check_mode: false
|
|
|
|
- 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"'
|